servo/components/shared/layout
Martin Robinson 436c9072c4
layout: Skip box tree construction when possible (#37957)
When a style change does not chang the structure of the box tree, it is
possible to skip box tree rebuilding for an element. This change adds
support for reusing old box trees when no element has that type of
damage. In order to make this happen, there needs to be a type of
"empty" `LayoutDamage` that just indicates that a fragment tree layout
is necessary.

This is the first step toward incremental fragment tree layout.

Testing: This should not change observable behavior and thus is covered
by
existing WPT tests. Performance numbers to follow.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2025-07-09 17:33:09 +00:00
..
Cargo.toml script|layout: Do not force restyle when doing script queries (#37677) 2025-06-26 08:02:15 +00:00
layout_damage.rs layout: Skip box tree construction when possible (#37957) 2025-07-09 17:33:09 +00:00
lib.rs script: Clean up Window::force_reflow a little (#37725) 2025-06-27 12:27:15 +00:00
wrapper_traits.rs Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00