Skip to main content

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.

Structs§

InheritedCss
Inherited values from parent, passed down through the tree.

Functions§

build_layout_and_info
Builds a layout tree (LayoutNode) and a render info tree (InfoNode) from the DOM.