mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
When content changes inside a layout node, we now reset intrinsic size caches only up to the nearest absolutely positioned ancestor, rather than all the way to the document root. This optimization is safe because absolutely positioned elements don't contribute to their ancestors' intrinsic sizes - they are skipped in min/max content width calculations. The needs_layout_update flag still propagates to all ancestors so the document knows layout is needed. Only the cache reset is bounded.