mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibWeb: Rename LayoutNode::style() => specified_style()
Let's make way for a slightly-more-cooked style() that will eventually replace the raw specified_style() for layout and paint purposes.
This commit is contained in:
@@ -79,7 +79,7 @@ int LineBoxFragment::text_index_at(float x) const
|
||||
if (!layout_node().is_text())
|
||||
return 0;
|
||||
auto& layout_text = to<LayoutText>(layout_node());
|
||||
auto& font = layout_text.style().font();
|
||||
auto& font = layout_text.specified_style().font();
|
||||
Utf8View view(text());
|
||||
|
||||
float relative_x = x - absolute_x();
|
||||
|
||||
Reference in New Issue
Block a user