From a97afebdcc7a06201638c45a9c7e4b7aab25203a Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Wed, 25 Sep 2024 15:11:37 -0700 Subject: [PATCH] Avoid unnecessary recomputation of `inline-size` being `auto` (#33548) This information is already provided by `get_outer_sizes_from_style()`. Signed-off-by: Oriol Brufau --- components/layout_2020/table/layout.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/layout_2020/table/layout.rs b/components/layout_2020/table/layout.rs index 5b622cbb7b9..2d6f500756b 100644 --- a/components/layout_2020/table/layout.rs +++ b/components/layout_2020/table/layout.rs @@ -792,9 +792,8 @@ impl<'a> TableLayout<'a> { block: padding.block_sum() + border.block_sum() + margin.block_sum(), }; - let (size, min_size, max_size, _) = + let (size, min_size, max_size, size_is_auto) = get_outer_sizes_from_style(&context.style, writing_mode, &padding_border_sums); - let size_is_auto = context.style.box_size(writing_mode).inline.is_auto(); // If an inline size is defined it should serve as the upper limit and lower limit // of the caption inline size.