mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Let LengthPercentage::maybe_to_used_value()
accept Option<Au>
(#33450)
Bump Stylo to servo/stylo#75 and remove conversions that are no longer necessary. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
9f2306f760
commit
17f796dfc1
3 changed files with 26 additions and 32 deletions
|
@ -525,7 +525,7 @@ pub fn style_length(style_length: &Size, container_size: Option<Au>) -> MaybeAut
|
|||
match style_length {
|
||||
Size::Auto => MaybeAuto::Auto,
|
||||
Size::LengthPercentage(ref lp) => {
|
||||
MaybeAuto::from_option(lp.0.maybe_to_used_value(container_size.map(|l| l.into())))
|
||||
MaybeAuto::from_option(lp.0.maybe_to_used_value(container_size))
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue