mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibWeb: Rename LineBoxFragment::render() => paint()
Also LayoutText::render_fragment() => render(). This matches the names in the rest of LibWeb.
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
namespace Web {
|
||||
|
||||
void LineBoxFragment::render(PaintContext& context)
|
||||
void LineBoxFragment::paint(PaintContext& context)
|
||||
{
|
||||
for (auto* ancestor = layout_node().parent(); ancestor; ancestor = ancestor->parent()) {
|
||||
if (!ancestor->is_visible())
|
||||
@@ -42,7 +42,7 @@ void LineBoxFragment::render(PaintContext& context)
|
||||
}
|
||||
|
||||
if (is<LayoutText>(layout_node())) {
|
||||
to<LayoutText>(layout_node()).render_fragment(context, *this);
|
||||
to<LayoutText>(layout_node()).paint_fragment(context, *this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user