Expand description
Traversing the DOM tree; the bloom filter.
Structs§
- PerLevel
Traversal Data - A per-traversal-level chunk of data. This is sent down by the traversal, and currently only holds the dom depth for the bloom filter.
- PreTraverse
Token - We use this structure, rather than just returning a boolean from pre_traverse, to enfore that callers process root invalidations before starting the traversal.
Statics§
- IS_
SERVO_ NONINCREMENTAL_ LAYOUT - A global variable holding the state of
is_servo_nonincremental_layout()
. See #22854.
Traits§
- DomTraversal
- A DOM Traversal trait, that is used to generically implement styling for Gecko and Servo.
Functions§
- clear_
descendant_ ⚠data - Clear style data for all the subtree under
root
(but not for root itself). - clear_
state_ 🔒after_ traversing - compute_
style 🔒 - is_
servo_ 🔒nonincremental_ layout - note_
children 🔒 - notify_
paint_ 🔒worklet - recalc_
style_ at - Calculates the style for a single node.
- resolve_
style - Manually resolve style by sequentially walking up the parent chain to the first styled Element, ignoring pending restyles. The resolved style is made available via a callback, and can be dropped by the time this function returns in the display:none subtree case.
Type Aliases§
- Undisplayed
Style Cache - A cache from element reference to known-valid computed style.