Skip to content

Truly independent web browser

4.4 KB
Raw Blame
/*
 * Copyright (c) 2026-present, the Ladybird developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

pub(crate) use crate::css::computed_value_types::*;
pub(crate) use crate::css::computed_value_views::*;
pub(crate) use crate::css::css_enums::*;
pub(crate) use crate::css::css_pixels::*;
pub(crate) use crate::css::display::*;

pub(crate) mod abspos_engine;
pub(crate) mod abspos_inputs;
pub(crate) mod block_formatting_context;
pub(crate) mod box_alignment;
pub mod commit;
pub(crate) mod counters;
pub(crate) mod fc_run_cache;
pub(crate) mod first_paint_text;
pub(crate) mod flex_formatting_context;
pub mod formatting_context;
pub(crate) mod fragment_overflow;
pub(crate) mod fragment_tree;
pub(crate) mod fragmentation;
pub(crate) mod generated_content;
pub mod geometry;
pub mod grid_formatting_context;
mod host_tables;
mod in_flow_block_cache;
pub mod inline_content;
pub(crate) mod inline_formatting_context;
pub mod inline_level_iterator;
mod intrinsic_sizing;
pub(crate) mod layout_changes;
mod layout_node_arena;
mod layout_pass;
pub(crate) mod line_box;
pub(crate) mod line_box_fragment;
pub(crate) mod line_builder;
pub(crate) mod line_clamp_edge;
pub(crate) mod math_formatting_context;
mod memo_invalidations;
pub mod node_data;
pub(crate) mod node_facts;
mod parallel_layout;
mod pass_column;
pub(crate) mod tree_shape;
pub use libcompositing_rust::node_slot_id;
pub(crate) mod frameset_formatting_context;
mod partial_relayout;
pub(crate) mod prepared_inline_content;
pub(crate) mod query;
pub(crate) mod quote_depth;
pub(crate) mod rendered_text;
pub(crate) mod replaced_sizing;
mod replaced_with_children_formatting_context;
pub(crate) mod row_reads;
pub(crate) mod run_repeatability;
pub(crate) mod run_state;
pub(crate) mod script_entries;
pub(crate) mod shell_reads;
pub(crate) mod sizing_context;
pub(crate) mod style_snapshot;
pub(crate) mod style_values;
pub mod svg_formatting_context;
pub mod table_formatting_context;
pub(crate) mod text_chunker;
pub(crate) mod text_queries;
mod text_transform;
mod trace;
mod tree_builder;
pub(crate) mod tree_mutation;
pub(crate) mod tree_plan;
pub(crate) mod tree_update_marks;
mod update_layout;
pub(crate) mod used_transform;
pub mod used_values;
pub(crate) mod viewport_propagation;

use crate::css::style::fast_hash::FastMap as HashMap;
use crate::css::style::fast_hash::FastSet as HashSet;
use crate::layout::layout_node_arena::FirstLineMaxContent;
use crate::layout::layout_node_arena::IntrinsicBlockSizeMeasurement;
use crate::layout::layout_node_arena::IntrinsicInlineSizeMeasurement;
use crate::layout::layout_node_arena::IntrinsicMeasurementDependencies;
use crate::layout::layout_node_arena::IntrinsicSizeCacheKey;
use crate::layout::layout_node_arena::IntrinsicSizeCacheKind;
pub(crate) use crate::layout::layout_node_arena::MainThreadFfiEntry as ArenaMainThreadFfiEntry;
pub(crate) use crate::layout::layout_node_arena::{
    HostStyle, LayoutNodeArena, LiveRow, PublishedBoundRows, RowsVersion, SLOTS_PER_CHUNK, SampleKind, StyleRelayout,
};
use crate::layout::node_data::AncestorFact;
use crate::layout::node_data::NodeData;
use crate::layout::node_data::NodeFlag;
use crate::layout::node_data::NodeKind;
use crate::layout::node_data::NodeSlotId;
pub(crate) use abspos_inputs::AbsposAxisAlignment;
pub(crate) use box_alignment::AxisEdge;
pub(crate) use formatting_context::{
    DerivedBaselines, FfiLayoutHostCallbacks, FormattingContextRun, Node, SizingAxis, SizingProperty,
};
pub(crate) use fragment_tree::FragmentLink;
pub(crate) use geometry::{
    AvailableSize, AvailableSpace, ContainingBlockConstraints, LayoutInput, ParticipationInParentFormattingContext,
    RootSizingDirectives,
};
pub(crate) use host_tables::{ArenaHandle, HostTables};
pub(crate) use layout_node_arena::HeldNode as ArenaHeldNode;
pub(crate) use layout_node_arena::{ElementInstall, StyledRows};
pub(crate) use layout_pass::LayoutPass;
pub(crate) use node_facts::NodeFacts;
pub(crate) use rendered_text::{PublishedTextSlot, RenderedText, RenderedTextBoundary, TextFragments};
pub(crate) use run_state::RunState;
use std::cell::Cell;
use std::cell::OnceCell;
use std::cell::Ref;
use std::cell::RefCell;
use std::cell::RefMut;
use std::ffi::c_void;
pub(crate) use style_values::StyleValues;
pub(crate) use update_layout::MainThreadFfiEntry as UpdateMainThreadFfiEntry;
pub(crate) use update_layout::{ClockRound, ClockRoundDeclined, FlownRound, SealedRound};
pub(crate) use used_values::{BoxMetricCells, BoxMetricCellsMut, FfiCssPixelPoint, FfiCssPixelRect, FfiCssPixelSize};