diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 5a235b45c19..e3ee36399ac 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -953,11 +953,6 @@ impl Animatable for Point2D { } } -impl ToAnimatedZero for BorderCornerRadius { - #[inline] - fn to_animated_zero(&self) -> Result { Err(()) } -} - /// https://drafts.csswg.org/css-transitions/#animtype-length impl Animatable for VerticalAlign { #[inline] diff --git a/components/style/values/computed/border.rs b/components/style/values/computed/border.rs index e4073601c10..460bf6f759b 100644 --- a/components/style/values/computed/border.rs +++ b/components/style/values/computed/border.rs @@ -4,6 +4,7 @@ //! Computed types for CSS values related to borders. +use values::animated::ToAnimatedZero; use values::computed::{Number, NumberOrPercentage}; use values::computed::length::LengthOrPercentage; use values::generics::border::BorderCornerRadius as GenericBorderCornerRadius; @@ -34,3 +35,11 @@ impl BorderImageSideWidth { GenericBorderImageSideWidth::Number(1.) } } + +impl ToAnimatedZero for BorderCornerRadius { + #[inline] + fn to_animated_zero(&self) -> Result { + /// FIXME(nox): Why? + Err(()) + } +}