mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Support #[animation(constant)] when deriving ToAnimatedZero
This commit is contained in:
parent
405e34aa74
commit
8101887d31
4 changed files with 23 additions and 31 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue