From 2f3af7126174623cd986d1a8b1485ccb7b464f52 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 12 Feb 2022 19:50:40 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/Layout/InitialContainingBlock.cpp | 3 --- 1 file changed, 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(*this, nullptr)); for_each_in_inclusive_subtree_of_type([&](Box& box) {