Expand description
Layout integration — Taffy traits implemented against Document.
The DOM IS the layout tree. Taffy reads/writes LayoutNodeData directly
from Document’s parallel storage. No separate LayoutTree needed.
§Architecture
Document DocumentLayoutView
──────── ──────────────────
Storage<LayoutNodeData> ←── TraversePartialTree (child iteration)
.style ←── LayoutPartialTree (style access)
.cache ←── CacheTree (layout caching)
.unrounded_layout ←── set_unrounded_layout
.layout_children ←── child_ids / child_count§Entry point
ⓘ
// In FrameWidget:
doc.resolve_layout(root, Some(vw), Some(vh), &ctx)