diff --git a/servo/components/style/properties/longhands/box.mako.rs b/servo/components/style/properties/longhands/box.mako.rs index a75504be1932..364fe8bde8a4 100644 --- a/servo/components/style/properties/longhands/box.mako.rs +++ b/servo/components/style/properties/longhands/box.mako.rs @@ -53,7 +53,7 @@ ${helpers.single_keyword( > impl computed_value::T { pub fn is_absolutely_positioned(self) -> bool { - matches!(self, Self::Absolute | Self::Fixed) + matches!(self, computed_value::T::Absolute | computed_value::T::Fixed) } } diff --git a/servo/components/style/values/computed/box.rs b/servo/components/style/values/computed/box.rs index d5adeb206a62..ce455d64d2d3 100644 --- a/servo/components/style/values/computed/box.rs +++ b/servo/components/style/values/computed/box.rs @@ -64,7 +64,7 @@ pub enum Float { impl Float { /// Returns true if `self` is not `None`. pub fn is_floating(self) -> bool { - self != Self::None + self != Float::None } }