1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibWeb: StackingContext::paint_descendants() can take const layout node

It doesn't mutate the layout tree in any way.
This commit is contained in:
Andreas Kling 2022-10-23 17:59:32 +02:00
parent faba3ebfca
commit 055a1998c1
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ static PaintPhase to_paint_phase(StackingContext::StackingContextPaintPhase phas
}
}
void StackingContext::paint_descendants(PaintContext& context, Layout::Node& box, StackingContextPaintPhase phase) const
void StackingContext::paint_descendants(PaintContext& context, Layout::Node const& box, StackingContextPaintPhase phase) const
{
if (auto* paintable = box.paintable())
paintable->before_children_paint(context, to_paint_phase(phase), Paintable::ShouldClipOverflow::Yes);