mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +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:
parent
dec0cd3755
commit
8c82d26668
26 changed files with 49 additions and 49 deletions
|
@ -89,7 +89,7 @@ const LayoutBlock* LayoutNode::containing_block() const
|
|||
return nearest_block_ancestor();
|
||||
}
|
||||
|
||||
void LayoutNode::render(RenderingContext& context, PaintPhase phase)
|
||||
void LayoutNode::paint(PaintContext& context, PaintPhase phase)
|
||||
{
|
||||
if (!is_visible())
|
||||
return;
|
||||
|
@ -97,7 +97,7 @@ void LayoutNode::render(RenderingContext& context, PaintPhase phase)
|
|||
for_each_child([&](auto& child) {
|
||||
if (child.is_box() && to<LayoutBox>(child).stacking_context())
|
||||
return;
|
||||
child.render(context, phase);
|
||||
child.paint(context, phase);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue