Update remaining DOM events to stop using legacy [ConstructorTemplate=Event]
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Oct 2016 16:23:00 +0000 (16:23 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Oct 2016 16:23:00 +0000 (16:23 +0000)
commita54a4e65b779435bfe2d3e3180cbd839e6582e0c
tree8ef63af68633dfb798139aed560f095fa1747188
parent255a9d664ffa08505842bfde8e5e511338151b86
Update remaining DOM events to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163319

Reviewed by Darin Adler.

Source/WebCore:

Update remaining DOM events to stop using legacy [ConstructorTemplate=Event]
and use regular constructors instead.

No new tests, updated existing tests.

* dom/AutocompleteErrorEvent.h:
* dom/AutocompleteErrorEvent.idl:
* dom/BeforeLoadEvent.h:
* dom/BeforeLoadEvent.idl:
* dom/CompositionEvent.cpp:
(WebCore::CompositionEvent::CompositionEvent):
* dom/CompositionEvent.h:
* dom/CompositionEvent.idl:
* dom/ErrorEvent.cpp:
(WebCore::ErrorEvent::ErrorEvent):
* dom/ErrorEvent.h:
* dom/ErrorEvent.idl:
* dom/FocusEvent.cpp:
(WebCore::FocusEvent::FocusEvent):
* dom/FocusEvent.h:
* dom/FocusEvent.idl:
* dom/HashChangeEvent.h:
* dom/HashChangeEvent.idl:
* dom/OverflowEvent.cpp:
(WebCore::OverflowEvent::OverflowEvent):
* dom/OverflowEvent.h:
* dom/OverflowEvent.idl:
* dom/PageTransitionEvent.cpp:
(WebCore::PageTransitionEvent::PageTransitionEvent):
* dom/PageTransitionEvent.h:
* dom/PageTransitionEvent.idl:
* dom/PopStateEvent.cpp:
(WebCore::PopStateEvent::PopStateEvent):
(WebCore::PopStateEvent::create):
* dom/PopStateEvent.h:
* dom/PopStateEvent.idl:
* dom/SecurityPolicyViolationEvent.h:
* dom/SecurityPolicyViolationEvent.idl:
* dom/TouchEvent.cpp:
(WebCore::TouchEvent::TouchEvent):
* dom/TouchEvent.h:
* dom/TouchEvent.idl:
* dom/TransitionEvent.cpp:
(WebCore::TransitionEvent::TransitionEvent):
* dom/TransitionEvent.h:
* dom/TransitionEvent.idl:
* dom/WebKitAnimationEvent.cpp:
(WebCore::WebKitAnimationEvent::WebKitAnimationEvent):
* dom/WebKitAnimationEvent.h:
* dom/WebKitAnimationEvent.idl:
* dom/WebKitTransitionEvent.cpp:
(WebCore::WebKitTransitionEvent::WebKitTransitionEvent):
* dom/WebKitTransitionEvent.h:
* dom/WebKitTransitionEvent.idl:

LayoutTests:

Rebaseline several existing tests to reflect minor behavior changes:
- We now properly use the default member value when an explicit undefined
  is passed.
- We throw more exceptions when bad input is passed.
- Exception messages are sometimes slightly different.

* fast/events/constructors/before-load-event-constructor-expected.txt:
* fast/events/constructors/before-load-event-constructor.html:
* fast/events/constructors/composition-event-constructor-expected.txt:
* fast/events/constructors/composition-event-constructor.html:
* fast/events/constructors/error-event-constructor-expected.txt:
* fast/events/constructors/error-event-constructor.html:
* fast/events/constructors/focus-event-constructor-expected.txt:
* fast/events/constructors/focus-event-constructor.html:
* fast/events/constructors/hash-change-event-constructor-expected.txt:
* fast/events/constructors/hash-change-event-constructor.html:
* fast/events/constructors/pop-state-event-constructor-expected.txt:
* fast/events/constructors/pop-state-event-constructor.html:
* fast/events/constructors/transition-event-constructor-expected.txt:
* fast/events/constructors/transition-event-constructor.html:
* fast/events/constructors/webkit-animation-event-constructor-expected.txt:
* fast/events/constructors/webkit-animation-event-constructor.html:
* fast/events/constructors/webkit-transition-event-constructor-expected.txt:
* fast/events/constructors/webkit-transition-event-constructor.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
58 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/events/constructors/before-load-event-constructor-expected.txt
LayoutTests/fast/events/constructors/before-load-event-constructor.html
LayoutTests/fast/events/constructors/composition-event-constructor-expected.txt
LayoutTests/fast/events/constructors/composition-event-constructor.html
LayoutTests/fast/events/constructors/error-event-constructor-expected.txt
LayoutTests/fast/events/constructors/error-event-constructor.html
LayoutTests/fast/events/constructors/focus-event-constructor-expected.txt
LayoutTests/fast/events/constructors/focus-event-constructor.html
LayoutTests/fast/events/constructors/hash-change-event-constructor-expected.txt
LayoutTests/fast/events/constructors/hash-change-event-constructor.html
LayoutTests/fast/events/constructors/pop-state-event-constructor-expected.txt
LayoutTests/fast/events/constructors/pop-state-event-constructor.html
LayoutTests/fast/events/constructors/transition-event-constructor-expected.txt
LayoutTests/fast/events/constructors/transition-event-constructor.html
LayoutTests/fast/events/constructors/webkit-animation-event-constructor-expected.txt
LayoutTests/fast/events/constructors/webkit-animation-event-constructor.html
LayoutTests/fast/events/constructors/webkit-transition-event-constructor-expected.txt
LayoutTests/fast/events/constructors/webkit-transition-event-constructor.html
Source/WebCore/ChangeLog
Source/WebCore/dom/AutocompleteErrorEvent.h
Source/WebCore/dom/AutocompleteErrorEvent.idl
Source/WebCore/dom/BeforeLoadEvent.h
Source/WebCore/dom/BeforeLoadEvent.idl
Source/WebCore/dom/CompositionEvent.cpp
Source/WebCore/dom/CompositionEvent.h
Source/WebCore/dom/CompositionEvent.idl
Source/WebCore/dom/ErrorEvent.cpp
Source/WebCore/dom/ErrorEvent.h
Source/WebCore/dom/ErrorEvent.idl
Source/WebCore/dom/FocusEvent.cpp
Source/WebCore/dom/FocusEvent.h
Source/WebCore/dom/FocusEvent.idl
Source/WebCore/dom/HashChangeEvent.h
Source/WebCore/dom/HashChangeEvent.idl
Source/WebCore/dom/OverflowEvent.cpp
Source/WebCore/dom/OverflowEvent.h
Source/WebCore/dom/OverflowEvent.idl
Source/WebCore/dom/PageTransitionEvent.cpp
Source/WebCore/dom/PageTransitionEvent.h
Source/WebCore/dom/PageTransitionEvent.idl
Source/WebCore/dom/PopStateEvent.cpp
Source/WebCore/dom/PopStateEvent.h
Source/WebCore/dom/PopStateEvent.idl
Source/WebCore/dom/SecurityPolicyViolationEvent.h
Source/WebCore/dom/SecurityPolicyViolationEvent.idl
Source/WebCore/dom/TouchEvent.cpp
Source/WebCore/dom/TouchEvent.h
Source/WebCore/dom/TouchEvent.idl
Source/WebCore/dom/TransitionEvent.cpp
Source/WebCore/dom/TransitionEvent.h
Source/WebCore/dom/TransitionEvent.idl
Source/WebCore/dom/WebKitAnimationEvent.cpp
Source/WebCore/dom/WebKitAnimationEvent.h
Source/WebCore/dom/WebKitAnimationEvent.idl
Source/WebCore/dom/WebKitTransitionEvent.cpp
Source/WebCore/dom/WebKitTransitionEvent.h
Source/WebCore/dom/WebKitTransitionEvent.idl