Expand description
Style recalculation change tracking.
This module provides [StyleRecalcChange], a graduated system for tracking
what kind of style recalculation is needed. Inspired by Chromium’s approach,
this enables optimizations like:
- Skipping style recalc entirely for unchanged views
- Using fast “inherited only” paths when only inherited props changed
- Limiting recalc to immediate children vs entire subtrees
§Comparison with ChangeFlags
The existing [ChangeFlags] are binary: a view either needs style recalc or doesn’t.
[StyleRecalcChange] adds why the recalc is needed, enabling optimization decisions.
Structs§
- Style
Reason - Describes why a view has been marked style-dirty. Combines a cheap bitmap of reason categories with optional payloads for the reasons that carry associated data.
- Style
Reason Flags