mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 08:33:28 +02:00
We used to only walk the paintable root tree from the layout root and detach paintables from there. In some cases, this could leave paintables behind, so we added another loop that iterates over all layout nodes and detaches their paintables, if any remained. Instead of traversing two trees like this, just traverse the layout tree once and detach the inclusive descendant's paintables, similar to how we deal with the DOM tree immediately after that.
9.3 KiB
9.3 KiB