Bug 1363639 - stylo: Make interpolation of rect() match Gecko

This commit is contained in:
Matt Brubeck 2017-05-23 17:28:52 -07:00
parent 5e58c52272
commit a8cce41ba9

View file

@ -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(()),
} }
} }