1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38: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:
Andreas Kling 2020-06-18 21:35:44 +02:00
parent dec0cd3755
commit 8c82d26668
26 changed files with 49 additions and 49 deletions

View file

@ -100,17 +100,17 @@ void LayoutDocument::did_set_viewport_rect(Badge<Frame>, const Gfx::IntRect& a_v
});
}
void LayoutDocument::paint_all_phases(RenderingContext& context)
void LayoutDocument::paint_all_phases(PaintContext& context)
{
render(context, PaintPhase::Background);
render(context, PaintPhase::Border);
render(context, PaintPhase::Foreground);
render(context, PaintPhase::Overlay);
paint(context, PaintPhase::Background);
paint(context, PaintPhase::Border);
paint(context, PaintPhase::Foreground);
paint(context, PaintPhase::Overlay);
}
void LayoutDocument::render(RenderingContext& context, PaintPhase phase)
void LayoutDocument::paint(PaintContext& context, PaintPhase phase)
{
stacking_context()->render(context, phase);
stacking_context()->paint(context, phase);
}
}