Module layouter

Module layouter 

Source
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.