Expand description
solver3/mod.rs
Next-generation CSS layout engine with proper formatting context separation
Re-exports§
pub use crate::font_traits::TextLayoutCache;
Modules§
- cache
- Handling Viewport Resizing and Layout Thrashing
- calc
- CSS
calc()expression evaluator. - counters
- CSS Counter Support
- display_
list - Generates a renderer-agnostic display list from a laid-out tree
- fc
- solver3/fc.rs - Formatting Context Layout
- geometry
- TODO: Move these to CSS module
- getters
- Getter functions for CSS properties from the styled DOM
- layout_
tree - solver3/layout_tree.rs
- paged_
layout - CSS Paged Media layout integration with integrated fragmentation
- pagination
- CSS Paged Media Pagination Engine - “Infinite Canvas with Physical Spacers”
- positioning
- solver3/positioning.rs Pass 3: Final positioning of layout nodes
- scrollbar
- sizing
- solver3/sizing.rs
- taffy_
bridge
Structs§
- Layout
Context - Central context for a single layout pass.
Enums§
Constants§
- POSITION_
UNSET - Sentinel value for “position not yet computed”. No real position is ever f32::MIN.
Functions§
- layout_
document - Main entry point for the incremental, cached layout engine
- new_
position_ vec - Create a new PositionVec pre-sized for the given number of nodes.
- pos_
contains - Check if position has been set for node index.
- pos_get
- Get position for node index, returning None if unset.
- pos_set
- Set position for node index. Grows the vec if needed.
Type Aliases§
- Node
Hash Map - A map of hashes for each node to detect changes in content like text.
- Position
Vec - Vec-based position storage indexed by layout-tree node index.
Replaces
BTreeMap<usize, LogicalPosition>for O(1) access and cache-friendly iteration. - Result