mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
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:
parent
cb1c3e5ea5
commit
c4403fd28c
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue