From a8cce41ba9125c8e15d491d0891c72bb67f0d047 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 23 May 2017 17:28:52 -0700 Subject: [PATCH] Bug 1363639 - stylo: Make interpolation of rect() match Gecko --- components/style/properties/helpers/animated_properties.mako.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 6ea63347b607..ef1a78bfb2eb 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -744,6 +744,7 @@ impl Animatable for Option (&Some(ref this), &Some(ref other)) => { Ok(this.add_weighted(other, self_portion, other_portion).ok()) } + (&None, &None) => Ok(None), _ => Err(()), } } @@ -754,6 +755,7 @@ impl Animatable for Option (&Some(ref this), &Some(ref other)) => { this.compute_distance(other) }, + (&None, &None) => Ok(0.0), _ => Err(()), } }