Expand description
Layout builder
Converts DOM + resolved CSS into layout and render-info trees.
Responsibilities:
- Style inheritance and cascade
- Text measurement
- Incremental (diff-based) update of layout/info trees
Out of scope:
- Rendering
- Draw command generation
- GPU / platform concerns
Modules§
- css_
resolver - A CSS resolver that handles selector matching and value resolution.
- types
- Layout tree node types. Styles, text, and container definitions.
Functions§
- build_
layout_ and_ info - Builds a layout tree (
LayoutNode) and a render info tree (InfoNode) from the DOM.