Move impl of ToAnimatedZero for BorderCornerRadius where it belongs

This commit is contained in:
Anthony Ramine 2017-08-14 01:46:53 +02:00
parent 49204e2c72
commit fb8400d745
2 changed files with 9 additions and 5 deletions

View file

@ -953,11 +953,6 @@ impl<T: Animatable + Copy> Animatable for Point2D<T> {
}
}
impl ToAnimatedZero for BorderCornerRadius {
#[inline]
fn to_animated_zero(&self) -> Result<Self, ()> { Err(()) }
}
/// https://drafts.csswg.org/css-transitions/#animtype-length
impl Animatable for VerticalAlign {
#[inline]

View file

@ -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<Self, ()> {
/// FIXME(nox): Why?
Err(())
}
}