From abdfcacae894ae65bc68d8158c8a7bebf6ca7a0d Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Wed, 8 Jan 2025 06:51:14 -0800 Subject: [PATCH] layout: Don't use `content_inline_size_for_table` in taffy (#34891) `content_inline_size_for_table` is an override for table layout. We only use taffy for grid layout, not for table layout. Signed-off-by: Oriol Brufau --- components/layout_2020/taffy/layout.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/layout_2020/taffy/layout.rs b/components/layout_2020/taffy/layout.rs index 8dd5421a3c7..44c66035ee7 100644 --- a/components/layout_2020/taffy/layout.rs +++ b/components/layout_2020/taffy/layout.rs @@ -596,9 +596,7 @@ impl TaffyContainer { IndependentLayout { fragments, content_block_size: Au::from_f32_px(output.size.height) - pbm.padding_border_sums.block, - content_inline_size_for_table: Some( - Au::from_f32_px(output.size.width) - pbm.padding_border_sums.inline, - ), + content_inline_size_for_table: None, baselines: Baselines::default(), // TODO: determine this accurately