mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +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;
|
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) {
|
switch (phase) {
|
||||||
case StackingContextPaintPhase::BackgroundAndBorders:
|
case StackingContextPaintPhase::BackgroundAndBorders:
|
||||||
if (!child_is_inline_or_replaced && !child.is_floating()) {
|
if (!child_is_inline_or_replaced && !child.is_floating()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue