From c4403fd28c0b512947750ba9c86060557344128e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 2 Mar 2024 09:54:12 +0100 Subject: [PATCH] LibWeb: Fix bogus ReplacedBox type check in StackingContext We should be asking if the layout node is a ReplacedBox, not the paintable. --- Userland/Libraries/LibWeb/Painting/StackingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Painting/StackingContext.cpp b/Userland/Libraries/LibWeb/Painting/StackingContext.cpp index 8152049016..853a2d5a3d 100644 --- a/Userland/Libraries/LibWeb/Painting/StackingContext.cpp +++ b/Userland/Libraries/LibWeb/Painting/StackingContext.cpp @@ -121,7 +121,7 @@ void StackingContext::paint_descendants(PaintContext& context, Paintable const& return; } - bool child_is_inline_or_replaced = child.is_inline() || is(child); + bool child_is_inline_or_replaced = child.is_inline() || is(child.layout_node()); switch (phase) { case StackingContextPaintPhase::BackgroundAndBorders: if (!child_is_inline_or_replaced && !child.is_floating()) {