mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Bug 1363639 - stylo: Make interpolation of rect() match Gecko
This commit is contained in:
parent
5e58c52272
commit
a8cce41ba9
1 changed files with 2 additions and 0 deletions
|
@ -744,6 +744,7 @@ impl <T> Animatable for Option<T>
|
||||||
(&Some(ref this), &Some(ref other)) => {
|
(&Some(ref this), &Some(ref other)) => {
|
||||||
Ok(this.add_weighted(other, self_portion, other_portion).ok())
|
Ok(this.add_weighted(other, self_portion, other_portion).ok())
|
||||||
}
|
}
|
||||||
|
(&None, &None) => Ok(None),
|
||||||
_ => Err(()),
|
_ => Err(()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -754,6 +755,7 @@ impl <T> Animatable for Option<T>
|
||||||
(&Some(ref this), &Some(ref other)) => {
|
(&Some(ref this), &Some(ref other)) => {
|
||||||
this.compute_distance(other)
|
this.compute_distance(other)
|
||||||
},
|
},
|
||||||
|
(&None, &None) => Ok(0.0),
|
||||||
_ => Err(()),
|
_ => Err(()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue