From 9c05bc92f878b072574142ea349cedab9e453790 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Thu, 4 Jan 2018 19:22:36 +0900 Subject: [PATCH] Check each animation sub property count in animations_equals In a subsequent patch, we will no longer fill out deficient property values in mAnimations. --- components/style/properties/gecko.mako.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index d7eaf8eb3c4..2d3907b23d0 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -3390,7 +3390,15 @@ fn static_assert() { ${impl_transition_count('property', 'Property')} pub fn animations_equals(&self, other: &Self) -> bool { - unsafe { bindings::Gecko_StyleAnimationsEquals(&self.gecko.mAnimations, &other.gecko.mAnimations) } + return self.gecko.mAnimationNameCount == other.gecko.mAnimationNameCount + && self.gecko.mAnimationDelayCount == other.gecko.mAnimationDelayCount + && self.gecko.mAnimationDirectionCount == other.gecko.mAnimationDirectionCount + && self.gecko.mAnimationDurationCount == other.gecko.mAnimationDurationCount + && self.gecko.mAnimationFillModeCount == other.gecko.mAnimationFillModeCount + && self.gecko.mAnimationIterationCountCount == other.gecko.mAnimationIterationCountCount + && self.gecko.mAnimationPlayStateCount == other.gecko.mAnimationPlayStateCount + && self.gecko.mAnimationTimingFunctionCount == other.gecko.mAnimationTimingFunctionCount + && unsafe { bindings::Gecko_StyleAnimationsEquals(&self.gecko.mAnimations, &other.gecko.mAnimations) } } pub fn set_animation_name(&mut self, v: I)