Expand description
Owned, thread-safe snapshot of the DOM.
The live DOM tree is built with Rc<RefCell<TreeNode>>, which is not
Send. To build layout off the UI thread, we clone the tree into an
arena of owned nodes. Pre-order (document-order) node ids index the arena,
so the snapshot can be moved to a background thread and the builder walks it
exactly as it walked the Rc tree.
Structs§
- DomSnapshot
- An owned snapshot of a DOM subtree.
- Snap
Node - A single owned snapshot node.
Type Aliases§
- NodeId
- Pre-order (document-order) id of a node in the snapshot arena.