From b914d41d52d3729e907ff6c130a7f2a92addba5b Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Sat, 14 Jan 2017 11:35:58 +0900 Subject: [PATCH] Bug 1330824 - Use impl_copy_animation_value for animation-timing-function. r=heycam I did forget to do it in bug 1328786. MozReview-Commit-ID: IDpVShW6nrH --- components/style/properties/gecko.mako.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 0488ed31479..3f17e3e6539 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -1432,17 +1432,11 @@ fn static_assert() { } } ${impl_animation_count('timing_function', 'TimingFunction')} + ${impl_copy_animation_value('timing_function', 'TimingFunction')} pub fn animation_timing_function_at(&self, index: usize) -> longhands::animation_timing_function::computed_value::SingleComputedValue { self.gecko.mAnimations[index].mTimingFunction.into() } - pub fn copy_animation_timing_function_from(&mut self, other: &Self) { - unsafe { self.gecko.mAnimations.ensure_len(other.gecko.mAnimations.len()) }; - self.gecko.mAnimationTimingFunctionCount = other.gecko.mAnimationTimingFunctionCount; - for (index, animation) in self.gecko.mAnimations.iter_mut().enumerate() { - animation.mTimingFunction = other.gecko.mAnimations[index].mTimingFunction; - } - } <% scroll_snap_type_keyword = Keyword("scroll-snap-type", "none mandatory proximity") %>