Skip to main content

build_layout_and_info

Function build_layout_and_info 

Source
pub fn build_layout_and_info(
    dom: &NodeRef<HtmlNodeType>,
    resolved_styles: &ResolvedStyles,
    measurer: Arc<dyn TextMeasurer>,
    audio_sinks: Arc<dyn AudioSinkFactory>,
    parent: InheritedCss,
    chain: ElementChain,
    system_color_scheme: ColorScheme,
    scripting_mode: ScriptingMode,
    viewport: (f32, f32),
) -> (LayoutNode, InfoNode)
Expand description

Builds the layout and render trees for a parsed HTML document.

The argument set mirrors build_layout_and_info_with_images; the document-facing entry point forwards to it with no images present.