diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-07-18 15:48:29 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-07-19 10:19:44 +0200 |
commit | 98bf8321693645c8eb14aa39989b8e97ef438f0d (patch) | |
tree | 44b4665af4cd6efb97ff1313106cf6add1401c92 /components/style/macros.rs | |
parent | 99592cc3d13ba01d4fc5cc9edee0367065ef994a (diff) | |
download | servo-98bf8321693645c8eb14aa39989b8e97ef438f0d.tar.gz servo-98bf8321693645c8eb14aa39989b8e97ef438f0d.zip |
Move Animatable::get_zero_value to ToAnimatedZero::to_animated_zero
Diffstat (limited to 'components/style/macros.rs')
-rw-r--r-- | components/style/macros.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/style/macros.rs b/components/style/macros.rs index 569d5e7d54c..af4e0b74684 100644 --- a/components/style/macros.rs +++ b/components/style/macros.rs @@ -112,5 +112,10 @@ macro_rules! define_keyword_type { impl $crate::values::computed::ComputedValueAsSpecified for $name {} impl $crate::values::animated::AnimatedValueAsComputed for $name {} no_viewport_percentage!($name); + + impl $crate::values::animated::ToAnimatedZero for $name { + #[inline] + fn to_animated_zero(&self) -> Result<Self, ()> { Ok($name) } + } }; } |