From ce51ff3a9af1e673c22dc2a6e0b89cbb8f115958 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Mon, 24 Apr 2017 15:19:31 +0900 Subject: [PATCH] Check animation_value_type is not 'discrete' instead of 'normal' for ComputeDistance. We will introduce various new animation_value_type in subsequent patches, so we should just check 'discrete' type for properties that we can't compute distance. --- components/style/properties/helpers/animated_properties.mako.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index c353f66ff3c..4f2d0c0b574 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -2100,7 +2100,7 @@ impl ComputeDistance for AnimationValue { match (self, other) { % for prop in data.longhands: % if prop.animatable: - % if prop.animation_value_type == "normal": + % if prop.animation_value_type != "discrete": (&AnimationValue::${prop.camel_case}(ref from), &AnimationValue::${prop.camel_case}(ref to)) => { from.compute_distance(to)