Truly independent web browser
LibWeb: Hand a child's placement only a run root fragment
Aliaksandr Kalenikc4b52aa61238
diff --git a/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rsindex bcba1ecc502..ad729ffdfe9 100644--- a/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs@@ -66,7 +66,7 @@ struct BlockLevelBoxOutcome {struct DeferredLegend {flow_position: geometry::LogicalOffset,placed_child: formatting_context::PlacedChild,- fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ fragment_arrival: Option<fragment_tree::RunRootFragment>,}impl BlockLevelBoxOutcome {@@ -201,7 +201,7 @@ pub(crate) struct FloatLaidOutAheadOfItsPosition {placed_float: formatting_context::PlacedChild,pub(crate) cells: used_values::RootInputCells,laid_out_float_handed_back_by_its_run: Option<run_state::LaidOutChildBox>,- fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ fragment_arrival: Option<fragment_tree::RunRootFragment>,}/// A box a block formatting context sizes, in cells the call laying the box out owns: the cells the context lays the@@ -2255,7 +2255,7 @@ impl<'pass> BlockFormattingContext<'pass> {force_independent_context_run: bool,) -> (Option<formatting_context::ChildLayoutResult>,- Option<fragment_tree::ChildFragmentArrival>,+ Option<fragment_tree::RunRootFragment>,run_state::LaidOutChildBox,) {let formatting_context::ChildLayout {@@ -3294,7 +3294,7 @@ impl<'pass> BlockFormattingContext<'pass> {.with_in_flow_box_insets(insets),content_offset,None,- Some(fragment_tree::ChildFragmentArrival::CommittedFragment(fragment)),+ Some(fragment_tree::RunRootFragment::propagating_nothing(fragment)),);self.block_offset_of_current_block_container.set(Some(flow_position + entry.flow_position_advance));diff --git a/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rsindex 67b291b096d..1f41eb89e11 100644--- a/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs@@ -3188,10 +3188,7 @@ impl<'pass> FlexFormattingContext<'pass> {&mut self,run: &FormattingContextRun<'pass>,index: usize,- ) -> (- Option<fragment_tree::ChildFragmentArrival>,- formatting_context::PlacedChild,- ) {+ ) -> (Option<fragment_tree::RunRootFragment>, formatting_context::PlacedChild) {let node = self.flex_items[index].box_;let cells = self.flex_items[index].cells;let input = self.item_layout_input(index, &cells, self.available_space_for_items.unwrap().space);diff --git a/Libraries/LibWeb/Rust/src/layout/formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/formatting_context.rsindex cba822bff6a..e56032eba4e 100644--- a/Libraries/LibWeb/Rust/src/layout/formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/formatting_context.rs@@ -426,7 +426,7 @@ pub(crate) fn place_child(placed_child: PlacedChild,offset: FfiCssPixelPoint,containing_line_box_fragment: Option<used_values::LineBoxFragmentCoordinate>,- fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ fragment_arrival: Option<fragment_tree::RunRootFragment>,) -> Option<fragment_tree::PlacedFragment> {let abspos_layout_inputs = placed_child.abspos_layout_inputs;let containing_block = abspos_layout_inputs.map_or_else(@@ -467,10 +467,10 @@ pub(crate) fn place_child(debug_assert!(fragment_arrival.as_ref()- .is_none_or(|arrival| arrival.node() == node && !fragments.left_child_unplaced(node)),+ .is_none_or(|root| root.fragment.node == node && !fragments.left_child_unplaced(node)),"a box is placed with fragments handed to it for another box, or after it was left unplaced");- match fragment_arrival.map(fragment_tree::ChildFragmentArrival::into_root) {+ match fragment_arrival {Some(root) => fragments.take_in_child_root_at_placement(node, root, callbacks),None => fragments.open_fragment_of_placed_box(node),}@@ -1929,7 +1929,7 @@ fn body_input_with_inner_available_space(root: &impl BoxMetricCells, input: &Laypub(crate) struct ChildRunOutcome {pub(crate) result: ChildLayoutResult,pub(crate) laid_out_box: run_state::LaidOutChildBox,- pub(crate) fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ pub(crate) fragment_arrival: Option<fragment_tree::RunRootFragment>,}impl ChildRunOutcome {@@ -2819,7 +2819,7 @@ pub(crate) fn propagate_percentage_block_size_dependency_to_containing_block(/// unless the parent lays out the child's contents itself.pub(crate) struct ChildLayout {pub(crate) outcome: ChildLayoutOutcome,- pub(crate) fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ pub(crate) fragment_arrival: Option<fragment_tree::RunRootFragment>,pub(crate) laid_out_box: run_state::LaidOutChildBox,}@@ -2873,23 +2873,13 @@ pub(crate) fn layout_inside_child_with_input_cells(// OPTIMIZATION: An empty atomic block has no formatting-context body output. Size it in the// parent run, which will also construct its fragment when placing the box.let cells_of_this_layout = Cell::new(child_input_cells);- let committed_fragment = run.sizing().dimension_empty_atomic_root(+ run.sizing().dimension_empty_atomic_root(sizing_context::SizedCells::new(child, &cells_of_this_layout, run.callbacks.frame),input.available_space,input.containing_block_constraints,child_run_builds_fragments,);- // OPTIMIZATION: A box that took its metrics from its committed fragment hands that fragment to its placement.- let fragment_arrival = committed_fragment- .filter(|fragment| run.fragments.is_some() && fragment.is_plain_box())- .map(fragment_tree::ChildFragmentArrival::CommittedFragment);- let laid_out_box =- run_state::LaidOutChildBox::sized_here(cells_of_this_layout.get(), DerivedBaselines::default());- return ChildLayout {- outcome: skipped(None),- fragment_arrival,- laid_out_box,- };+ return ChildLayout::of_child_sized_in_parent_run(skipped(None), cells_of_this_layout.get());}let creates_replaced_context = matches!(formatting_context_type_created_by_box(facts),@@ -2947,7 +2937,7 @@ pub(crate) fn layout_inside_child_with_input_cells(pub(crate) fn leave_child_unplaced(run: &FormattingContextRun,unplaced_child: PlacedChild,- fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ fragment_arrival: Option<fragment_tree::RunRootFragment>,) {if let Some(arrival) = fragment_arrival {run.fragments@@ -3335,7 +3325,7 @@ fn child_run_outcome_from_outputs({root.fragment = committed;}- fragment_tree::ChildFragmentArrival::RunRoot(root)+ root});ChildRunOutcome {result,@@ -3772,7 +3762,7 @@ fn layout_subtree_with_frozen_root_geometry(run: &FormattingContextRun<'_>) {);// The retained offset already includes relative positioning. Publish it directly instead// of applying placement adjustments a second time.- let Some(fragment_tree::ChildFragmentArrival::RunRoot(run_root_fragment)) = fragment_arrival else {+ let Some(run_root_fragment) = fragment_arrival else {panic!("the root of a partial relayout is laid out by a run of its own");};fragments.take_in_child_root_at_placement(root, run_root_fragment, callbacks);diff --git a/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs b/Libraries/LibWeb/Rust/src/layout/fragment_tree.rsindex 7917d0942a1..b1f3b2a15a2 100644--- a/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs+++ b/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs@@ -111,25 +111,6 @@ impl Fragment {.all(|(link, previous_link)| link.places_same_fragment_identically_to(previous_link))}- /// Whether the fragment holds nothing beyond a plain box's metrics, line data and children: no table, grid, flex,- /// SVG or line clamp state.- pub(crate) fn is_plain_box(&self) -> bool {- !self.is_collapsed_borders_table_box- && self.collapsed_table_borders.is_none()- && self.grid_layout_data.is_none()- && self.flex_layout_data.is_none()- && self.multicol_layout_data.is_none()- && self.math_paint_data.is_none()- && self.used_grid_tracks.is_none()- && self.svg.is_none()- && self.computed_svg_path.is_none()- && self.svg_text_character_cells.is_none()- && !self.has_line_clamp_point- && !self.clamped_content_is_scrollable_overflow- && !self.continues_from_previous_fragment- && !self.continues_in_next_fragment- }-/// Box properties excluding inline content and child fragments. Painting compares those/// separately: a new descendant fragment does not necessarily change this box's commands.pub(crate) fn has_same_box_properties(&self, previous: &Fragment) -> bool {@@ -755,10 +736,10 @@ fn link_fragment(fragment: std::sync::Arc<Fragment>, placement: PlacementData) -}}-/// A child the run laid out but does not place: what its layout handed its placement, and what placing it would have-/// taken.+/// A child the run laid out but does not place: the root fragment its layout handed its placement, and what placing+/// it would have taken.struct ChildLeftUnplaced {- arrival: ChildFragmentArrival,+ root: RunRootFragment,unplaced_child: crate::layout::formatting_context::PlacedChild,}@@ -820,7 +801,9 @@ impl UnplacedRootFragment {}/// What a run hands its parent of its root: the root's fragment, and what goes past the run toward boxes outside it.+/// A box its parent takes as it was committed hands its committed fragment the same way, with nothing past it.#[derive(Clone)]+#[must_use = "a child's fragments are lost unless its placement takes them"]pub(crate) struct RunRootFragment {pub(crate) fragment: std::sync::Arc<Fragment>,pub(crate) payloads_past_run: PayloadsPastRun,@@ -836,36 +819,6 @@ impl RunRootFragment {}}-/// What the layout of a child hands the child's placement: the root fragment of the child's run, or a committed-/// fragment. The placement takes in either as the fragment of a child run's root, and keeps it where it shows the box-/// as placed.-#[must_use = "a child's fragments are lost unless its placement takes them"]-pub(crate) enum ChildFragmentArrival {- RunRoot(RunRootFragment),- CommittedFragment(std::sync::Arc<Fragment>),-}--impl ChildFragmentArrival {- pub(crate) fn fragment(&self) -> &std::sync::Arc<Fragment> {- match self {- Self::RunRoot(root) => &root.fragment,- Self::CommittedFragment(fragment) => fragment,- }- }-- pub(crate) fn node(&self) -> crate::layout::node_data::NodeSlotId {- self.fragment().node- }-- /// The child's fragment as the root fragment of a run. Nothing goes past a committed fragment.- pub(crate) fn into_root(self) -> RunRootFragment {- match self {- Self::RunRoot(root) => root,- Self::CommittedFragment(fragment) => RunRootFragment::propagating_nothing(fragment),- }- }-}-#[derive(Clone, Copy)]pub(crate) struct SlotFragment<'tree> {pub(crate) link: &'tree FragmentLink,@@ -1466,17 +1419,17 @@ impl RunFragmentBuilder {/// child would have taken.pub(crate) fn leave_child_unplaced(&self,- arrival: ChildFragmentArrival,+ root: RunRootFragment,unplaced_child: crate::layout::formatting_context::PlacedChild,) {debug_assert!(- !self.left_child_unplaced(arrival.node()),+ !self.left_child_unplaced(root.fragment.node),"a child was left unplaced twice");- self.inner.borrow_mut().children_left_unplaced.push(ChildLeftUnplaced {- arrival,- unplaced_child,- });+ self.inner+ .borrow_mut()+ .children_left_unplaced+ .push(ChildLeftUnplaced { root, unplaced_child });}pub(crate) fn left_child_unplaced(&self, node: crate::layout::node_data::NodeSlotId) -> bool {@@ -1484,7 +1437,7 @@ impl RunFragmentBuilder {.borrow().children_left_unplaced.iter()- .any(|child| child.arrival.node() == node)+ .any(|child| child.root.fragment.node == node)}pub(crate) fn adopt_fragmentainer_root(@@ -1563,11 +1516,10 @@ impl RunFragmentBuilder {pub(crate) fn discard_unplaced_subtree(&self,node: crate::layout::node_data::NodeSlotId,- fragment_arrival: Option<ChildFragmentArrival>,+ fragment_arrival: Option<RunRootFragment>,) {debug_assert!(!self.left_child_unplaced(node), "a child left unplaced is discarded");- let arrived_payloads =- fragment_arrival.map(|arrival| Box::new(FragmentPayloads::of_fragment(arrival.fragment())));+ let arrived_payloads = fragment_arrival.map(|root| Box::new(FragmentPayloads::of_fragment(&root.fragment)));let mut inner = self.inner.borrow_mut();let slot = node.slot_index();let mut payloads_of_box = arrived_payloads;@@ -1838,16 +1790,8 @@ impl RunFragmentBuilder {);}// NB: A child run's root that the run never placed keeps its fragment at the top of the run's fragments, as its- // subtree goes with it. A box whose parent sized it from its committed fragment and never placed has no- // fragment here.- for ChildLeftUnplaced {- arrival,- unplaced_child,- } in std::mem::take(&mut inner.children_left_unplaced)- {- let ChildFragmentArrival::RunRoot(root) = arrival else {- continue;- };+ // subtree goes with it.+ for ChildLeftUnplaced { root, unplaced_child } in std::mem::take(&mut inner.children_left_unplaced) {let node = root.fragment.node;let placement = PlacementData::of_unplaced_child(&unplaced_child, callbacks.frame);inner.top_scope_links.push(link_fragment(diff --git a/Libraries/LibWeb/Rust/src/layout/grid_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/grid_formatting_context.rsindex 2a38d5a977d..4f81ae66b7e 100644--- a/Libraries/LibWeb/Rust/src/layout/grid_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/grid_formatting_context.rs@@ -4801,7 +4801,7 @@ impl<'pass> GridFormattingContext<'pass> {usize,formatting_context::PlacedChild,FfiCssPixelPoint,- Option<fragment_tree::ChildFragmentArrival>,+ Option<fragment_tree::RunRootFragment>,)>,) {if items.is_empty() {@@ -4859,7 +4859,7 @@ impl<'pass> GridFormattingContext<'pass> {item: GridItem,placed_item: formatting_context::PlacedChild,offset: FfiCssPixelPoint,- fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ fragment_arrival: Option<fragment_tree::RunRootFragment>,) {formatting_context::place_child(&self.run, item.box_, placed_item, offset, None, fragment_arrival);let laid_out = &self.collected_item(item).laid_out;diff --git a/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rsindex c8d19190215..7ff9f4f82c8 100644--- a/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/inline_formatting_context.rs@@ -989,7 +989,7 @@ pub(crate) struct InlineFormattingContext<'context> {inline_boxes_continued_in_next_fragment: RefCell<Vec<Node>>,block_axis_float_clearance: Cell<CssPixels>,/// What the layout of each atomic inline hands its placement, which places it once its line is final.- atomic_inline_fragment_arrivals: RefCell<HashMap<Node, fragment_tree::ChildFragmentArrival>>,+ atomic_inline_fragment_arrivals: RefCell<HashMap<Node, fragment_tree::RunRootFragment>>,/// What placing each atomic inline this context laid out takes.placed_atomic_inlines: RefCell<HashMap<Node, formatting_context::PlacedChild>>,/// The break token of the containing block, once the fragmentainer stops before one of its lines.@@ -1052,7 +1052,7 @@ impl<'context> InlineFormattingContext<'context> {fn keep_atomic_inline_fragment_arrival(&self,node: Node,- fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ fragment_arrival: Option<fragment_tree::RunRootFragment>,) {let mut arrivals = self.atomic_inline_fragment_arrivals.borrow_mut();let previous = match fragment_arrival {@@ -1060,12 +1060,12 @@ impl<'context> InlineFormattingContext<'context> {None => arrivals.remove(&node),};debug_assert!(- !matches!(previous, Some(fragment_tree::ChildFragmentArrival::RunRoot(_))),+ previous.is_none(),"an atomic inline is laid out once by a run before its placement");}- fn take_atomic_inline_fragment_arrival(&self, node: Node) -> Option<fragment_tree::ChildFragmentArrival> {+ fn take_atomic_inline_fragment_arrival(&self, node: Node) -> Option<fragment_tree::RunRootFragment> {self.atomic_inline_fragment_arrivals.borrow_mut().remove(&node)}diff --git a/Libraries/LibWeb/Rust/src/layout/math_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/math_formatting_context.rsindex 0ff1384d725..86e31837e06 100644--- a/Libraries/LibWeb/Rust/src/layout/math_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/math_formatting_context.rs@@ -1463,7 +1463,7 @@ pub(super) struct MathFormattingContext<'pass> {content: MathContent,derived_baselines_of_root_box: DerivedBaselines,/// What the layout of each child hands its placement, which places the children once their positions are known.- fragment_arrivals_of_children: RefCell<Vec<fragment_tree::ChildFragmentArrival>>,+ fragment_arrivals_of_children: RefCell<Vec<fragment_tree::RunRootFragment>>,/// What placing each child takes of the box its latest layout handed back.placed_children: RefCell<HashMap<Node, formatting_context::PlacedChild>>,/// The cells in which this context sizes the run's root, in the frame the root lays its contents out in.@@ -1480,9 +1480,9 @@ impl<'pass> MathFormattingContext<'pass> {.expect("a math child is laid out before it is placed")}- fn take_fragment_arrival_of_child(&self, child: Node) -> Option<fragment_tree::ChildFragmentArrival> {+ fn take_fragment_arrival_of_child(&self, child: Node) -> Option<fragment_tree::RunRootFragment> {let mut arrivals = self.fragment_arrivals_of_children.borrow_mut();- let index = arrivals.iter().position(|arrival| arrival.node() == child)?;+ let index = arrivals.iter().position(|arrival| arrival.fragment.node == child)?;Some(arrivals.swap_remove(index))}@@ -2335,7 +2335,7 @@ impl<'pass> MathFormattingContext<'pass> {for fragment_arrival in self.fragment_arrivals_of_children.take() {formatting_context::leave_child_unplaced(run,- self.placed_child(fragment_arrival.node()),+ self.placed_child(fragment_arrival.fragment.node),Some(fragment_arrival),);}diff --git a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs b/Libraries/LibWeb/Rust/src/layout/sizing_context.rsindex b26170879e8..9a87677e740 100644--- a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs@@ -2172,26 +2172,21 @@ impl<'pass, 'container> SizingContext<'pass, 'container> {used.update_cells(|cells| cells.resolve_box_model(&style, containing_inline_size));}- /// Sizes an empty atomic block. Where a committing layout takes its metrics from its committed fragment as they- /// are, returns that fragment.+ /// Sizes an empty atomic block. A committing layout takes its metrics from its committed fragment where they hold.pub(crate) fn dimension_empty_atomic_root(&self,sized_cells: SizedCells<'_>,available_space: AvailableSpace,constraints: ContainingBlockConstraints,layout_builds_fragments: bool,- ) -> Option<std::sync::Arc<fragment_tree::Fragment>> {- if layout_builds_fragments && let Some(fragment) = self.try_reuse_empty_atomic_root_metrics(sized_cells) {- return Some(fragment);+ ) {+ if layout_builds_fragments && self.try_reuse_empty_atomic_root_metrics(sized_cells) {+ return;}self.dimension_empty_atomic_root_fresh(sized_cells, available_space, constraints);- None}- fn try_reuse_empty_atomic_root_metrics(- &self,- sized_cells: SizedCells<'_>,- ) -> Option<std::sync::Arc<fragment_tree::Fragment>> {+ fn try_reuse_empty_atomic_root_metrics(&self, sized_cells: SizedCells<'_>) -> bool {let node = sized_cells.node;let facts = self.facts(node);debug_assert!(@@ -2206,7 +2201,7 @@ impl<'pass, 'container> SizingContext<'pass, 'container> {|| facts.is_scroll_container()|| !self.block_root_inline_size_follows_from_style(node){- return None;+ return false;}let style = self.style(node);if !(style.width().is_auto() || style.width().is_length())@@ -2217,15 +2212,15 @@ impl<'pass, 'container> SizingContext<'pass, 'container> {|| !(style.max_height().is_none() || style.max_height().is_length())|| Self::box_edges_contain_percentage(style){- return None;+ return false;}let used = sized_cells.cells;self.callbacks.arena().with_current_committed_fragment_link(node, |link| {used.update_cells(|cells| cells.take_box_metrics_of_committed_link(link));- link.fragment.clone()})+ .is_some()}fn dimension_empty_atomic_root_fresh(diff --git a/Libraries/LibWeb/Rust/src/layout/svg_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/svg_formatting_context.rsindex c7d26a62de5..53aac474fa0 100644--- a/Libraries/LibWeb/Rust/src/layout/svg_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/svg_formatting_context.rs@@ -1890,7 +1890,7 @@ impl<'pass> SvgFormattingContext<'pass> {placed_child: formatting_context::PlacedChild,x: CssPixels,y: CssPixels,- fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ fragment_arrival: Option<fragment_tree::RunRootFragment>,) {formatting_context::place_child(&self.run,@@ -2267,7 +2267,7 @@ impl<'pass> SvgFormattingContext<'pass> {formatting_context::PlacedChild::laid_out_here(cells.get(), None, &self.run),committed_offset.x,committed_offset.y,- Some(fragment_tree::ChildFragmentArrival::CommittedFragment(fragment)),+ Some(fragment_tree::RunRootFragment::propagating_nothing(fragment)),);Some(LaidOutSvgElement {cells: cells.get(),diff --git a/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rsindex 685644eb8d3..8a397070cf6 100644--- a/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs@@ -1057,7 +1057,7 @@ pub(super) struct TableFormattingContext<'pass> {deferred_cell_inside_layouts: Vec<bool>,cell_measurements: Vec<Option<TableCellMeasurement>>,/// What the layout of each cell hands its placement, which places every cell once the rows are positioned.- cell_fragment_arrivals: Vec<Option<fragment_tree::ChildFragmentArrival>>,+ cell_fragment_arrivals: Vec<Option<fragment_tree::RunRootFragment>>,/// What placing each cell takes of the box its committing layout handed back.placed_cells: Vec<Option<formatting_context::PlacedChild>>,/// The baselines of the contents of each cell whose layout handed the box back to this table, which keeps them.@@ -2807,7 +2807,7 @@ impl<'pass> TableFormattingContext<'pass> {input: AvailableSpace,adopt_automatic_content_block_size: bool,intrinsic_block_padding: Option<(CssPixels, CssPixels)>,- ) -> (DerivedBaselines, Option<fragment_tree::ChildFragmentArrival>) {+ ) -> (DerivedBaselines, Option<fragment_tree::RunRootFragment>) {let layout_input = LayoutInput {available_space: input,containing_block_constraints: ContainingBlockConstraints::default(),@@ -2845,7 +2845,7 @@ impl<'pass> TableFormattingContext<'pass> {fn keep_fragment_arrival_of_cell(&mut self,cell_index: usize,- fragment_arrival: Option<fragment_tree::ChildFragmentArrival>,+ fragment_arrival: Option<fragment_tree::RunRootFragment>,) {debug_assert!(self.cell_fragment_arrivals[cell_index].is_none(),