mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Merge ComputeDistance trait into Animatable trait
This commit is contained in:
parent
4d25e87ac6
commit
6dfc1d1aa8
10 changed files with 481 additions and 684 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::{Animatable, ComputeDistance};
|
||||
use properties::animated_properties::Animatable;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::borrow::Cow;
|
||||
use std::fmt::{self, Debug};
|
||||
|
@ -134,13 +134,6 @@ macro_rules! define_keyword_type {
|
|||
}
|
||||
}
|
||||
|
||||
impl ComputeDistance for $name {
|
||||
#[inline]
|
||||
fn compute_distance(&self, _other: &Self) -> Result<f64, ()> {
|
||||
Err(())
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for $name {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, $css)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue