Refactor: use type alias instead of newtype

This commit is contained in:
hsinewu 2016-08-22 09:36:19 +08:00
parent ec7efff14b
commit ef9a690c9c
5 changed files with 17 additions and 55 deletions

View file

@ -496,13 +496,6 @@ impl Interpolate for Position {
}
}
impl Interpolate for BackgroundPosition {
#[inline]
fn interpolate(&self, other: &Self, time: f64) -> Result<Self, ()> {
Ok(BackgroundPosition(try!(self.0.interpolate(&other.0, time))))
}
}
impl Interpolate for BackgroundSize {
fn interpolate(&self, other: &Self, time: f64) -> Result<Self, ()> {
use properties::longhands::background_size::computed_value::ExplicitSize;