pub fn layout_tree<'a>(
    node: &'a style::StyledNode<'a>,
    mut containing_block: Dimensions,
) -> LayoutBox<'a> {
    // The layout algorithm expects the container height to start at 0.
    // TODO: Save the initial containing block height, for calculating percent heights.
    containing_block.content.height = 0.0;

    let mut root_box = build_layout_tree(node);
    root_box.layout(containing_block);
    root_box
}
/// Transform a style tree into a layout tree.
Transform a style tree into a layout tree.
Transform a style tree into a layout tree .
pub fn layout_tree<'a>(
    node: &'a style::StyledNode<'a>,
    mut containing_block: Dimensions,
) -> LayoutBox<'a> {
    // The layout algorithm expects the container height to start at 0.
    // TODO: Save the initial containing block height, for calculating percent heights.
    containing_block.content.height = 0.0;
    let mut root_box = build_layout_tree(node);
    root_box.layout(containing_block);
    root_box
}
pub fn layout_tree < ' a > ( node : & ' a style :: StyledNode < ' a > , mut containing_block : Dimensions , ) -> LayoutBox < ' a > { // The layout algorithm expects the container height to start at 0. // TODO: Save the initial containing block height, for calculating percent heights. containing_block . content . height = 0.0 ; let mut root_box = build_layout_tree ( node ) ; root_box . layout ( containing_block ) ; root_box }
Transform a style tree into a layout tree.
Transform a style tree into a layout tree .
node
&'a style::StyledNode<'a>
containing_block
Dimensions
node
&'a style::StyledNode<'a>
containing_block
Dimensions