mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Rename the Interpolate trait to Animatable
This commit is contained in:
parent
e029a42653
commit
4d25e87ac6
11 changed files with 89 additions and 88 deletions
|
@ -11,7 +11,7 @@
|
|||
use Atom;
|
||||
pub use cssparser::{RGBA, Token, Parser, serialize_identifier, serialize_string};
|
||||
use parser::{Parse, ParserContext};
|
||||
use properties::animated_properties::{ComputeDistance, Interpolate};
|
||||
use properties::animated_properties::{Animatable, ComputeDistance};
|
||||
use std::ascii::AsciiExt;
|
||||
use std::borrow::Cow;
|
||||
use std::fmt::{self, Debug};
|
||||
|
@ -127,7 +127,7 @@ macro_rules! define_keyword_type {
|
|||
}
|
||||
}
|
||||
|
||||
impl Interpolate for $name {
|
||||
impl Animatable for $name {
|
||||
#[inline]
|
||||
fn interpolate(&self, _other: &Self, _progress: f64) -> Result<Self, ()> {
|
||||
Ok($name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue