aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_wrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/table_wrapper.rs')
-rw-r--r--components/layout/table_wrapper.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs
index 5e321382e97..a336ca55cfb 100644
--- a/components/layout/table_wrapper.rs
+++ b/components/layout/table_wrapper.rs
@@ -95,8 +95,7 @@ impl TableWrapperFlow {
for kid in self.block_flow.base.child_iter() {
if kid.is_table() {
let kid_table = kid.as_table();
- let spacing_per_cell = kid_table.spacing().horizontal;
- spacing = spacing_per_cell * (self.column_intrinsic_inline_sizes.len() as i32 + 1);
+ spacing = kid_table.total_horizontal_spacing();
table_border_padding =
kid_table.block_flow.fragment.border_padding.inline_start_end();
break