mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -152,8 +152,7 @@ impl LogicalVec2<LengthPercentageOrAuto<'_>> {
|
|||
self.block
|
||||
.non_auto()
|
||||
.and_then(|value| value.maybe_to_used_value(containing_block_block_size))
|
||||
.map(|value| AuOrAuto::LengthPercentage(value))
|
||||
.unwrap_or(AuOrAuto::Auto)
|
||||
.map_or(AuOrAuto::Auto, AuOrAuto::LengthPercentage)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -182,14 +181,12 @@ impl LogicalVec2<LengthPercentageOrAuto<'_>> {
|
|||
.inline
|
||||
.non_auto()
|
||||
.and_then(|value| value.maybe_to_used_value(basis.inline))
|
||||
.map(|value| AuOrAuto::LengthPercentage(value))
|
||||
.unwrap_or(AuOrAuto::Auto),
|
||||
.map_or(AuOrAuto::Auto, AuOrAuto::LengthPercentage),
|
||||
block: self
|
||||
.block
|
||||
.non_auto()
|
||||
.and_then(|value| value.maybe_to_used_value(basis.block))
|
||||
.map(|value| AuOrAuto::LengthPercentage(value))
|
||||
.unwrap_or(AuOrAuto::Auto),
|
||||
.map_or(AuOrAuto::Auto, AuOrAuto::LengthPercentage),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue