-
rolandsteiner@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=67825 Source/WebCore: Patch by Kentaro Hara <haraken@google.com> on 2011-09-08 Reviewed by Sam Weinig. There is no spec for the WebKitAnimationEvent constructor since it is WebKit-specific. However, based on the current IDL of initWebKitAnimationEvent(), the constructor IDL should be as follows. [Constructor(DOMString type, optional WebKitAnimationEventInit eventInitDict)] interface WebKitAnimationEvent : Event { ...; } dictionary WebKitAnimationEventInit : EventInit { DOMString animationName; double elapsedTime; } Test: fast/events/constructors/webkit-animation-event-constructor.html * bindings/generic/EventConstructors.h: Added a definition for the WebKitAnimationEvent constructor. * bindings/js/JSEventConstructors.cpp: Added #includes for WebKitAnimationEvent. * dom/WebKitAnimationEvent.cpp: (WebCore::WebKitAnimationEventInit::WebKitAnimationEventInit): (WebCore::WebKitAnimationEvent::WebKitAnimationEvent): * dom/WebKitAnimationEvent.h: Added a definition for WebKitAnimationEventInit. (WebCore::WebKitAnimationEvent::create): * dom/WebKitAnimationEvent.idl: Makes WebKitAnimationEvent constructible. LayoutTests: Checks the behavior of the WebKitAnimationEvent constructor. Patch by Kentaro Hara <haraken@google.com> on 2011-09-08 Reviewed by Sam Weinig. * fast/dom/constructed-objects-prototypes-expected.txt: * fast/events/constructors/webkit-animation-event-constructor-expected.txt: Added. * fast/events/constructors/webkit-animation-event-constructor.html: Added. * platform/chromium/test_expectations.txt: Skipped webkit-animation-event-constructor.html, since V8 does not yet have the WebKitAnimationEvent constructor. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
b03bb3c0