RESOLVED FIXED Bug 67825
Implement a WebKitAnimationEvent constructor for JSC
https://bugs.webkit.org/show_bug.cgi?id=67825
Summary Implement a WebKitAnimationEvent constructor for JSC
Kentaro Hara
Reported 2011-09-08 18:14:40 PDT
We have been working on implementing constructors of Events. WebKitAnimationEvent should have a constructor. There is no spec for the WebKitAnimationEvent constructor, since it is WebKit-specific. Based on the current IDL of initWebKitAnimationEvent(), the IDL of the WebKitAnimationEvent constructor should be as follows. [Constructor(DOMString type, optional WebKitAnimationEvent eventInitDict)] dictionary WebKitAnimationEventInit : EventInit { DOMString animationName; double elapsedTime; }
Attachments
Patch (21.48 KB, patch)
2011-09-08 18:38 PDT, Kentaro Hara
sam: review+
Kentaro Hara
Comment 1 2011-09-08 18:38:11 PDT
Sam Weinig
Comment 2 2011-09-08 18:49:24 PDT
The Constructor would be on the WebKitAnimationEvent, not the WebKitAnimationEventInit.
Sam Weinig
Comment 3 2011-09-08 18:50:33 PDT
Comment on attachment 106825 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=106825&action=review > Source/WebCore/ChangeLog:17 > + [Constructor(DOMString type, optional WebKitAnimationEventInit eventInitDict)] > + dictionary WebKitAnimationEventInit : EventInit { > + DOMString animationName; > + double elapsedTime; > + } This is not what the IDL would look like. The constructor would be on the Event itself, not the Init.
Kentaro Hara
Comment 4 2011-09-08 18:52:32 PDT
(In reply to comment #2) > The Constructor would be on the WebKitAnimationEvent, not the WebKitAnimationEventInit. Sorry. Correct IDL: [Constructor(DOMString type, optional WebKitAnimationEventInit eventInitDict)] dictionary WebKitAnimationEventInit : EventInit { DOMString animationName; double elapsedTime; }
Kentaro Hara
Comment 5 2011-09-08 18:58:45 PDT
(In reply to comment #3) > (From update of attachment 106825 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=106825&action=review > > > Source/WebCore/ChangeLog:17 > > + [Constructor(DOMString type, optional WebKitAnimationEventInit eventInitDict)] > > + dictionary WebKitAnimationEventInit : EventInit { > > + DOMString animationName; > > + double elapsedTime; > > + } > > This is not what the IDL would look like. The constructor would be on the Event itself, not the Init. Sorry for the confusion. I omitted the interface part since this patch does not change it.... [Constructor(DOMString type, optional WebKitAnimationEventInit eventInitDict)] interface WebKitAnimationEvent : Event { ...; } dictionary WebKitAnimationEventInit : EventInit { DOMString animationName; double elapsedTime; } I will correct Changelog as above. Thanks!
Roland Steiner
Comment 6 2011-09-09 10:26:50 PDT
Simon Fraser (smfr)
Comment 7 2011-09-09 10:29:28 PDT
Why were no animation people cc'd on this?
Sam Weinig
Comment 8 2011-09-09 10:40:11 PDT
It's not really animation related, just progressing through all the events, adding constructors.
Note You need to log in before you can comment on or make changes to this bug.