Skip to main content

style_tree_with_index

Function style_tree_with_index 

Source
pub fn style_tree_with_index<'a>(
    root: &'a Node,
    stylesheet: &StyleSheet,
    rule_index: &RuleIndex,
) -> StyledNode<'a>
Expand description

style_tree の、構築済みの索引を使う版。索引は stylesheet.rules から作ったものであること。 【2026-10-24】同じスタイルシートで再レイアウトを繰り返すとき、索引の構築(YouTube の 23,000 規則で全体の約 1 割)を毎回やり直さないため。