Skip to main content

build_layout_and_info_with_images

Function build_layout_and_info_with_images 

Source
pub fn build_layout_and_info_with_images(
    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),
    images: &HashMap<String, Image>,
) -> (LayoutNode, InfoNode)
Expand description

Builds layout and render trees with decoded images keyed by their src value.

viewport supplies the viewport size used to evaluate @media queries while resolving the style cascade (e.g. @media (min-width: 768px)).