Function style::traversal::resolve_style
source ยท pub fn resolve_style<E>(
context: &mut StyleContext<'_, E>,
element: E,
rule_inclusion: RuleInclusion,
pseudo: Option<&PseudoElement>,
undisplayed_style_cache: Option<&mut UndisplayedStyleCache>,
) -> ElementStyleswhere
E: TElement,
Expand description
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.