diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-09-25 15:11:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 22:11:37 +0000 |
commit | a97afebdcc7a06201638c45a9c7e4b7aab25203a (patch) | |
tree | 2cb1808636eba75890dccc55c082f54e1f2002e5 | |
parent | 01ed5064dee128abe4818f13e95124b528c04f19 (diff) | |
download | servo-a97afebdcc7a06201638c45a9c7e4b7aab25203a.tar.gz servo-a97afebdcc7a06201638c45a9c7e4b7aab25203a.zip |
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 <obrufau@igalia.com>
-rw-r--r-- | components/layout_2020/table/layout.rs | 3 |
1 files changed, 1 insertions, 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. |