diff --git a/components/style/values/generics/motion.rs b/components/style/values/generics/motion.rs index 768ef52ff7c..0767fd76e76 100644 --- a/components/style/values/generics/motion.rs +++ b/components/style/values/generics/motion.rs @@ -4,6 +4,7 @@ //! Generic types for CSS Motion Path. +use crate::values::animated::ToAnimatedZero; use crate::values::generics::position::GenericPosition; use crate::values::specified::SVGPathData; @@ -21,7 +22,6 @@ use crate::values::specified::SVGPathData; PartialEq, Serialize, SpecifiedValueInfo, - ToAnimatedZero, ToComputedValue, ToCss, ToResolvedValue, @@ -57,7 +57,6 @@ impl RaySize { PartialEq, Serialize, SpecifiedValueInfo, - ToAnimatedZero, ToComputedValue, ToCss, ToResolvedValue, @@ -93,7 +92,6 @@ pub struct RayFunction { PartialEq, Serialize, SpecifiedValueInfo, - ToAnimatedZero, ToComputedValue, ToCss, ToResolvedValue, @@ -125,6 +123,13 @@ impl OffsetPath { } } +impl ToAnimatedZero for OffsetPath { + #[inline] + fn to_animated_zero(&self) -> Result { + Err(()) + } +} + /// The offset-position property, which specifies the offset starting position that is used by the /// functions if they don’t specify their own starting position. ///