Module traversal

Module traversal 

Source
Expand description

Traversing the DOM tree; the bloom filter.

Structsยง

PerLevelTraversalData
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.
PreTraverseToken
We use this structure, rather than just returning a boolean from pre_traverse, to enfore that callers process root invalidations before starting the traversal.

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 ๐Ÿ”’
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ยง

UndisplayedStyleCache
A cache from element reference to known-valid computed style.