mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Move Animatable::get_zero_value to ToAnimatedZero::to_animated_zero
This commit is contained in:
parent
99592cc3d1
commit
98bf832169
13 changed files with 293 additions and 127 deletions
|
@ -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) }
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue