pub fn bubble_layout_dirty(applier: &mut dyn Applier, node_id: NodeId)Expand description
Unified API for bubbling layout dirty flags from a node to the root (Applier context).
This is the canonical function for dirty bubbling during the apply phase (structural changes). Call this after mutations like insert/remove/move that happen during apply.
§Behavior
- Marks the starting node as needing layout
- Walks up the parent chain, marking each ancestor
- Stops at the root (node with no parent)
§Performance
This function is O(height): a scoped layout repass can leave a dirty node under a clean ancestor, so the walk does not stop at a dirty ancestor.
§Usage
- Call from composer mutations (insert/remove/move) during apply phase
- Call from applier-level operations that modify the tree structure