mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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>
This commit is contained in:
parent
dc018b5f9f
commit
219a2f2038
7 changed files with 58 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue