mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
Introduce Document::update_layout_if_needed_for_node() which only calls update_layout() when the node is connected. Use it at all call sites that query layout metrics (offsets, client dimensions, image size, SVG bounding box, etc.) so disconnected elements no longer trigger an unnecessary layout.
176 KiB
176 KiB