Skip to main content

Module layout_tree

Module layout_tree 

Source
Expand description

solver3/layout_tree.rs

Layout tree generation and anonymous box handling

Structs§

CachedInlineLayout
Cached inline layout result with the constraints used to compute it.
IfcId
Unique identifier for an Inline Formatting Context (IFC).
IfcMembership
Tracks a layout node’s membership in an Inline Formatting Context.
LayoutNode
A layout tree node representing the CSS box model
LayoutTree
The complete layout tree structure
LayoutTreeBuilder
SubtreeHash
A hash that represents the content and style of a node PLUS all of its descendants. If two SubtreeHashes are equal, their entire subtrees are considered identical for layout purposes.

Enums§

AnonymousBoxType
Types of anonymous boxes that can be generated
DirtyFlag
Represents the invalidation state of a layout node.
PseudoElement
CSS pseudo-elements that can be generated

Functions§

generate_layout_tree
Generate layout tree from styled DOM with proper anonymous box generation
get_display_type
is_block_level