mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +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
|
@ -5,6 +5,7 @@
|
|||
//! Computed types for CSS values related to backgrounds.
|
||||
|
||||
use properties::animated_properties::{Animatable, RepeatableListAnimatable};
|
||||
use values::animated::ToAnimatedZero;
|
||||
use values::computed::length::LengthOrPercentageOrAuto;
|
||||
use values::generics::background::BackgroundSize as GenericBackgroundSize;
|
||||
|
||||
|
@ -50,3 +51,8 @@ impl Animatable for BackgroundSize {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ToAnimatedZero for BackgroundSize {
|
||||
#[inline]
|
||||
fn to_animated_zero(&self) -> Result<Self, ()> { Err(()) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue