Skip to main content

attach_flow_pseudo_boxes

Function attach_flow_pseudo_boxes 

Source
pub(crate) fn attach_flow_pseudo_boxes<'a>(
    node: &'a Node,
    specified_values: &Rc<BTreeMap<String, String>>,
    css_vars: &Rc<CssVars>,
    children: &mut Vec<StyledNode<'a>>,
)
Expand description

流れの中の空の ::before/::after(display:block 等。flow_pseudo::flow_pseudo_values)を、 要素のスタイル木の子の先頭・末尾に箱として加える。DOM ノードは親要素のものを指す (位置指定の疑似要素の箱と同じ。web_engine はそれで疑似要素の箱を見分ける)。 要素の大半は疑似要素を持たないので、静的キー 2 本の検索だけで抜ける。