mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Refactor: use type alias instead of newtype
This commit is contained in:
parent
ec7efff14b
commit
ef9a690c9c
5 changed files with 17 additions and 55 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue