1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09: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
Notes: sideshowbarker 2024-07-18 05:37:06 +09:00
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);