mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
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:
parent
94fb839fdd
commit
ce51ff3a9a
1 changed files with 1 additions and 1 deletions
|
@ -2100,7 +2100,7 @@ impl ComputeDistance for AnimationValue {
|
||||||
match (self, other) {
|
match (self, other) {
|
||||||
% for prop in data.longhands:
|
% for prop in data.longhands:
|
||||||
% if prop.animatable:
|
% 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 from),
|
||||||
&AnimationValue::${prop.camel_case}(ref to)) => {
|
&AnimationValue::${prop.camel_case}(ref to)) => {
|
||||||
from.compute_distance(to)
|
from.compute_distance(to)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue