From 219a2f20388daf30038b6bd718ff557698f2c931 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Thu, 12 Sep 2024 21:23:17 +0200 Subject: 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 --- components/layout_2020/flow/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'components/layout_2020/flow') 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 -- cgit v1.2.3