mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
LibWeb: Always rebuild stacking context tree during layout
We sometimes had a stale stacking context tree sitting around, causing incorrect paints until the next full layout invalidation. Fix this by simply rebuilding the stacking context tree when asked to.
This commit is contained in:
parent
40bd2cb611
commit
2f3af71261
1 changed files with 0 additions and 3 deletions
|
@ -23,9 +23,6 @@ InitialContainingBlock::~InitialContainingBlock()
|
|||
|
||||
void InitialContainingBlock::build_stacking_context_tree()
|
||||
{
|
||||
if (stacking_context())
|
||||
return;
|
||||
|
||||
set_stacking_context(make<StackingContext>(*this, nullptr));
|
||||
|
||||
for_each_in_inclusive_subtree_of_type<Box>([&](Box& box) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue