Skip to main content

orinium_browser/engine/layouter/
mod.rs

1//! Layout builder
2//!
3//! Converts DOM + resolved CSS into layout and render-info trees.
4//!
5//! Responsibilities:
6//! - Style inheritance and cascade
7//! - Text measurement
8//! - Incremental (diff-based) update of layout/info trees
9//!
10//! Out of scope:
11//! - Rendering
12//! - Draw command generation
13//! - GPU / platform concerns
14
15mod builder;
16pub mod css_resolver;
17pub mod dom_snapshot;
18pub mod match_cache;
19pub mod processor;
20mod shift;
21pub mod style_inspect;
22mod table_layout;
23pub mod text_layouter;
24pub mod types;
25
26pub use builder::resolve_css_color;
27pub use builder::{
28    InheritedCss, blockify_out_of_flow_positioned, build_layout_and_info,
29    build_layout_and_info_from_snapshot, build_layout_and_info_with_images,
30    constrain_auto_grid_track_items, correct_atomic_inline_spacing,
31    correct_atomic_inline_spacing_with_info, normalize_whitespace,
32    refresh_missing_text_layout_results, resolve_anchor_positioning,
33};
34pub use dom_snapshot::{DomSnapshot, NodeId, SnapNode};
35pub use match_cache::SelectorMatchCache;
36pub use processor::{LayoutProcessor, LayoutResult, LayoutTask};
37pub use table_layout::align_table_columns;