mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18: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
|
@ -77,7 +77,7 @@ void LayoutImage::layout(LayoutMode layout_mode)
|
|||
LayoutReplaced::layout(layout_mode);
|
||||
}
|
||||
|
||||
void LayoutImage::render(RenderingContext& context, PaintPhase phase)
|
||||
void LayoutImage::paint(PaintContext& context, PaintPhase phase)
|
||||
{
|
||||
if (!is_visible())
|
||||
return;
|
||||
|
@ -86,7 +86,7 @@ void LayoutImage::render(RenderingContext& context, PaintPhase phase)
|
|||
if (!context.viewport_rect().intersects(enclosing_int_rect(absolute_rect())))
|
||||
return;
|
||||
|
||||
LayoutReplaced::render(context, phase);
|
||||
LayoutReplaced::paint(context, phase);
|
||||
|
||||
if (phase == PaintPhase::Foreground) {
|
||||
if (renders_as_alt_text()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue