aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/geom.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/geom.rs')
-rw-r--r--components/layout/geom.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/layout/geom.rs b/components/layout/geom.rs
index 49f031cbd18..6a09519b7ed 100644
--- a/components/layout/geom.rs
+++ b/components/layout/geom.rs
@@ -767,7 +767,9 @@ impl From<StyleSize> for Size<LengthPercentage> {
StyleSize::FitContent => Size::FitContent,
StyleSize::FitContentFunction(lp) => Size::FitContentFunction(lp.0),
StyleSize::Stretch => Size::Stretch,
- StyleSize::AnchorSizeFunction(_) => unreachable!("anchor-size() should be disabled"),
+ StyleSize::AnchorSizeFunction(_) | StyleSize::AnchorContainingCalcFunction(_) => {
+ unreachable!("anchor-size() should be disabled")
+ },
}
}
}
@@ -782,7 +784,9 @@ impl From<StyleMaxSize> for Size<LengthPercentage> {
StyleMaxSize::FitContent => Size::FitContent,
StyleMaxSize::FitContentFunction(lp) => Size::FitContentFunction(lp.0),
StyleMaxSize::Stretch => Size::Stretch,
- StyleMaxSize::AnchorSizeFunction(_) => unreachable!("anchor-size() should be disabled"),
+ StyleMaxSize::AnchorSizeFunction(_) | StyleMaxSize::AnchorContainingCalcFunction(_) => {
+ unreachable!("anchor-size() should be disabled")
+ },
}
}
}