mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00
LibWeb: Ignore non-painting layout nodes when building stacking contexts
This commit is contained in:
parent
2af8bb14d7
commit
85dd891811
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ void InitialContainingBlock::build_stacking_context_tree()
|
|||
const_cast<Painting::PaintableWithLines*>(paint_box())->set_stacking_context(make<Painting::StackingContext>(*this, nullptr));
|
||||
|
||||
for_each_in_subtree_of_type<Box>([&](Box& box) {
|
||||
if (!box.paint_box())
|
||||
return IterationDecision::Continue;
|
||||
const_cast<Painting::PaintableBox*>(box.paint_box())->invalidate_stacking_context();
|
||||
if (!box.establishes_stacking_context()) {
|
||||
VERIFY(!box.paint_box()->stacking_context());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue