diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 6ea63347b60..ef1a78bfb2e 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(()), } }