summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-12 19:50:40 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-12 22:30:50 +0100
commit2f3af7126174623cd986d1a8b1485ccb7b464f52 (patch)
tree81ed7cfe83b24d53423269b099a21168fb799e35 /Userland/Libraries
parent40bd2cb611af64eaa7b39c70e28ddc4741e118d5 (diff)
downloadserenity-2f3af7126174623cd986d1a8b1485ccb7b464f52.zip
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.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp b/Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp
index d8646f7168..98065f37ec 100644
--- a/Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp
+++ b/Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp
@@ -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) {