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.
This commit is contained in:
Hiroyuki Ikezoe 2017-04-24 15:19:31 +09:00
parent 94fb839fdd
commit ce51ff3a9a

View file

@ -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)