Skip to main content

get_transform

Function get_transform 

Source
pub fn get_transform(
    styled_dom: &StyledDom,
    node_id: NodeId,
    node_state: &StyledNodeState,
) -> Option<StyleTransformVec>
Expand description

Get transform property. Returns Option (non-empty transform list, cloned).

GPU fast path: the compact cache keeps a has_transform flag. If unset, skips the cascade walk entirely — which is the overwhelming case since most nodes have no transform. Only nodes that actually have a transform pay the slow-walk cost to retrieve the parsed value.