LibWeb: Fix bogus ReplacedBox type check in StackingContext

We should be asking if the layout node is a ReplacedBox, not the
paintable.
This commit is contained in:
Andreas Kling 2024-03-02 09:54:12 +01:00
parent cb1c3e5ea5
commit c4403fd28c

View file

@ -121,7 +121,7 @@ void StackingContext::paint_descendants(PaintContext& context, Paintable const&
return;
}
bool child_is_inline_or_replaced = child.is_inline() || is<Layout::ReplacedBox>(child);
bool child_is_inline_or_replaced = child.is_inline() || is<Layout::ReplacedBox>(child.layout_node());
switch (phase) {
case StackingContextPaintPhase::BackgroundAndBorders:
if (!child_is_inline_or_replaced && !child.is_floating()) {