diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-09-12 21:23:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 19:23:17 +0000 |
commit | 219a2f20388daf30038b6bd718ff557698f2c931 (patch) | |
tree | e72328ecb9df5faab7fcbc1654e7a34a4832f2c6 /components/layout_2020/flow | |
parent | dc018b5f9f0cbdede459a0236743e39df24cb018 (diff) | |
download | servo-219a2f20388daf30038b6bd718ff557698f2c931.tar.gz servo-219a2f20388daf30038b6bd718ff557698f2c931.zip |
Cleanup after #33396 (#33429)
Mostly formatting improvements, but also recovering a pair of parenthesis
that was accidentally removed, changing the logic.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/flow')
-rw-r--r-- | components/layout_2020/flow/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/layout_2020/flow/mod.rs b/components/layout_2020/flow/mod.rs index b3f630cbe48..765a0dadf91 100644 --- a/components/layout_2020/flow/mod.rs +++ b/components/layout_2020/flow/mod.rs @@ -1148,10 +1148,9 @@ impl NonReplacedFormattingContext { loop { // First try to place the block using the minimum size as the object size. placement_rect = placement.place(); - let proposed_inline_size = placement_rect.size.inline - - pbm.padding_border_sums - .inline - .clamp_between_extremums(min_box_size.inline, max_box_size.inline); + let proposed_inline_size = (placement_rect.size.inline - + pbm.padding_border_sums.inline) + .clamp_between_extremums(min_box_size.inline, max_box_size.inline); // Now lay out the block using the inline size we calculated from the placement. // Later we'll check to see if the resulting block size is compatible with the |