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

@ -11,7 +11,8 @@ use values::specified::url::SpecifiedUrl;
/// A generic value for a single `box-shadow`.
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
#[derive(Animate, Clone, Debug, HasViewportPercentage, PartialEq, ToAnimatedValue)]
#[derive(Animate, Clone, Debug, HasViewportPercentage, PartialEq)]
#[derive(ToAnimatedValue, ToAnimatedZero)]
pub struct BoxShadow<Color, SizeLength, BlurShapeLength, ShapeLength> {
/// The base shadow.
pub base: SimpleShadow<Color, SizeLength, BlurShapeLength>,