diff options
Diffstat (limited to 'components/layout/table_wrapper.rs')
-rw-r--r-- | components/layout/table_wrapper.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs index e9e6ff3a86a..99bd3d29b64 100644 --- a/components/layout/table_wrapper.rs +++ b/components/layout/table_wrapper.rs @@ -72,7 +72,7 @@ impl TableWrapperFlow { } fn border_padding_and_spacing(&mut self) -> (Au, Au) { let (mut table_border_padding, mut spacing) = (Au(0), Au(0)); - for kid in self.block_flow.base.child_iter() { + for kid in self.block_flow.base.child_iter_mut() { if kid.is_table() { let kid_table = kid.as_table(); spacing = kid_table.total_horizontal_spacing(); @@ -95,7 +95,7 @@ impl TableWrapperFlow { // padding will affect where we place the child. This is an odd artifact of the way that // tables are separated into table flows and table wrapper flows. let available_inline_size = self.block_flow.fragment.border_box.size.inline; - for kid in self.block_flow.base.child_iter() { + for kid in self.block_flow.base.child_iter_mut() { if !kid.is_table() { continue } @@ -308,7 +308,7 @@ impl Flow for TableWrapperFlow { fn bubble_inline_sizes(&mut self) { // Get the intrinsic column inline-sizes info from the table flow. - for kid in self.block_flow.base.child_iter() { + for kid in self.block_flow.base.child_iter_mut() { debug_assert!(kid.is_table_caption() || kid.is_table()); if kid.is_table() { self.column_intrinsic_inline_sizes = kid.column_intrinsic_inline_sizes().clone() |