mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-10 17:12:41 +02:00
When content-visibility:hidden starts skipping a subtree, clear the stale layout and paint nodes for its descendants. Preserve SVG mask, clipPath, and pattern resource boxes only when they are attached to a referencing layout subtree outside the subtree being hidden. Resources used inside the hidden subtree are cleared with that subtree, so they rebuild under the live referencing layout node when the subtree becomes visible again. Otherwise observed descendants can keep old paintables around after the current paint tree has been rebuilt without them.