mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Rename LayoutNode::render() to paint()
"Paint" matches what we call this in the rest of the system. Let's not confuse things by mixing paint/render/draw all the time. I'm guilty of this in more places.. Also rename RenderingContext => PaintContext.
This commit is contained in:
@@ -86,7 +86,7 @@ void PageHost::paint(const Gfx::IntRect& content_rect, Gfx::Bitmap& target)
|
||||
painter.draw_tiled_bitmap(content_rect, *background_bitmap);
|
||||
}
|
||||
|
||||
Web::RenderingContext context(painter, palette(), Gfx::IntPoint());
|
||||
Web::PaintContext context(painter, palette(), Gfx::IntPoint());
|
||||
context.set_viewport_rect(content_rect);
|
||||
layout_root->paint_all_phases(context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user