aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/model.rs')
-rw-r--r--components/layout/model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/model.rs b/components/layout/model.rs
index 17c3b625af3..e6be75e45a4 100644
--- a/components/layout/model.rs
+++ b/components/layout/model.rs
@@ -502,7 +502,7 @@ pub fn style_length(style_length: Size, container_size: Option<Au>) -> MaybeAuto
match style_length {
Size::Auto => MaybeAuto::Auto,
Size::LengthPercentage(ref lp) => {
- MaybeAuto::from_option(lp.0.maybe_to_used_value(container_size))
+ MaybeAuto::from_option(lp.0.maybe_to_used_value(container_size.map(|l| l.into())))
},
}
}