diff options
Diffstat (limited to 'components/script/dom/animationevent.rs')
-rw-r--r-- | components/script/dom/animationevent.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/animationevent.rs b/components/script/dom/animationevent.rs index 13e0a1c1681..408b252bb45 100644 --- a/components/script/dom/animationevent.rs +++ b/components/script/dom/animationevent.rs @@ -61,9 +61,11 @@ impl AnimationEvent { } ev } +} - #[allow(non_snake_case)] - pub fn Constructor( +impl AnimationEventMethods for AnimationEvent { + // https://drafts.csswg.org/css-animations/#dom-animationevent-animationevent + fn Constructor( window: &Window, proto: Option<HandleObject>, can_gc: CanGc, @@ -72,9 +74,7 @@ impl AnimationEvent { ) -> DomRoot<AnimationEvent> { AnimationEvent::new_with_proto(window, proto, Atom::from(type_), init, can_gc) } -} -impl AnimationEventMethods for AnimationEvent { // https://drafts.csswg.org/css-animations/#interface-animationevent-attributes fn AnimationName(&self) -> DOMString { DOMString::from(&*self.animation_name) |