From fb8400d7450a2418956047301455cfb5ed00d50b Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Mon, 14 Aug 2017 01:46:53 +0200 Subject: [PATCH] Move impl of ToAnimatedZero for BorderCornerRadius where it belongs --- .../style/properties/helpers/animated_properties.mako.rs | 5 ----- components/style/values/computed/border.rs | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) 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(()) + } +}