WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2011-09-08 18:38:11 PDT
Created
attachment 106825
[details]
Patch
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
Committed
r94861
: <
http://trac.webkit.org/changeset/94861
>
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.
Top of Page
Format For Printing
XML
Clone This Bug