From 43311128460880b1ceb582140d718b4c72cccb05 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Fri, 30 Jun 2017 22:44:32 -0700 Subject: [PATCH] reduce --- components/style/gecko/wrapper.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 2880689ae87..a7aff7f3a73 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -1309,8 +1309,6 @@ impl<'le> TElement for GeckoElement<'le> { existing_transitions: &HashMap>) -> bool { - use properties::animated_properties::AnimatedProperty; - // |property| should be an animatable longhand let animatable_longhand = AnimatableLonghand::from_transition_property(property).unwrap(); @@ -1324,10 +1322,12 @@ impl<'le> TElement for GeckoElement<'le> { return existing_transitions.get(property).unwrap() != &after_value; } - combined_duration > 0.0f32 && - AnimatedProperty::from_animatable_longhand(&animatable_longhand, - before_change_style, - after_change_style).does_animate() + let from = AnimationValue::from_computed_values(&animatable_longhand, + before_change_style); + let to = AnimationValue::from_computed_values(&animatable_longhand, + after_change_style); + + combined_duration > 0.0f32 && from != to } #[inline]