Truly independent web browser
LibWeb: Keep the table columns of a box beside its record
Aliaksandr Kalenik74479569c51e
diff --git a/Libraries/LibWeb/Rust/src/layout/formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/formatting_context.rsindex b08d565247c..a38166f4068 100644--- a/Libraries/LibWeb/Rust/src/layout/formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/formatting_context.rs@@ -378,15 +378,17 @@ pub(crate) fn place_child_in_containing_block(};records.place_box(node, placement);let fragments = run.fragments.as_deref()?;- if let Some((fragment, reuses_subtree)) = fragments.take_reused_committed_fragment(callbacks, node, used) {+ let facts_decided_by_parent = records.facts_decided_by_parent_of(node);+ if let Some((fragment, reuses_subtree)) =+ fragments.take_reused_committed_fragment(callbacks, node, used, facts_decided_by_parent.fragment_facts)+ {fragments.attach_committed_fragment(node,fragment.clone(),reuses_subtree,(!containing_block.is_invalid()).then_some(containing_block),used,- placement,- records.used_insets_of(node),+ facts_decided_by_parent,containing_block_is_placed_or_outside_run(records, containing_block),resolve_containing_line_box_index(records, callbacks, node, containing_block, containing_line_box_fragment),point_add(@@ -423,8 +425,7 @@ pub(crate) fn place_child_in_containing_block(node,(!containing_block.is_invalid()).then_some(containing_block),used,- placement,- records.used_insets_of(node),+ records.facts_decided_by_parent_of(node),containing_block_is_placed_or_outside_run(records, containing_block),resolve_containing_line_box_index(records, callbacks, node, containing_block, containing_line_box_fragment),point_add(@@ -461,8 +462,7 @@ pub(crate) fn place_reused_child(true,(!containing_block.is_invalid()).then_some(containing_block),records.used_values(node),- placement,- records.used_insets_of(node),+ records.facts_decided_by_parent_of(node),containing_block_is_placed_or_outside_run(records, containing_block),None,point_add(@@ -3469,8 +3469,8 @@ fn layout_subtree_with_frozen_root_geometry(run: &FormattingContextRun<'_>) {.expect("partial relayout root must have committed geometry");let root_used = run.records.register(root, committed_root.record);// Adopting the committed geometry is the root's placement, final from the moment it is adopted.- run.records.set_used_insets(root, committed_root.used_insets);- run.records.place_box(root, committed_root.placement);+ run.records+ .adopt_committed_facts_decided_by_parent(root, committed_root.facts_decided_by_parent);let fragments = run.fragments.as_deref().expect("partial relayout must build fragments");let mut input = LayoutInput::new(AvailableSpace {@@ -3503,17 +3503,16 @@ 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.fragments.normalize_arrivals_for_placement(root, callbacks);- let placement = run- .records- .placement_of(root)+ let facts_decided_by_parent = run.records.facts_decided_by_parent_of(root);+ let placement = facts_decided_by_parent+ .placement.expect("the root of a partial relayout keeps the placement it committed");fragments.build_fragment_for_placed_box(callbacks,root,None,root_used,- placement,- run.records.used_insets_of(root),+ facts_decided_by_parent,false,None,placement.content_offset_in_containing_block,diff --git a/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs b/Libraries/LibWeb/Rust/src/layout/fragment_tree.rsindex 246062303f4..169aa634e04 100644--- a/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs+++ b/Libraries/LibWeb/Rust/src/layout/fragment_tree.rs@@ -441,6 +441,7 @@ fn snapshot_fragment(node: crate::layout::node_data::NodeSlotId,children: Vec<FragmentLink>,used: &UsedValues,+ fragment_facts: run_records::FragmentFactsDecidedByParent,) -> std::sync::Arc<Fragment> {static NEXT_IDENTITY: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(1);let line_data = used.finish_line_data(callbacks);@@ -492,9 +493,9 @@ fn snapshot_fragment(padding_bottom: used.padding_bottom.get(),uses_collapsing_borders_model: used.uses_collapsing_borders_model.get(),is_collapsed_borders_table_box: used.is_collapsed_borders_table_box.get(),- table_column_index: used.table_column_index.get(),- table_column_span: used.table_column_span.get(),- hidden_by_collapsed_columns: used.hidden_by_collapsed_columns.get(),+ table_column_index: fragment_facts.table_column_index,+ table_column_span: fragment_facts.table_column_span,+ hidden_by_collapsed_columns: fragment_facts.hidden_by_collapsed_columns,collapsed_table_borders,line_data,grid_layout_data,@@ -1181,12 +1182,13 @@ impl RunFragmentBuilder {callbacks: &LayoutPass<'_>,node: crate::layout::node_data::NodeSlotId,used: &UsedValues,+ fragment_facts: run_records::FragmentFactsDecidedByParent,) -> Option<(std::sync::Arc<Fragment>, bool)> {let held = used.held_committed_fragment.take()?;let fragment = if used.is_invisible_for_line_clamp.get() == held.fragment.is_invisible_for_line_clamp {held.fragment} else {- snapshot_fragment(callbacks, node, held.fragment.children.clone(), used)+ snapshot_fragment(callbacks, node, held.fragment.children.clone(), used, fragment_facts)};Some((fragment, held.reuses_subtree))}@@ -1254,13 +1256,13 @@ impl RunFragmentBuilder {node: crate::layout::node_data::NodeSlotId,containing_block: Option<crate::layout::node_data::NodeSlotId>,used: &UsedValues,- placement: run_records::BoxPlacement,- used_insets: run_records::UsedInsets,+ facts: run_records::FactsDecidedByParent,containing_block_is_sealed: bool,containing_line_box_index: Option<usize>,committed_offset: FfiCssPixelPoint,own_anchor_candidate_border_box_rect: Option<CssPixelRect>,) -> PlacedFragment {+ let placement = facts.placement.expect("a box is placed before its fragment is built");let mut inner = self.inner.borrow_mut();let slot = node.slot_index();debug_assert!(@@ -1277,13 +1279,13 @@ impl RunFragmentBuilder {.pending_fragments.remove(&slot).unwrap_or_else(|| PendingFragment::new(node));- let fragment = snapshot_fragment(callbacks, node, children, used);+ let fragment = snapshot_fragment(callbacks, node, children, used, facts.fragment_facts);let link = link_fragment(fragment.clone(),PlacementData::of_box(used,placement.containing_block,- used_insets,+ facts.used_insets,containing_line_box_index,committed_offset,callbacks.frame,@@ -1369,13 +1371,15 @@ impl RunFragmentBuilder {reuses_subtree: bool,containing_block: Option<crate::layout::node_data::NodeSlotId>,used: &UsedValues,- placement: run_records::BoxPlacement,- used_insets: run_records::UsedInsets,+ facts: run_records::FactsDecidedByParent,containing_block_is_sealed: bool,containing_line_box_index: Option<usize>,committed_offset: FfiCssPixelPoint,frame: geometry::Frame,) {+ let placement = facts+ .placement+ .expect("a box is placed before its fragment is attached");let mut inner = self.inner.borrow_mut();let slot = node.slot_index();debug_assert!(@@ -1387,7 +1391,7 @@ impl RunFragmentBuilder {PlacementData::of_box(used,placement.containing_block,- used_insets,+ facts.used_insets,containing_line_box_index,committed_offset,frame,@@ -1478,7 +1482,13 @@ impl RunFragmentBuilder {}let used = records.used_values(pending_fragment.node);inner.top_scope_links.push(link_fragment(- snapshot_fragment(callbacks, pending_fragment.node, pending_fragment.children, used),+ snapshot_fragment(+ callbacks,+ pending_fragment.node,+ pending_fragment.children,+ used,+ records.facts_decided_by_parent_of(pending_fragment.node).fragment_facts,+ ),PlacementData::of_box_as_this_run_left_it(records, pending_fragment.node, callbacks.frame),));}@@ -1496,7 +1506,13 @@ impl RunFragmentBuilder {continue;}inner.top_scope_links.push(link_fragment(- snapshot_fragment(callbacks, node, Vec::new(), used),+ snapshot_fragment(+ callbacks,+ node,+ Vec::new(),+ used,+ records.facts_decided_by_parent_of(node).fragment_facts,+ ),PlacementData::of_box_as_this_run_left_it(records, node, callbacks.frame),));}@@ -1504,7 +1520,13 @@ impl RunFragmentBuilder {for (_, root) in child_roots_awaiting_placement {let used = records.used_values(root.node);inner.top_scope_links.push(link_fragment(- snapshot_fragment(callbacks, root.node, root.scoped_descendants, used),+ snapshot_fragment(+ callbacks,+ root.node,+ root.scoped_descendants,+ used,+ records.facts_decided_by_parent_of(root.node).fragment_facts,+ ),PlacementData::of_box_as_this_run_left_it(records, root.node, callbacks.frame),));}diff --git a/Libraries/LibWeb/Rust/src/layout/run_records.rs b/Libraries/LibWeb/Rust/src/layout/run_records.rsindex 59771aa97bb..09e24a05b25 100644--- a/Libraries/LibWeb/Rust/src/layout/run_records.rs+++ b/Libraries/LibWeb/Rust/src/layout/run_records.rs@@ -296,9 +296,9 @@ pub(crate) struct RunRecords<'arena> {nonce: u64,stack_length_at_start: usize,records_outside_table: RefCell<HashMap<Node, u32>>,- /// Where the root of a run that owns its root record is placed and what insets it uses, which the stack keeps for- /// every other record.- root_position: Cell<PositionKeptByParent>,+ /// What the parent of the root of a run that owns its root record decides about it, which the stack keeps for every+ /// other record.+ root_facts_decided_by_parent: Cell<FactsDecidedByParent>,// Wrapper sizing hands this state to the wrapper's child run, which consumes it while laying// out the table box. Keeping it on the run prevents measurement state from escaping a pass.table_inline_layouts: RefCell<HashMap<Node, table_formatting_context::TableInlineLayout>>,@@ -315,11 +315,24 @@ pub(crate) struct BoxPlacement {pub(crate) containing_block: Node,}-/// What the parent of a box keeps about where it put the box, beside the box's record.+/// What a box's fragment shows of the layout of its parent, which decides it.#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]-struct PositionKeptByParent {- used_insets: UsedInsets,- placement: Option<BoxPlacement>,+pub(crate) struct FragmentFactsDecidedByParent {+ /// For table cells and table-column(-group) boxes: the first grid column the box occupies and the number of grid+ /// columns it spans, so painting can find the cells that originate in a column (CSS 2.2 §17.5.1).+ pub(crate) table_column_index: u32,+ pub(crate) table_column_span: u32,+ /// For table cells: whether every column the cell spans has 'visibility: collapse', which removes the cell from+ /// the display along with the columns (CSS 2.2 §17.5.5).+ pub(crate) hidden_by_collapsed_columns: bool,+}++/// What the parent of a box decides about the box, kept beside the box's record.+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]+pub(crate) struct FactsDecidedByParent {+ pub(crate) placement: Option<BoxPlacement>,+ pub(crate) used_insets: UsedInsets,+ pub(crate) fragment_facts: FragmentFactsDecidedByParent,}/// Where a run keeps the record of a box it owns.@@ -462,7 +475,7 @@ impl<'arena> RunRecords<'arena> {nonce: scratch.begin_run(),stack_length_at_start: scratch.run_record_stack.length(),records_outside_table: RefCell::new(HashMap::default()),- root_position: Cell::new(PositionKeptByParent::default()),+ root_facts_decided_by_parent: Cell::new(FactsDecidedByParent::default()),table_inline_layouts: RefCell::new(HashMap::default()),content_sizing,percentage_block_size_dependencies_in_progress: RefCell::new(smallvec::smallvec![(@@ -574,18 +587,20 @@ impl<'arena> RunRecords<'arena> {.map(OwnedRecord::OnStack)}- fn position_kept_for(&self, node: Node) -> Option<PositionKeptByParent> {+ fn kept_facts_decided_by_parent_of(&self, node: Node) -> Option<FactsDecidedByParent> {Some(match self.owned_record(node)? {- OwnedRecord::Root => self.root_position.get(),- OwnedRecord::OnStack(index) => self.scratch.run_record_stack.position(index),+ OwnedRecord::Root => self.root_facts_decided_by_parent.get(),+ OwnedRecord::OnStack(index) => self.scratch.run_record_stack.facts_decided_by_parent(index),})}#[track_caller]- fn keep_position_for(&self, node: Node, position: PositionKeptByParent) {+ fn keep_facts_decided_by_parent_of(&self, node: Node, facts: FactsDecidedByParent) {match self.owned_record(node) {- Some(OwnedRecord::Root) => self.root_position.set(position),- Some(OwnedRecord::OnStack(index)) => self.scratch.run_record_stack.set_position(index, position),+ Some(OwnedRecord::Root) => self.root_facts_decided_by_parent.set(facts),+ Some(OwnedRecord::OnStack(index)) => {+ self.scratch.run_record_stack.set_facts_decided_by_parent(index, facts);+ }None => panic!("the run rooted at slot {} does not own the record for slot {}",self.root.slot_index(),@@ -602,21 +617,69 @@ impl<'arena> RunRecords<'arena> {#[track_caller]pub(crate) fn place_box(&self, node: Node, placement: BoxPlacement) {let used = self.used_values(node);- let position = self.position_kept_for(node).unwrap_or_default();- assert!(position.placement.is_none(), "a box is placed once");- self.keep_position_for(+ let facts = self.kept_facts_decided_by_parent_of(node).unwrap_or_default();+ assert!(facts.placement.is_none(), "a box is placed once");+ self.keep_facts_decided_by_parent_of(node,- PositionKeptByParent {+ FactsDecidedByParent {placement: Some(placement),- ..position+ ..facts},);used.seal_own_metrics();}+ /// Adopts for `node` what its parent decided about it in the layout that committed `facts`, placing the box there.+ #[track_caller]+ pub(crate) fn adopt_committed_facts_decided_by_parent(&self, node: Node, facts: FactsDecidedByParent) {+ let used = self.used_values(node);+ assert!(+ facts.placement.is_some() && self.placement_of(node).is_none(),+ "a box adopts the placement it committed once"+ );+ self.keep_facts_decided_by_parent_of(node, facts);+ used.seal_own_metrics();+ }++ /// What the parent of `node` has decided about it so far.+ #[track_caller]+ pub(crate) fn facts_decided_by_parent_of(&self, node: Node) -> FactsDecidedByParent {+ self.used_values(node);+ self.kept_facts_decided_by_parent_of(node).unwrap_or_default()+ }++ #[track_caller]+ fn update_fragment_facts_decided_by_parent_of(+ &self,+ node: Node,+ update: impl FnOnce(&mut FragmentFactsDecidedByParent),+ ) {+ assert!(+ !matches!(self.owned_record(node), Some(OwnedRecord::Root)),+ "what a box's fragment shows of its parent's layout is decided by the run of that parent"+ );+ let mut facts = self.facts_decided_by_parent_of(node);+ update(&mut facts.fragment_facts);+ self.keep_facts_decided_by_parent_of(node, facts);+ }++ /// Places `node` in the table grid columns starting at `first_column_index`.+ #[track_caller]+ pub(crate) fn place_in_table_columns(&self, node: Node, first_column_index: u32, column_span: u32) {+ self.update_fragment_facts_decided_by_parent_of(node, |facts| {+ facts.table_column_index = first_column_index;+ facts.table_column_span = column_span;+ });+ }++ #[track_caller]+ pub(crate) fn set_hidden_by_collapsed_columns(&self, node: Node, hidden: bool) {+ self.update_fragment_facts_decided_by_parent_of(node, |facts| facts.hidden_by_collapsed_columns = hidden);+ }+/// Where `node` is placed, if this run placed it.pub(crate) fn placement_of(&self, node: Node) -> Option<BoxPlacement> {- self.position_kept_for(node)?.placement+ self.kept_facts_decided_by_parent_of(node)?.placement}pub(crate) fn is_placed(&self, node: Node) -> bool {@@ -636,22 +699,21 @@ impl<'arena> RunRecords<'arena> {#[track_caller]pub(crate) fn used_insets_of(&self, node: Node) -> UsedInsets {self.used_values(node);- self.position_kept_for(node).unwrap_or_default().used_insets+ self.kept_facts_decided_by_parent_of(node)+ .unwrap_or_default()+ .used_insets}/// Sets the used insets of `node`, which cannot change once the box is placed.#[track_caller]pub(crate) fn set_used_insets(&self, node: Node, insets: UsedInsets) {- let position = self.position_kept_for(node).unwrap_or_default();- assert!(- position.placement.is_none(),- "the used insets of a placed box are final"- );- self.keep_position_for(+ let facts = self.kept_facts_decided_by_parent_of(node).unwrap_or_default();+ assert!(facts.placement.is_none(), "the used insets of a placed box are final");+ self.keep_facts_decided_by_parent_of(node,- PositionKeptByParent {+ FactsDecidedByParent {used_insets: insets,- ..position+ ..facts},);}@@ -740,8 +802,8 @@ const RECORDS_PER_STACK_CHUNK: usize = 64;struct RunRecordStack {chunks: RefCell<Vec<NonNull<UsedValues>>>,length: Cell<usize>,- /// What the parent of each record's box keeps about where it put the box, at the record's index.- positions: RefCell<Vec<PositionKeptByParent>>,+ /// What the parent of each record's box decides about the box, at the record's index.+ facts_decided_by_parent: RefCell<Vec<FactsDecidedByParent>>,}// SAFETY: The stack owns its chunks as a Vec owns its buffer, and a record lives only while the run@@ -776,23 +838,25 @@ impl RunRecordStack {slot};self.length.set(index + 1);- self.positions.borrow_mut().push(PositionKeptByParent::default());+ self.facts_decided_by_parent+ .borrow_mut()+ .push(FactsDecidedByParent::default());(u32::try_from(index).expect("layout run records fit a u32 index"), slot)}- fn position(&self, index: u32) -> PositionKeptByParent {- self.positions.borrow()[index as usize]+ fn facts_decided_by_parent(&self, index: u32) -> FactsDecidedByParent {+ self.facts_decided_by_parent.borrow()[index as usize]}- fn set_position(&self, index: u32, position: PositionKeptByParent) {- self.positions.borrow_mut()[index as usize] = position;+ fn set_facts_decided_by_parent(&self, index: u32, facts: FactsDecidedByParent) {+ self.facts_decided_by_parent.borrow_mut()[index as usize] = facts;}/// # Safety////// No reference to a record at or above `length` may be live.unsafe fn truncate(&self, length: usize) {- self.positions.borrow_mut().truncate(length);+ self.facts_decided_by_parent.borrow_mut().truncate(length);let chunks = self.chunks.borrow();while self.length.get() > length {let index = self.length.get() - 1;diff --git a/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rsindex f24ff73ff8c..b04186b85dd 100644--- a/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/table_formatting_context.rs@@ -1460,9 +1460,9 @@ impl<'pass> TableFormattingContext<'pass> {}}for cell in &self.cells {- let used = self.used_values(cell.box_);- used.table_column_index.set(cell.column_index as u32);- used.table_column_span.set(cell.column_span as u32);+ self.run+ .records+ .place_in_table_columns(cell.box_, cell.column_index as u32, cell.column_span as u32);}}@@ -2717,8 +2717,9 @@ impl<'pass> TableFormattingContext<'pass> {// other engines: "This value causes the entire row or column to be removed from the display". It is laid// out like any other cell (with no inline size, see remove_collapsed_columns), and painting skips it.// https://www.w3.org/TR/CSS22/tables.html#dynamic-effects- used.hidden_by_collapsed_columns- .set(self.visible_spanned_columns(cell) == 0);+ self.run+ .records+ .set_hidden_by_collapsed_columns(cell.box_, self.visible_spanned_columns(cell) == 0);let height = style.height();if !self.rows[cell.row_index].is_collapsed && height.is_length() {let offsets = used.border_box_top(collapsed) + used.border_box_bottom(collapsed);@@ -3308,9 +3309,10 @@ impl<'pass> TableFormattingContext<'pass> {} else {CssPixels::default()};+ self.run+ .records+ .place_in_table_columns(node, start as u32, (end - start) as u32);let used = self.used_values(node);- used.table_column_index.set(start as u32);- used.table_column_span.set((end - start) as u32);used.set_content_inline_size(inline_size);used.set_content_block_size(block_size);let mut x = inline_offset + column_offsets[start];diff --git a/Libraries/LibWeb/Rust/src/layout/used_values.rs b/Libraries/LibWeb/Rust/src/layout/used_values.rsindex 190305b326f..905f3e10680 100644--- a/Libraries/LibWeb/Rust/src/layout/used_values.rs+++ b/Libraries/LibWeb/Rust/src/layout/used_values.rs@@ -358,14 +358,6 @@ pub(crate) struct UsedValues {pub continues_from_previous_fragment: Cell<bool>,pub continues_in_next_fragment: Cell<bool>,- // For table cells and table-column(-group) boxes: the first grid column the box occupies and the number of grid- // columns it spans, so painting can find the cells that originate in a column (CSS 2.2 §17.5.1).- pub table_column_index: Cell<u32>,- pub table_column_span: Cell<u32>,- // For table cells: whether every column the cell spans has 'visibility: collapse', which removes the cell from- // the display along with the columns (CSS 2.2 §17.5.5).- pub hidden_by_collapsed_columns: Cell<bool>,-// Keep baseline payloads separate so resetting the presence bits does not// perturb the payloads observed by the existing derivation flow.pub has_first_baseline: Cell<bool>,@@ -409,9 +401,6 @@ impl Default for UsedValues {continues_from_previous_fragment: Cell::new(false),continues_in_next_fragment: Cell::new(false),clamped_content_is_scrollable_overflow: Cell::new(false),- table_column_index: Cell::new(0),- table_column_span: Cell::new(0),- hidden_by_collapsed_columns: Cell::new(false),has_first_baseline: Cell::new(false),first_baseline: Cell::new(zero),has_last_baseline: Cell::new(false),@@ -617,9 +606,6 @@ used_values_cells! {is_invisible_for_line_clamp: bool,continues_from_previous_fragment: bool,continues_in_next_fragment: bool,- table_column_index: u32,- table_column_span: u32,- hidden_by_collapsed_columns: bool,}}@@ -1139,12 +1125,11 @@ pub(crate) fn create_used_values(used}-/// The record, placement and used insets of a box as its committed fragment link has them, which a run adopts as they-/// are.+/// The record of a box and what its parent decided about it, as its committed fragment link has them, which a run+/// adopts as they are.pub(crate) struct CommittedBox {pub(crate) record: UsedValues,- pub(crate) placement: super::run_records::BoxPlacement,- pub(crate) used_insets: super::run_records::UsedInsets,+ pub(crate) facts_decided_by_parent: super::run_records::FactsDecidedByParent,}pub(crate) fn committed_box_from_fragment_link(callbacks: &LayoutPass<'_>, node: Node) -> Option<CommittedBox> {@@ -1158,22 +1143,25 @@ pub(crate) fn committed_box_from_fragment_link(callbacks: &LayoutPass<'_>, node:used.set_box_metrics_from_fragment(fragment);used.has_definite_inline_size.set(true);used.has_definite_block_size.set(true);- used.table_column_index.set(fragment.table_column_index);- used.table_column_span.set(fragment.table_column_span);- used.hidden_by_collapsed_columns- .set(fragment.hidden_by_collapsed_columns);Some(CommittedBox {record: used,- placement: super::run_records::BoxPlacement {- content_offset_in_containing_block: link.committed_offset,- containing_block: link.containing_block,- },- used_insets: super::run_records::UsedInsets {- left: link.inset_left,- right: link.inset_right,- top: link.inset_top,- bottom: link.inset_bottom,+ facts_decided_by_parent: super::run_records::FactsDecidedByParent {+ placement: Some(super::run_records::BoxPlacement {+ content_offset_in_containing_block: link.committed_offset,+ containing_block: link.containing_block,+ }),+ used_insets: super::run_records::UsedInsets {+ left: link.inset_left,+ right: link.inset_right,+ top: link.inset_top,+ bottom: link.inset_bottom,+ },+ fragment_facts: super::run_records::FragmentFactsDecidedByParent {+ table_column_index: fragment.table_column_index,+ table_column_span: fragment.table_column_span,+ hidden_by_collapsed_columns: fragment.hidden_by_collapsed_columns,+ },},})}