mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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>
This commit is contained in:
parent
01ed5064de
commit
a97afebdcc
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue