diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index 87325fa70cd..2863b04294c 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -2410,10 +2410,7 @@ impl Animatable for Either (Either::Second(ref this), Either::Second(ref other)) => { this.add_weighted(&other, self_portion, other_portion).map(Either::Second) }, - _ => { - let result = if self_portion > other_portion {*self} else {*other}; - Ok(result) - } + _ => Err(()), } } }