Support #[animation(constant)] when deriving ToAnimatedZero

This commit is contained in:
Anthony Ramine 2017-08-26 00:07:02 +02:00
parent 405e34aa74
commit 8101887d31
4 changed files with 23 additions and 31 deletions

View file

@ -152,17 +152,6 @@ impl ComputeSquaredDistance for BoxShadow {
}
}
impl ToAnimatedZero for BoxShadow {
#[inline]
fn to_animated_zero(&self) -> Result<Self, ()> {
Ok(BoxShadow {
base: self.base.to_animated_zero()?,
spread: self.spread.to_animated_zero()?,
inset: self.inset,
})
}
}
impl ToAnimatedValue for ComputedFilterList {
type AnimatedValue = FilterList;