<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[196400] trunk/Source</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/196400">196400</a></dd>
<dt>Author</dt> <dd>jiewen_tan@apple.com</dd>
<dt>Date</dt> <dd>2016-02-10 16:03:11 -0800 (Wed, 10 Feb 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Rename *Event::create* which creates events for bindings to *Event::createForBindings* and cleanup corresponding paths
https://bugs.webkit.org/show_bug.cgi?id=153903
<rdar://problem/24518146>
Reviewed by Darin Adler.
Source/WebCore:
Rename Event::create(const AtomicString&, const EventInit&) to Event::createForBindings
(const AtomicString&, const EventInit&) and for all the subclasses as well in order to
support Event.isTrusted. Besides, some of the subclasses use the create method for bindings
to create events not for bindings and vice versa. Therefore, this patch also cleanup
corresponding paths to ensure no misuse of the create mehtod. The same for Event::create()
as it is combined with Event::initEvent to create an event for bindings for legacy content.
After this patch, all call sites of *Event::create* are supposed to use *Event::create
to create events for user agent and *Event::createForBindings for bindings.
No change in behavior.
* Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h:
(WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
(WebCore::WebKitPlaybackTargetAvailabilityEvent::createForBindings):
(WebCore::WebKitPlaybackTargetAvailabilityEventInit::WebKitPlaybackTargetAvailabilityEventInit): Deleted.
* Modules/encryptedmedia/MediaKeyMessageEvent.cpp:
(WebCore::MediaKeyMessageEvent::MediaKeyMessageEvent):
(WebCore::MediaKeyMessageEventInit::MediaKeyMessageEventInit): Deleted.
* Modules/encryptedmedia/MediaKeyMessageEvent.h:
(WebCore::MediaKeyMessageEvent::create):
(WebCore::MediaKeyMessageEvent::createForBindings):
* Modules/encryptedmedia/MediaKeyNeededEvent.cpp:
(WebCore::MediaKeyNeededEvent::MediaKeyNeededEvent):
(WebCore::MediaKeyNeededEventInit::MediaKeyNeededEventInit): Deleted.
* Modules/encryptedmedia/MediaKeyNeededEvent.h:
(WebCore::MediaKeyNeededEvent::create):
(WebCore::MediaKeyNeededEvent::createForBindings):
* Modules/encryptedmedia/MediaKeySession.cpp:
(WebCore::MediaKeySession::sendMessage):
* Modules/gamepad/GamepadEvent.h:
(WebCore::GamepadEvent::create):
(WebCore::GamepadEvent::createForBindings):
(WebCore::GamepadEventInit::GamepadEventInit): Deleted.
* Modules/indieui/UIRequestEvent.cpp:
(WebCore::UIRequestEvent::createForBindings):
(WebCore::UIRequestEvent::UIRequestEvent):
(WebCore::UIRequestEventInit::UIRequestEventInit): Deleted.
(WebCore::UIRequestEvent::create): Deleted.
* Modules/indieui/UIRequestEvent.h:
* Modules/mediastream/MediaStreamEvent.cpp:
(WebCore::MediaStreamEvent::createForBindings):
(WebCore::MediaStreamEventInit::MediaStreamEventInit): Deleted.
(WebCore::MediaStreamEvent::create): Deleted.
* Modules/mediastream/MediaStreamEvent.h:
* Modules/mediastream/MediaStreamTrackEvent.cpp:
(WebCore::MediaStreamTrackEvent::createForBindings):
(WebCore::MediaStreamTrackEventInit::MediaStreamTrackEventInit): Deleted.
(WebCore::MediaStreamTrackEvent::create): Deleted.
* Modules/mediastream/MediaStreamTrackEvent.h:
* Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
(WebCore::RTCDTMFToneChangeEvent::createForBindings):
(WebCore::RTCDTMFToneChangeEvent::create): Deleted.
* Modules/mediastream/RTCDTMFToneChangeEvent.h:
* Modules/mediastream/RTCDataChannelEvent.cpp:
(WebCore::RTCDataChannelEvent::createForBindings):
(WebCore::RTCDataChannelEvent::create): Deleted.
* Modules/mediastream/RTCDataChannelEvent.h:
* Modules/mediastream/RTCIceCandidateEvent.cpp:
(WebCore::RTCIceCandidateEvent::createForBindings):
(WebCore::RTCIceCandidateEvent::create): Deleted.
* Modules/mediastream/RTCIceCandidateEvent.h:
* Modules/mediastream/RTCTrackEvent.cpp:
(WebCore::RTCTrackEvent::createForBindings):
(WebCore::RTCTrackEventInit::RTCTrackEventInit): Deleted.
(WebCore::RTCTrackEvent::create): Deleted.
* Modules/mediastream/RTCTrackEvent.h:
* Modules/speech/SpeechSynthesisEvent.cpp:
(WebCore::SpeechSynthesisEvent::createForBindings):
(WebCore::SpeechSynthesisEvent::create):
(WebCore::SpeechSynthesisEvent::SpeechSynthesisEvent):
* Modules/speech/SpeechSynthesisEvent.h:
* Modules/webaudio/AudioProcessingEvent.cpp:
(WebCore::AudioProcessingEvent::create): Deleted.
* Modules/webaudio/AudioProcessingEvent.h:
(WebCore::AudioProcessingEvent::create):
(WebCore::AudioProcessingEvent::createForBindings):
* Modules/webaudio/OfflineAudioCompletionEvent.cpp:
(WebCore::OfflineAudioCompletionEvent::createForBindings):
(WebCore::OfflineAudioCompletionEvent::create): Deleted.
* Modules/webaudio/OfflineAudioCompletionEvent.h:
* Modules/websockets/CloseEvent.h:
(WebCore::CloseEvent::create):
(WebCore::CloseEvent::createForBindings):
(WebCore::CloseEvent::CloseEvent):
(WebCore::CloseEventInit::CloseEventInit): Deleted.
* bindings/objc/DOM.mm:
(-[DOMNode nextFocusNode]):
(-[DOMNode previousFocusNode]):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateConstructorDefinition):
* dom/AnimationEvent.cpp:
(WebCore::AnimationEventInit::AnimationEventInit): Deleted.
* dom/AnimationEvent.h:
* dom/BeforeLoadEvent.h:
(WebCore::BeforeLoadEventInit::BeforeLoadEventInit): Deleted.
* dom/ClipboardEvent.h:
* dom/CompositionEvent.cpp:
(WebCore::CompositionEventInit::CompositionEventInit): Deleted.
* dom/CompositionEvent.h:
* dom/CustomEvent.cpp:
(WebCore::CustomEventInit::CustomEventInit): Deleted.
* dom/CustomEvent.h:
* dom/DeviceMotionEvent.h:
* dom/DeviceOrientationEvent.h:
* dom/Document.cpp:
(WebCore::Document::createEvent):
* dom/Element.cpp:
(WebCore::Element::dispatchMouseEvent):
* dom/ErrorEvent.cpp:
(WebCore::ErrorEventInit::ErrorEventInit): Deleted.
* dom/ErrorEvent.h:
* dom/Event.cpp:
(WebCore::EventInit::EventInit): Deleted.
* dom/Event.h:
(WebCore::Event::createForBindings):
(WebCore::Event::create): Deleted.
* dom/FocusEvent.cpp:
(WebCore::FocusEventInit::FocusEventInit): Deleted.
* dom/FocusEvent.h:
* dom/HashChangeEvent.h:
(WebCore::HashChangeEventInit::HashChangeEventInit): Deleted.
* dom/KeyboardEvent.cpp:
(WebCore::KeyboardEvent::KeyboardEvent):
(WebCore::KeyboardEventInit::KeyboardEventInit): Deleted.
* dom/KeyboardEvent.h:
* dom/MessageEvent.cpp:
(WebCore::MessageEvent::MessageEvent):
(WebCore::MessageEventInit::MessageEventInit): Deleted.
* dom/MessageEvent.h:
* dom/MouseEvent.cpp:
(WebCore::MouseEvent::createForBindings):
(WebCore::MouseEvent::create):
(WebCore::MouseEvent::MouseEvent):
(WebCore::MouseEvent::cloneFor):
(WebCore::MouseEventInit::MouseEventInit): Deleted.
* dom/MouseEvent.h:
(WebCore::MouseEvent::createForBindings):
(WebCore::MouseEvent::create): Deleted.
* dom/MouseRelatedEvent.cpp:
(WebCore::MouseRelatedEvent::MouseRelatedEvent):
(WebCore::MouseRelatedEvent::init):
* dom/MouseRelatedEvent.h:
(WebCore::MouseRelatedEvent::screenX):
(WebCore::MouseRelatedEvent::screenY):
(WebCore::MouseRelatedEvent::screenLocation):
(WebCore::MouseRelatedEvent::clientX):
(WebCore::MouseRelatedEvent::clientY):
(WebCore::MouseRelatedEvent::movementX):
(WebCore::MouseRelatedEvent::movementY):
(WebCore::MouseRelatedEvent::clientLocation):
(WebCore::MouseRelatedEvent::isSimulated):
(WebCore::MouseRelatedEvent::absoluteLocation):
(WebCore::MouseRelatedEvent::setAbsoluteLocation):
* dom/MutationEvent.h:
* dom/OverflowEvent.cpp:
(WebCore::OverflowEvent::OverflowEvent):
(WebCore::OverflowEvent::initOverflowEvent):
(WebCore::OverflowEventInit::OverflowEventInit): Deleted.
* dom/OverflowEvent.h:
* dom/PageTransitionEvent.cpp:
(WebCore::PageTransitionEventInit::PageTransitionEventInit): Deleted.
* dom/PageTransitionEvent.h:
* dom/PopStateEvent.cpp:
(WebCore::PopStateEvent::createForBindings):
(WebCore::PopStateEventInit::PopStateEventInit): Deleted.
(WebCore::PopStateEvent::PopStateEvent): Deleted.
(WebCore::PopStateEvent::create): Deleted.
* dom/PopStateEvent.h:
* dom/ProgressEvent.cpp:
(WebCore::ProgressEventInit::ProgressEventInit): Deleted.
* dom/ProgressEvent.h:
(WebCore::ProgressEvent::createForBindings):
(WebCore::ProgressEvent::create): Deleted.
* dom/SecurityPolicyViolationEvent.h:
(WebCore::SecurityPolicyViolationEventInit::SecurityPolicyViolationEventInit): Deleted.
* dom/TextEvent.cpp:
(WebCore::TextEvent::createForBindings):
(WebCore::TextEvent::create): Deleted.
* dom/TextEvent.h:
* dom/TouchEvent.h:
* dom/TransitionEvent.cpp:
(WebCore::TransitionEventInit::TransitionEventInit): Deleted.
* dom/TransitionEvent.h:
* dom/UIEvent.cpp:
(WebCore::UIEventInit::UIEventInit): Deleted.
* dom/UIEvent.h:
(WebCore::UIEvent::createForBindings):
(WebCore::UIEvent::create): Deleted.
* dom/UIEventWithKeyState.h:
(WebCore::UIEventWithKeyState::ctrlKey):
(WebCore::UIEventWithKeyState::shiftKey):
(WebCore::UIEventWithKeyState::altKey):
(WebCore::UIEventWithKeyState::metaKey):
(WebCore::UIEventWithKeyState::UIEventWithKeyState):
* dom/WebKitAnimationEvent.cpp:
(WebCore::WebKitAnimationEventInit::WebKitAnimationEventInit): Deleted.
* dom/WebKitAnimationEvent.h:
* dom/WebKitTransitionEvent.cpp:
(WebCore::WebKitTransitionEventInit::WebKitTransitionEventInit): Deleted.
* dom/WebKitTransitionEvent.h:
* dom/WheelEvent.h:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::mediaPlayerKeyAdded):
(WebCore::HTMLMediaElement::mediaPlayerKeyError):
(WebCore::HTMLMediaElement::mediaPlayerKeyMessage):
(WebCore::HTMLMediaElement::mediaPlayerKeyNeeded):
* html/MediaKeyEvent.cpp:
(WebCore::MediaKeyEvent::MediaKeyEvent):
(WebCore::MediaKeyEventInit::MediaKeyEventInit): Deleted.
* html/MediaKeyEvent.h:
* html/canvas/WebGLContextEvent.cpp:
(WebCore::WebGLContextEventInit::WebGLContextEventInit): Deleted.
* html/canvas/WebGLContextEvent.h:
* html/track/TrackEvent.cpp:
(WebCore::TrackEvent::TrackEvent):
(WebCore::TrackEventInit::TrackEventInit): Deleted.
* html/track/TrackEvent.h:
* html/track/TrackListBase.cpp:
(TrackListBase::scheduleTrackEvent):
(TrackListBase::scheduleChangeEvent):
* page/EventSource.cpp:
(WebCore::EventSource::createMessageEvent):
* page/csp/ContentSecurityPolicy.cpp:
(WebCore::ContentSecurityPolicy::reportViolation):
(WebCore::gatherSecurityPolicyViolationEventData): Deleted.
* storage/StorageEvent.cpp:
(WebCore::StorageEvent::createForBindings):
(WebCore::StorageEventInit::StorageEventInit): Deleted.
(WebCore::StorageEvent::create): Deleted.
* storage/StorageEvent.h:
* svg/SVGZoomEvent.h:
(WebCore::SVGZoomEvent::createForBindings):
(WebCore::SVGZoomEvent::create): Deleted.
* xml/XMLHttpRequestProgressEvent.h:
(WebCore::XMLHttpRequestProgressEvent::createForBindings):
(WebCore::XMLHttpRequestProgressEvent::create): Deleted.
Source/WebKit2:
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::nextAssistableElement):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesairplayWebKitPlaybackTargetAvailabilityEventcpp">trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesairplayWebKitPlaybackTargetAvailabilityEventh">trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeyMessageEventcpp">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeyMessageEventh">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeyNeededEventcpp">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeyNeededEventh">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeySessioncpp">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesgamepadGamepadEventcpp">trunk/Source/WebCore/Modules/gamepad/GamepadEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesgamepadGamepadEventh">trunk/Source/WebCore/Modules/gamepad/GamepadEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindieuiUIRequestEventcpp">trunk/Source/WebCore/Modules/indieui/UIRequestEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindieuiUIRequestEventh">trunk/Source/WebCore/Modules/indieui/UIRequestEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamMediaStreamEventcpp">trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamMediaStreamEventh">trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamMediaStreamTrackEventcpp">trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamMediaStreamTrackEventh">trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCDTMFToneChangeEventcpp">trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCDTMFToneChangeEventh">trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCDataChannelEventcpp">trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCDataChannelEventh">trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCIceCandidateEventcpp">trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCIceCandidateEventh">trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCTrackEventcpp">trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCTrackEventh">trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesspeechSpeechSynthesisEventcpp">trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesspeechSpeechSynthesisEventh">trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioAudioProcessingEventcpp">trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioAudioProcessingEventh">trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioOfflineAudioCompletionEventcpp">trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioOfflineAudioCompletionEventh">trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsCloseEventh">trunk/Source/WebCore/Modules/websockets/CloseEvent.h</a></li>
<li><a href="#trunkSourceWebCorebindingsobjcDOMmm">trunk/Source/WebCore/bindings/objc/DOM.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCoredomAnimationEventcpp">trunk/Source/WebCore/dom/AnimationEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomAnimationEventh">trunk/Source/WebCore/dom/AnimationEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomBeforeLoadEventh">trunk/Source/WebCore/dom/BeforeLoadEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomClipboardEventcpp">trunk/Source/WebCore/dom/ClipboardEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomClipboardEventh">trunk/Source/WebCore/dom/ClipboardEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomCompositionEventcpp">trunk/Source/WebCore/dom/CompositionEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomCompositionEventh">trunk/Source/WebCore/dom/CompositionEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomCustomEventcpp">trunk/Source/WebCore/dom/CustomEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomCustomEventh">trunk/Source/WebCore/dom/CustomEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomDeviceMotionEventh">trunk/Source/WebCore/dom/DeviceMotionEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomDeviceOrientationEventh">trunk/Source/WebCore/dom/DeviceOrientationEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomDocumentcpp">trunk/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#trunkSourceWebCoredomElementcpp">trunk/Source/WebCore/dom/Element.cpp</a></li>
<li><a href="#trunkSourceWebCoredomErrorEventcpp">trunk/Source/WebCore/dom/ErrorEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomErrorEventh">trunk/Source/WebCore/dom/ErrorEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomEventcpp">trunk/Source/WebCore/dom/Event.cpp</a></li>
<li><a href="#trunkSourceWebCoredomEventh">trunk/Source/WebCore/dom/Event.h</a></li>
<li><a href="#trunkSourceWebCoredomFocusEventcpp">trunk/Source/WebCore/dom/FocusEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomFocusEventh">trunk/Source/WebCore/dom/FocusEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomHashChangeEventh">trunk/Source/WebCore/dom/HashChangeEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomKeyboardEventcpp">trunk/Source/WebCore/dom/KeyboardEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomKeyboardEventh">trunk/Source/WebCore/dom/KeyboardEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomMessageEventcpp">trunk/Source/WebCore/dom/MessageEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomMessageEventh">trunk/Source/WebCore/dom/MessageEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomMouseEventcpp">trunk/Source/WebCore/dom/MouseEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomMouseEventh">trunk/Source/WebCore/dom/MouseEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomMouseRelatedEventcpp">trunk/Source/WebCore/dom/MouseRelatedEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomMouseRelatedEventh">trunk/Source/WebCore/dom/MouseRelatedEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomMutationEventh">trunk/Source/WebCore/dom/MutationEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomOverflowEventcpp">trunk/Source/WebCore/dom/OverflowEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomOverflowEventh">trunk/Source/WebCore/dom/OverflowEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomPageTransitionEventcpp">trunk/Source/WebCore/dom/PageTransitionEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomPageTransitionEventh">trunk/Source/WebCore/dom/PageTransitionEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomPopStateEventcpp">trunk/Source/WebCore/dom/PopStateEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomPopStateEventh">trunk/Source/WebCore/dom/PopStateEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomProgressEventcpp">trunk/Source/WebCore/dom/ProgressEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomProgressEventh">trunk/Source/WebCore/dom/ProgressEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomSecurityPolicyViolationEventh">trunk/Source/WebCore/dom/SecurityPolicyViolationEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomTextEventcpp">trunk/Source/WebCore/dom/TextEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomTextEventh">trunk/Source/WebCore/dom/TextEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomTouchEventh">trunk/Source/WebCore/dom/TouchEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomTransitionEventcpp">trunk/Source/WebCore/dom/TransitionEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomTransitionEventh">trunk/Source/WebCore/dom/TransitionEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomUIEventcpp">trunk/Source/WebCore/dom/UIEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomUIEventh">trunk/Source/WebCore/dom/UIEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomUIEventWithKeyStateh">trunk/Source/WebCore/dom/UIEventWithKeyState.h</a></li>
<li><a href="#trunkSourceWebCoredomWebKitAnimationEventcpp">trunk/Source/WebCore/dom/WebKitAnimationEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomWebKitAnimationEventh">trunk/Source/WebCore/dom/WebKitAnimationEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomWebKitTransitionEventcpp">trunk/Source/WebCore/dom/WebKitTransitionEvent.cpp</a></li>
<li><a href="#trunkSourceWebCoredomWebKitTransitionEventh">trunk/Source/WebCore/dom/WebKitTransitionEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomWheelEventh">trunk/Source/WebCore/dom/WheelEvent.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlMediaKeyEventcpp">trunk/Source/WebCore/html/MediaKeyEvent.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlMediaKeyEventh">trunk/Source/WebCore/html/MediaKeyEvent.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLContextEventcpp">trunk/Source/WebCore/html/canvas/WebGLContextEvent.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLContextEventh">trunk/Source/WebCore/html/canvas/WebGLContextEvent.h</a></li>
<li><a href="#trunkSourceWebCorehtmltrackTrackEventcpp">trunk/Source/WebCore/html/track/TrackEvent.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmltrackTrackEventh">trunk/Source/WebCore/html/track/TrackEvent.h</a></li>
<li><a href="#trunkSourceWebCorehtmltrackTrackListBasecpp">trunk/Source/WebCore/html/track/TrackListBase.cpp</a></li>
<li><a href="#trunkSourceWebCorepageEventSourcecpp">trunk/Source/WebCore/page/EventSource.cpp</a></li>
<li><a href="#trunkSourceWebCorepagecspContentSecurityPolicycpp">trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp</a></li>
<li><a href="#trunkSourceWebCorestorageStorageEventcpp">trunk/Source/WebCore/storage/StorageEvent.cpp</a></li>
<li><a href="#trunkSourceWebCorestorageStorageEventh">trunk/Source/WebCore/storage/StorageEvent.h</a></li>
<li><a href="#trunkSourceWebCoresvgSVGZoomEventh">trunk/Source/WebCore/svg/SVGZoomEvent.h</a></li>
<li><a href="#trunkSourceWebCorexmlXMLHttpRequestProgressEventh">trunk/Source/WebCore/xml/XMLHttpRequestProgressEvent.h</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageiosWebPageIOSmm">trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/ChangeLog        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -1,3 +1,249 @@
</span><ins>+2016-02-10 Jiewen Tan <jiewen_tan@apple.com>
+
+ Rename *Event::create* which creates events for bindings to *Event::createForBindings* and cleanup corresponding paths
+ https://bugs.webkit.org/show_bug.cgi?id=153903
+ <rdar://problem/24518146>
+
+ Reviewed by Darin Adler.
+
+ Rename Event::create(const AtomicString&, const EventInit&) to Event::createForBindings
+ (const AtomicString&, const EventInit&) and for all the subclasses as well in order to
+ support Event.isTrusted. Besides, some of the subclasses use the create method for bindings
+ to create events not for bindings and vice versa. Therefore, this patch also cleanup
+ corresponding paths to ensure no misuse of the create mehtod. The same for Event::create()
+ as it is combined with Event::initEvent to create an event for bindings for legacy content.
+
+ After this patch, all call sites of *Event::create* are supposed to use *Event::create
+ to create events for user agent and *Event::createForBindings for bindings.
+
+ No change in behavior.
+
+ * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h:
+ (WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
+ (WebCore::WebKitPlaybackTargetAvailabilityEvent::createForBindings):
+ (WebCore::WebKitPlaybackTargetAvailabilityEventInit::WebKitPlaybackTargetAvailabilityEventInit): Deleted.
+ * Modules/encryptedmedia/MediaKeyMessageEvent.cpp:
+ (WebCore::MediaKeyMessageEvent::MediaKeyMessageEvent):
+ (WebCore::MediaKeyMessageEventInit::MediaKeyMessageEventInit): Deleted.
+ * Modules/encryptedmedia/MediaKeyMessageEvent.h:
+ (WebCore::MediaKeyMessageEvent::create):
+ (WebCore::MediaKeyMessageEvent::createForBindings):
+ * Modules/encryptedmedia/MediaKeyNeededEvent.cpp:
+ (WebCore::MediaKeyNeededEvent::MediaKeyNeededEvent):
+ (WebCore::MediaKeyNeededEventInit::MediaKeyNeededEventInit): Deleted.
+ * Modules/encryptedmedia/MediaKeyNeededEvent.h:
+ (WebCore::MediaKeyNeededEvent::create):
+ (WebCore::MediaKeyNeededEvent::createForBindings):
+ * Modules/encryptedmedia/MediaKeySession.cpp:
+ (WebCore::MediaKeySession::sendMessage):
+ * Modules/gamepad/GamepadEvent.h:
+ (WebCore::GamepadEvent::create):
+ (WebCore::GamepadEvent::createForBindings):
+ (WebCore::GamepadEventInit::GamepadEventInit): Deleted.
+ * Modules/indieui/UIRequestEvent.cpp:
+ (WebCore::UIRequestEvent::createForBindings):
+ (WebCore::UIRequestEvent::UIRequestEvent):
+ (WebCore::UIRequestEventInit::UIRequestEventInit): Deleted.
+ (WebCore::UIRequestEvent::create): Deleted.
+ * Modules/indieui/UIRequestEvent.h:
+ * Modules/mediastream/MediaStreamEvent.cpp:
+ (WebCore::MediaStreamEvent::createForBindings):
+ (WebCore::MediaStreamEventInit::MediaStreamEventInit): Deleted.
+ (WebCore::MediaStreamEvent::create): Deleted.
+ * Modules/mediastream/MediaStreamEvent.h:
+ * Modules/mediastream/MediaStreamTrackEvent.cpp:
+ (WebCore::MediaStreamTrackEvent::createForBindings):
+ (WebCore::MediaStreamTrackEventInit::MediaStreamTrackEventInit): Deleted.
+ (WebCore::MediaStreamTrackEvent::create): Deleted.
+ * Modules/mediastream/MediaStreamTrackEvent.h:
+ * Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
+ (WebCore::RTCDTMFToneChangeEvent::createForBindings):
+ (WebCore::RTCDTMFToneChangeEvent::create): Deleted.
+ * Modules/mediastream/RTCDTMFToneChangeEvent.h:
+ * Modules/mediastream/RTCDataChannelEvent.cpp:
+ (WebCore::RTCDataChannelEvent::createForBindings):
+ (WebCore::RTCDataChannelEvent::create): Deleted.
+ * Modules/mediastream/RTCDataChannelEvent.h:
+ * Modules/mediastream/RTCIceCandidateEvent.cpp:
+ (WebCore::RTCIceCandidateEvent::createForBindings):
+ (WebCore::RTCIceCandidateEvent::create): Deleted.
+ * Modules/mediastream/RTCIceCandidateEvent.h:
+ * Modules/mediastream/RTCTrackEvent.cpp:
+ (WebCore::RTCTrackEvent::createForBindings):
+ (WebCore::RTCTrackEventInit::RTCTrackEventInit): Deleted.
+ (WebCore::RTCTrackEvent::create): Deleted.
+ * Modules/mediastream/RTCTrackEvent.h:
+ * Modules/speech/SpeechSynthesisEvent.cpp:
+ (WebCore::SpeechSynthesisEvent::createForBindings):
+ (WebCore::SpeechSynthesisEvent::create):
+ (WebCore::SpeechSynthesisEvent::SpeechSynthesisEvent):
+ * Modules/speech/SpeechSynthesisEvent.h:
+ * Modules/webaudio/AudioProcessingEvent.cpp:
+ (WebCore::AudioProcessingEvent::create): Deleted.
+ * Modules/webaudio/AudioProcessingEvent.h:
+ (WebCore::AudioProcessingEvent::create):
+ (WebCore::AudioProcessingEvent::createForBindings):
+ * Modules/webaudio/OfflineAudioCompletionEvent.cpp:
+ (WebCore::OfflineAudioCompletionEvent::createForBindings):
+ (WebCore::OfflineAudioCompletionEvent::create): Deleted.
+ * Modules/webaudio/OfflineAudioCompletionEvent.h:
+ * Modules/websockets/CloseEvent.h:
+ (WebCore::CloseEvent::create):
+ (WebCore::CloseEvent::createForBindings):
+ (WebCore::CloseEvent::CloseEvent):
+ (WebCore::CloseEventInit::CloseEventInit): Deleted.
+ * bindings/objc/DOM.mm:
+ (-[DOMNode nextFocusNode]):
+ (-[DOMNode previousFocusNode]):
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateConstructorDefinition):
+ * dom/AnimationEvent.cpp:
+ (WebCore::AnimationEventInit::AnimationEventInit): Deleted.
+ * dom/AnimationEvent.h:
+ * dom/BeforeLoadEvent.h:
+ (WebCore::BeforeLoadEventInit::BeforeLoadEventInit): Deleted.
+ * dom/ClipboardEvent.h:
+ * dom/CompositionEvent.cpp:
+ (WebCore::CompositionEventInit::CompositionEventInit): Deleted.
+ * dom/CompositionEvent.h:
+ * dom/CustomEvent.cpp:
+ (WebCore::CustomEventInit::CustomEventInit): Deleted.
+ * dom/CustomEvent.h:
+ * dom/DeviceMotionEvent.h:
+ * dom/DeviceOrientationEvent.h:
+ * dom/Document.cpp:
+ (WebCore::Document::createEvent):
+ * dom/Element.cpp:
+ (WebCore::Element::dispatchMouseEvent):
+ * dom/ErrorEvent.cpp:
+ (WebCore::ErrorEventInit::ErrorEventInit): Deleted.
+ * dom/ErrorEvent.h:
+ * dom/Event.cpp:
+ (WebCore::EventInit::EventInit): Deleted.
+ * dom/Event.h:
+ (WebCore::Event::createForBindings):
+ (WebCore::Event::create): Deleted.
+ * dom/FocusEvent.cpp:
+ (WebCore::FocusEventInit::FocusEventInit): Deleted.
+ * dom/FocusEvent.h:
+ * dom/HashChangeEvent.h:
+ (WebCore::HashChangeEventInit::HashChangeEventInit): Deleted.
+ * dom/KeyboardEvent.cpp:
+ (WebCore::KeyboardEvent::KeyboardEvent):
+ (WebCore::KeyboardEventInit::KeyboardEventInit): Deleted.
+ * dom/KeyboardEvent.h:
+ * dom/MessageEvent.cpp:
+ (WebCore::MessageEvent::MessageEvent):
+ (WebCore::MessageEventInit::MessageEventInit): Deleted.
+ * dom/MessageEvent.h:
+ * dom/MouseEvent.cpp:
+ (WebCore::MouseEvent::createForBindings):
+ (WebCore::MouseEvent::create):
+ (WebCore::MouseEvent::MouseEvent):
+ (WebCore::MouseEvent::cloneFor):
+ (WebCore::MouseEventInit::MouseEventInit): Deleted.
+ * dom/MouseEvent.h:
+ (WebCore::MouseEvent::createForBindings):
+ (WebCore::MouseEvent::create): Deleted.
+ * dom/MouseRelatedEvent.cpp:
+ (WebCore::MouseRelatedEvent::MouseRelatedEvent):
+ (WebCore::MouseRelatedEvent::init):
+ * dom/MouseRelatedEvent.h:
+ (WebCore::MouseRelatedEvent::screenX):
+ (WebCore::MouseRelatedEvent::screenY):
+ (WebCore::MouseRelatedEvent::screenLocation):
+ (WebCore::MouseRelatedEvent::clientX):
+ (WebCore::MouseRelatedEvent::clientY):
+ (WebCore::MouseRelatedEvent::movementX):
+ (WebCore::MouseRelatedEvent::movementY):
+ (WebCore::MouseRelatedEvent::clientLocation):
+ (WebCore::MouseRelatedEvent::isSimulated):
+ (WebCore::MouseRelatedEvent::absoluteLocation):
+ (WebCore::MouseRelatedEvent::setAbsoluteLocation):
+ * dom/MutationEvent.h:
+ * dom/OverflowEvent.cpp:
+ (WebCore::OverflowEvent::OverflowEvent):
+ (WebCore::OverflowEvent::initOverflowEvent):
+ (WebCore::OverflowEventInit::OverflowEventInit): Deleted.
+ * dom/OverflowEvent.h:
+ * dom/PageTransitionEvent.cpp:
+ (WebCore::PageTransitionEventInit::PageTransitionEventInit): Deleted.
+ * dom/PageTransitionEvent.h:
+ * dom/PopStateEvent.cpp:
+ (WebCore::PopStateEvent::createForBindings):
+ (WebCore::PopStateEventInit::PopStateEventInit): Deleted.
+ (WebCore::PopStateEvent::PopStateEvent): Deleted.
+ (WebCore::PopStateEvent::create): Deleted.
+ * dom/PopStateEvent.h:
+ * dom/ProgressEvent.cpp:
+ (WebCore::ProgressEventInit::ProgressEventInit): Deleted.
+ * dom/ProgressEvent.h:
+ (WebCore::ProgressEvent::createForBindings):
+ (WebCore::ProgressEvent::create): Deleted.
+ * dom/SecurityPolicyViolationEvent.h:
+ (WebCore::SecurityPolicyViolationEventInit::SecurityPolicyViolationEventInit): Deleted.
+ * dom/TextEvent.cpp:
+ (WebCore::TextEvent::createForBindings):
+ (WebCore::TextEvent::create): Deleted.
+ * dom/TextEvent.h:
+ * dom/TouchEvent.h:
+ * dom/TransitionEvent.cpp:
+ (WebCore::TransitionEventInit::TransitionEventInit): Deleted.
+ * dom/TransitionEvent.h:
+ * dom/UIEvent.cpp:
+ (WebCore::UIEventInit::UIEventInit): Deleted.
+ * dom/UIEvent.h:
+ (WebCore::UIEvent::createForBindings):
+ (WebCore::UIEvent::create): Deleted.
+ * dom/UIEventWithKeyState.h:
+ (WebCore::UIEventWithKeyState::ctrlKey):
+ (WebCore::UIEventWithKeyState::shiftKey):
+ (WebCore::UIEventWithKeyState::altKey):
+ (WebCore::UIEventWithKeyState::metaKey):
+ (WebCore::UIEventWithKeyState::UIEventWithKeyState):
+ * dom/WebKitAnimationEvent.cpp:
+ (WebCore::WebKitAnimationEventInit::WebKitAnimationEventInit): Deleted.
+ * dom/WebKitAnimationEvent.h:
+ * dom/WebKitTransitionEvent.cpp:
+ (WebCore::WebKitTransitionEventInit::WebKitTransitionEventInit): Deleted.
+ * dom/WebKitTransitionEvent.h:
+ * dom/WheelEvent.h:
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::mediaPlayerKeyAdded):
+ (WebCore::HTMLMediaElement::mediaPlayerKeyError):
+ (WebCore::HTMLMediaElement::mediaPlayerKeyMessage):
+ (WebCore::HTMLMediaElement::mediaPlayerKeyNeeded):
+ * html/MediaKeyEvent.cpp:
+ (WebCore::MediaKeyEvent::MediaKeyEvent):
+ (WebCore::MediaKeyEventInit::MediaKeyEventInit): Deleted.
+ * html/MediaKeyEvent.h:
+ * html/canvas/WebGLContextEvent.cpp:
+ (WebCore::WebGLContextEventInit::WebGLContextEventInit): Deleted.
+ * html/canvas/WebGLContextEvent.h:
+ * html/track/TrackEvent.cpp:
+ (WebCore::TrackEvent::TrackEvent):
+ (WebCore::TrackEventInit::TrackEventInit): Deleted.
+ * html/track/TrackEvent.h:
+ * html/track/TrackListBase.cpp:
+ (TrackListBase::scheduleTrackEvent):
+ (TrackListBase::scheduleChangeEvent):
+ * page/EventSource.cpp:
+ (WebCore::EventSource::createMessageEvent):
+ * page/csp/ContentSecurityPolicy.cpp:
+ (WebCore::ContentSecurityPolicy::reportViolation):
+ (WebCore::gatherSecurityPolicyViolationEventData): Deleted.
+ * storage/StorageEvent.cpp:
+ (WebCore::StorageEvent::createForBindings):
+ (WebCore::StorageEventInit::StorageEventInit): Deleted.
+ (WebCore::StorageEvent::create): Deleted.
+ * storage/StorageEvent.h:
+ * svg/SVGZoomEvent.h:
+ (WebCore::SVGZoomEvent::createForBindings):
+ (WebCore::SVGZoomEvent::create): Deleted.
+ * xml/XMLHttpRequestProgressEvent.h:
+ (WebCore::XMLHttpRequestProgressEvent::createForBindings):
+ (WebCore::XMLHttpRequestProgressEvent::create): Deleted.
+
</ins><span class="cx"> 2016-02-10 Ryan Haddad <ryanhaddad@apple.com>
</span><span class="cx">
</span><span class="cx"> Rebaselining bindings tests
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesairplayWebKitPlaybackTargetAvailabilityEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -40,10 +40,6 @@
</span><span class="cx"> return available ? availableString : notAvailableString;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-WebKitPlaybackTargetAvailabilityEvent::WebKitPlaybackTargetAvailabilityEvent()
-{
-}
-
</del><span class="cx"> WebKitPlaybackTargetAvailabilityEvent::WebKitPlaybackTargetAvailabilityEvent(const AtomicString& eventType, bool available)
</span><span class="cx"> : Event(eventType, false, false)
</span><span class="cx"> , m_availability(stringForPlaybackTargetAvailability(available))
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesairplayWebKitPlaybackTargetAvailabilityEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,10 +33,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct WebKitPlaybackTargetAvailabilityEventInit : public EventInit {
</span><del>- WebKitPlaybackTargetAvailabilityEventInit()
- {
- };
-
</del><span class="cx"> String availability;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -44,17 +40,12 @@
</span><span class="cx"> public:
</span><span class="cx"> ~WebKitPlaybackTargetAvailabilityEvent() { }
</span><span class="cx">
</span><del>- static Ref<WebKitPlaybackTargetAvailabilityEvent> create()
- {
- return adoptRef(*new WebKitPlaybackTargetAvailabilityEvent);
- }
-
</del><span class="cx"> static Ref<WebKitPlaybackTargetAvailabilityEvent> create(const AtomicString& eventType, bool available)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new WebKitPlaybackTargetAvailabilityEvent(eventType, available));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<WebKitPlaybackTargetAvailabilityEvent> create(const AtomicString& eventType, const WebKitPlaybackTargetAvailabilityEventInit& initializer)
</del><ins>+ static Ref<WebKitPlaybackTargetAvailabilityEvent> createForBindings(const AtomicString& eventType, const WebKitPlaybackTargetAvailabilityEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new WebKitPlaybackTargetAvailabilityEvent(eventType, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -64,7 +55,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override { return WebKitPlaybackTargetAvailabilityEventInterfaceType; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- WebKitPlaybackTargetAvailabilityEvent();
</del><span class="cx"> explicit WebKitPlaybackTargetAvailabilityEvent(const AtomicString& eventType, bool available);
</span><span class="cx"> WebKitPlaybackTargetAvailabilityEvent(const AtomicString& eventType, const WebKitPlaybackTargetAvailabilityEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeyMessageEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,13 +34,13 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-MediaKeyMessageEventInit::MediaKeyMessageEventInit()
</del><ins>+MediaKeyMessageEvent::MediaKeyMessageEvent(const AtomicString& type, Uint8Array* message, const String& destinationURL)
+ : Event(type, false, false)
+ , m_message(message)
+ , m_destinationURL(destinationURL)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-MediaKeyMessageEvent::MediaKeyMessageEvent()
-{
-}
</del><span class="cx">
</span><span class="cx"> MediaKeyMessageEvent::MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeyMessageEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -35,8 +35,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct MediaKeyMessageEventInit : public EventInit {
</span><del>- MediaKeyMessageEventInit();
-
</del><span class="cx"> RefPtr<Uint8Array> message;
</span><span class="cx"> String destinationURL;
</span><span class="cx"> };
</span><span class="lines">@@ -45,12 +43,12 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~MediaKeyMessageEvent();
</span><span class="cx">
</span><del>- static Ref<MediaKeyMessageEvent> create()
</del><ins>+ static Ref<MediaKeyMessageEvent> create(const AtomicString& type, Uint8Array* message, const String& destinationURL)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new MediaKeyMessageEvent);
</del><ins>+ return adoptRef(*new MediaKeyMessageEvent(type, message, destinationURL));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<MediaKeyMessageEvent> create(const AtomicString& type, const MediaKeyMessageEventInit& initializer)
</del><ins>+ static Ref<MediaKeyMessageEvent> createForBindings(const AtomicString& type, const MediaKeyMessageEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MediaKeyMessageEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -61,7 +59,7 @@
</span><span class="cx"> String destinationURL() const { return m_destinationURL; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- MediaKeyMessageEvent();
</del><ins>+ MediaKeyMessageEvent(const AtomicString& type, Uint8Array* message, const String& destinationURL);
</ins><span class="cx"> MediaKeyMessageEvent(const AtomicString& type, const MediaKeyMessageEventInit& initializer);
</span><span class="cx">
</span><span class="cx"> RefPtr<Uint8Array> m_message;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeyNeededEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,14 +34,12 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-MediaKeyNeededEventInit::MediaKeyNeededEventInit()
</del><ins>+MediaKeyNeededEvent::MediaKeyNeededEvent(const AtomicString& type, Uint8Array* initData)
+ : Event(type, false, false)
+ , m_initData(initData)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-MediaKeyNeededEvent::MediaKeyNeededEvent()
-{
-}
-
</del><span class="cx"> MediaKeyNeededEvent::MediaKeyNeededEvent(const AtomicString& type, const MediaKeyNeededEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_initData(initializer.initData)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeyNeededEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,8 +34,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct MediaKeyNeededEventInit : public EventInit {
</span><del>- MediaKeyNeededEventInit();
-
</del><span class="cx"> RefPtr<Uint8Array> initData;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -43,12 +41,12 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~MediaKeyNeededEvent();
</span><span class="cx">
</span><del>- static Ref<MediaKeyNeededEvent> create()
</del><ins>+ static Ref<MediaKeyNeededEvent> create(const AtomicString& type, Uint8Array* initData)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new MediaKeyNeededEvent);
</del><ins>+ return adoptRef(*new MediaKeyNeededEvent(type, initData));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<MediaKeyNeededEvent> create(const AtomicString& type, const MediaKeyNeededEventInit& initializer)
</del><ins>+ static Ref<MediaKeyNeededEvent> createForBindings(const AtomicString& type, const MediaKeyNeededEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MediaKeyNeededEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -58,7 +56,7 @@
</span><span class="cx"> Uint8Array* initData() const { return m_initData.get(); }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- MediaKeyNeededEvent();
</del><ins>+ MediaKeyNeededEvent(const AtomicString& type, Uint8Array* initData);
</ins><span class="cx"> MediaKeyNeededEvent(const AtomicString& type, const MediaKeyNeededEventInit& initializer);
</span><span class="cx">
</span><span class="cx"> RefPtr<Uint8Array> m_initData;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeySessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -209,12 +209,7 @@
</span><span class="cx">
</span><span class="cx"> void MediaKeySession::sendMessage(Uint8Array* message, String destinationURL)
</span><span class="cx"> {
</span><del>- MediaKeyMessageEventInit init;
- init.bubbles = false;
- init.cancelable = false;
- init.message = message;
- init.destinationURL = destinationURL;
- RefPtr<MediaKeyMessageEvent> event = MediaKeyMessageEvent::create(eventNames().webkitkeymessageEvent, init);
</del><ins>+ RefPtr<MediaKeyMessageEvent> event = MediaKeyMessageEvent::create(eventNames().webkitkeymessageEvent, message, destinationURL);
</ins><span class="cx"> event->setTarget(this);
</span><span class="cx"> m_asyncEventQueue.enqueueEvent(event.release());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgamepadGamepadEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/gamepad/GamepadEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/gamepad/GamepadEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/gamepad/GamepadEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -29,10 +29,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-GamepadEvent::GamepadEvent()
-{
-}
-
</del><span class="cx"> GamepadEvent::GamepadEvent(const AtomicString& eventType, Gamepad& gamepad)
</span><span class="cx"> : Event(eventType, false, false)
</span><span class="cx"> , m_gamepad(&gamepad)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgamepadGamepadEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/gamepad/GamepadEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/gamepad/GamepadEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/gamepad/GamepadEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,10 +34,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct GamepadEventInit : public EventInit {
</span><del>- GamepadEventInit()
- {
- }
-
</del><span class="cx"> RefPtr<Gamepad> gamepad;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -45,17 +41,12 @@
</span><span class="cx"> public:
</span><span class="cx"> ~GamepadEvent() { }
</span><span class="cx">
</span><del>- static Ref<GamepadEvent> create()
- {
- return adoptRef(*new GamepadEvent);
- }
-
</del><span class="cx"> static Ref<GamepadEvent> create(const AtomicString& eventType, Gamepad& gamepad)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new GamepadEvent(eventType, gamepad));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<GamepadEvent> create(const AtomicString& eventType, const GamepadEventInit& initializer)
</del><ins>+ static Ref<GamepadEvent> createForBindings(const AtomicString& eventType, const GamepadEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new GamepadEvent(eventType, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -65,7 +56,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override { return GamepadEventInterfaceType; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- GamepadEvent();
</del><span class="cx"> explicit GamepadEvent(const AtomicString& eventType, Gamepad&);
</span><span class="cx"> GamepadEvent(const AtomicString& eventType, const GamepadEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindieuiUIRequestEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indieui/UIRequestEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indieui/UIRequestEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/indieui/UIRequestEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,19 +30,8 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-UIRequestEventInit::UIRequestEventInit()
- : UIEventInit(true, true)
- , receiver(nullptr)
</del><ins>+Ref<UIRequestEvent> UIRequestEvent::createForBindings(const AtomicString& type, const UIRequestEventInit& initializer)
</ins><span class="cx"> {
</span><del>-}
-
-Ref<UIRequestEvent> UIRequestEvent::create()
-{
- return adoptRef(*new UIRequestEvent);
-}
-
-Ref<UIRequestEvent> UIRequestEvent::create(const AtomicString& type, const UIRequestEventInit& initializer)
-{
</del><span class="cx"> return adoptRef(*new UIRequestEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -52,7 +41,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> UIRequestEvent::UIRequestEvent(const AtomicString& type, const UIRequestEventInit& initializer)
</span><del>- : UIEvent(type, initializer.bubbles, initializer.cancelable, initializer.view.get(), initializer.detail)
</del><ins>+ : UIEvent(type, initializer)
</ins><span class="cx"> , m_receiver(initializer.receiver)
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="lines">@@ -63,11 +52,6 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-UIRequestEvent::UIRequestEvent()
- : m_receiver(nullptr)
-{
-}
-
</del><span class="cx"> UIRequestEvent::~UIRequestEvent()
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindieuiUIRequestEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indieui/UIRequestEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indieui/UIRequestEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/indieui/UIRequestEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,18 +34,14 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct UIRequestEventInit : public UIEventInit {
</span><del>- UIRequestEventInit();
-
</del><span class="cx"> RefPtr<EventTarget> receiver;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class UIRequestEvent : public UIEvent {
</span><span class="cx"> public:
</span><del>- static Ref<UIRequestEvent> create();
</del><span class="cx"> static Ref<UIRequestEvent> create(const AtomicString& type, bool bubbles, bool cancelable, AbstractView*, int detail, PassRefPtr<EventTarget> receiver);
</span><ins>+ static Ref<UIRequestEvent> createForBindings(const AtomicString& eventType, const UIRequestEventInit&);
</ins><span class="cx">
</span><del>- static Ref<UIRequestEvent> create(const AtomicString& eventType, const UIRequestEventInit&);
-
</del><span class="cx"> virtual ~UIRequestEvent();
</span><span class="cx">
</span><span class="cx"> EventTarget* receiver() const { return m_receiver.get(); }
</span><span class="lines">@@ -55,8 +51,6 @@
</span><span class="cx">
</span><span class="cx"> UIRequestEvent(const AtomicString& type, const UIRequestEventInit&);
</span><span class="cx">
</span><del>- UIRequestEvent();
-
</del><span class="cx"> EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaStreamEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,30 +32,16 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-MediaStreamEventInit::MediaStreamEventInit()
- : stream(nullptr)
-{
-}
-
-Ref<MediaStreamEvent> MediaStreamEvent::create()
-{
- return adoptRef(*new MediaStreamEvent);
-}
-
</del><span class="cx"> Ref<MediaStreamEvent> MediaStreamEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream> stream)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MediaStreamEvent(type, canBubble, cancelable, stream));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<MediaStreamEvent> MediaStreamEvent::create(const AtomicString& type, const MediaStreamEventInit& initializer)
</del><ins>+Ref<MediaStreamEvent> MediaStreamEvent::createForBindings(const AtomicString& type, const MediaStreamEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MediaStreamEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-MediaStreamEvent::MediaStreamEvent()
-{
-}
-
</del><span class="cx"> MediaStreamEvent::MediaStreamEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream> stream)
</span><span class="cx"> : Event(type, canBubble, cancelable)
</span><span class="cx"> , m_stream(stream)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaStreamEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,8 +34,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct MediaStreamEventInit : public EventInit {
</span><del>- MediaStreamEventInit();
-
</del><span class="cx"> RefPtr<MediaStream> stream;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -43,16 +41,14 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~MediaStreamEvent();
</span><span class="cx">
</span><del>- static Ref<MediaStreamEvent> create();
</del><span class="cx"> static Ref<MediaStreamEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream>);
</span><del>- static Ref<MediaStreamEvent> create(const AtomicString& type, const MediaStreamEventInit& initializer);
</del><ins>+ static Ref<MediaStreamEvent> createForBindings(const AtomicString& type, const MediaStreamEventInit& initializer);
</ins><span class="cx">
</span><span class="cx"> MediaStream* stream() const;
</span><span class="cx">
</span><span class="cx"> virtual EventInterface eventInterface() const;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- MediaStreamEvent();
</del><span class="cx"> MediaStreamEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream>);
</span><span class="cx"> MediaStreamEvent(const AtomicString& type, const MediaStreamEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaStreamTrackEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,30 +32,16 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-MediaStreamTrackEventInit::MediaStreamTrackEventInit()
- : track(nullptr)
-{
-}
-
-Ref<MediaStreamTrackEvent> MediaStreamTrackEvent::create()
-{
- return adoptRef(*new MediaStreamTrackEvent);
-}
-
</del><span class="cx"> Ref<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack> track)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MediaStreamTrackEvent(type, canBubble, cancelable, track));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicString& type, const MediaStreamTrackEventInit& initializer)
</del><ins>+Ref<MediaStreamTrackEvent> MediaStreamTrackEvent::createForBindings(const AtomicString& type, const MediaStreamTrackEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MediaStreamTrackEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-MediaStreamTrackEvent::MediaStreamTrackEvent()
-{
-}
-
</del><span class="cx"> MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack> track)
</span><span class="cx"> : Event(type, canBubble, cancelable)
</span><span class="cx"> , m_track(track)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaStreamTrackEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -35,8 +35,6 @@
</span><span class="cx"> class MediaStreamTrack;
</span><span class="cx">
</span><span class="cx"> struct MediaStreamTrackEventInit : public EventInit {
</span><del>- MediaStreamTrackEventInit();
-
</del><span class="cx"> RefPtr<MediaStreamTrack> track;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -44,9 +42,8 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~MediaStreamTrackEvent();
</span><span class="cx">
</span><del>- static Ref<MediaStreamTrackEvent> create();
</del><span class="cx"> static Ref<MediaStreamTrackEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack>);
</span><del>- static Ref<MediaStreamTrackEvent> create(const AtomicString& type, const MediaStreamTrackEventInit& initializer);
</del><ins>+ static Ref<MediaStreamTrackEvent> createForBindings(const AtomicString& type, const MediaStreamTrackEventInit& initializer);
</ins><span class="cx">
</span><span class="cx"> MediaStreamTrack* track() const;
</span><span class="cx">
</span><span class="lines">@@ -54,7 +51,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- MediaStreamTrackEvent();
</del><span class="cx"> MediaStreamTrackEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack>);
</span><span class="cx"> MediaStreamTrackEvent(const AtomicString& type, const MediaStreamTrackEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDTMFToneChangeEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,26 +32,17 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-Ref<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create()
-{
- return adoptRef(*new RTCDTMFToneChangeEvent);
-}
-
</del><span class="cx"> Ref<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(const String& tone)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new RTCDTMFToneChangeEvent(tone));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::create(const AtomicString& type, const RTCDTMFToneChangeEventInit& initializer)
</del><ins>+Ref<RTCDTMFToneChangeEvent> RTCDTMFToneChangeEvent::createForBindings(const AtomicString& type, const RTCDTMFToneChangeEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> ASSERT_UNUSED(type, type == eventNames().tonechangeEvent);
</span><span class="cx"> return adoptRef(*new RTCDTMFToneChangeEvent(initializer));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent()
-{
-}
-
</del><span class="cx"> RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent(const String& tone)
</span><span class="cx"> : Event(eventNames().tonechangeEvent, false, false)
</span><span class="cx"> , m_tone(tone)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDTMFToneChangeEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -41,16 +41,14 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~RTCDTMFToneChangeEvent();
</span><span class="cx">
</span><del>- static Ref<RTCDTMFToneChangeEvent> create();
</del><span class="cx"> static Ref<RTCDTMFToneChangeEvent> create(const String& tone);
</span><del>- static Ref<RTCDTMFToneChangeEvent> create(const AtomicString& type, const RTCDTMFToneChangeEventInit& initializer);
</del><ins>+ static Ref<RTCDTMFToneChangeEvent> createForBindings(const AtomicString& type, const RTCDTMFToneChangeEventInit& initializer);
</ins><span class="cx">
</span><span class="cx"> const String& tone() const;
</span><span class="cx">
</span><span class="cx"> virtual EventInterface eventInterface() const;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- RTCDTMFToneChangeEvent();
</del><span class="cx"> explicit RTCDTMFToneChangeEvent(const String& tone);
</span><span class="cx"> explicit RTCDTMFToneChangeEvent(const RTCDTMFToneChangeEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDataChannelEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,20 +32,11 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-Ref<RTCDataChannelEvent> RTCDataChannelEvent::create()
-{
- return adoptRef(*new RTCDataChannelEvent);
-}
-
</del><span class="cx"> Ref<RTCDataChannelEvent> RTCDataChannelEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel> channel)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new RTCDataChannelEvent(type, canBubble, cancelable, channel));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RTCDataChannelEvent::RTCDataChannelEvent()
-{
-}
-
</del><span class="cx"> RTCDataChannelEvent::RTCDataChannelEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel> channel)
</span><span class="cx"> : Event(type, canBubble, cancelable)
</span><span class="cx"> , m_channel(channel)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDataChannelEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -37,7 +37,6 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~RTCDataChannelEvent();
</span><span class="cx">
</span><del>- static Ref<RTCDataChannelEvent> create();
</del><span class="cx"> static Ref<RTCDataChannelEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel>);
</span><span class="cx">
</span><span class="cx"> RTCDataChannel* channel() const;
</span><span class="lines">@@ -45,7 +44,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- RTCDataChannelEvent();
</del><span class="cx"> RTCDataChannelEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<RTCDataChannel>);
</span><span class="cx">
</span><span class="cx"> RefPtr<RTCDataChannel> m_channel;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCIceCandidateEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,20 +33,11 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-Ref<RTCIceCandidateEvent> RTCIceCandidateEvent::create()
-{
- return adoptRef(*new RTCIceCandidateEvent);
-}
-
</del><span class="cx"> Ref<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&& candidate)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new RTCIceCandidateEvent(canBubble, cancelable, WTFMove(candidate)));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RTCIceCandidateEvent::RTCIceCandidateEvent()
-{
-}
-
</del><span class="cx"> RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&& candidate)
</span><span class="cx"> : Event(eventNames().icecandidateEvent, canBubble, cancelable)
</span><span class="cx"> , m_candidate(WTFMove(candidate))
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCIceCandidateEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -37,7 +37,6 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~RTCIceCandidateEvent();
</span><span class="cx">
</span><del>- static Ref<RTCIceCandidateEvent> create();
</del><span class="cx"> static Ref<RTCIceCandidateEvent> create(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&&);
</span><span class="cx">
</span><span class="cx"> RTCIceCandidate* candidate() const;
</span><span class="lines">@@ -45,7 +44,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- RTCIceCandidateEvent();
</del><span class="cx"> RTCIceCandidateEvent(bool canBubble, bool cancelable, RefPtr<RTCIceCandidate>&&);
</span><span class="cx">
</span><span class="cx"> RefPtr<RTCIceCandidate> m_candidate;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCTrackEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -39,31 +39,16 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-RTCTrackEventInit::RTCTrackEventInit()
- : receiver(nullptr)
- , track(nullptr)
-{
-}
-
-Ref<RTCTrackEvent> RTCTrackEvent::create()
-{
- return adoptRef(*new RTCTrackEvent);
-}
-
</del><span class="cx"> Ref<RTCTrackEvent> RTCTrackEvent::create(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<RTCRtpReceiver>&& receiver, RefPtr<MediaStreamTrack>&& track)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new RTCTrackEvent(type, canBubble, cancelable, WTFMove(receiver), WTFMove(track)));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<RTCTrackEvent> RTCTrackEvent::create(const AtomicString& type, const RTCTrackEventInit& initializer)
</del><ins>+Ref<RTCTrackEvent> RTCTrackEvent::createForBindings(const AtomicString& type, const RTCTrackEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new RTCTrackEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RTCTrackEvent::RTCTrackEvent()
-{
-}
-
</del><span class="cx"> RTCTrackEvent::RTCTrackEvent(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<RTCRtpReceiver>&& receiver, RefPtr<MediaStreamTrack>&& track)
</span><span class="cx"> : Event(type, canBubble, cancelable)
</span><span class="cx"> , m_receiver(receiver)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCTrackEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/mediastream/RTCTrackEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -42,17 +42,14 @@
</span><span class="cx"> class RTCRtpReceiver;
</span><span class="cx">
</span><span class="cx"> struct RTCTrackEventInit : public EventInit {
</span><del>- RTCTrackEventInit();
-
</del><span class="cx"> RefPtr<RTCRtpReceiver> receiver;
</span><span class="cx"> RefPtr<MediaStreamTrack> track;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class RTCTrackEvent : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<RTCTrackEvent> create();
</del><span class="cx"> static Ref<RTCTrackEvent> create(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<RTCRtpReceiver>&&, RefPtr<MediaStreamTrack>&&);
</span><del>- static Ref<RTCTrackEvent> create(const AtomicString& type, const RTCTrackEventInit&);
</del><ins>+ static Ref<RTCTrackEvent> createForBindings(const AtomicString& type, const RTCTrackEventInit&);
</ins><span class="cx">
</span><span class="cx"> RTCRtpReceiver* receiver() const { return m_receiver.get(); }
</span><span class="cx"> MediaStreamTrack* track() const { return m_track.get(); }
</span><span class="lines">@@ -60,7 +57,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const { return RTCTrackEventInterfaceType; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- RTCTrackEvent();
</del><span class="cx"> RTCTrackEvent(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<RTCRtpReceiver>&&, RefPtr<MediaStreamTrack>&&);
</span><span class="cx"> RTCTrackEvent(const AtomicString& type, const RTCTrackEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesspeechSpeechSynthesisEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -29,22 +29,13 @@
</span><span class="cx"> #if ENABLE(SPEECH_SYNTHESIS)
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><del>-
-Ref<SpeechSynthesisEvent> SpeechSynthesisEvent::create()
-{
- return adoptRef(*new SpeechSynthesisEvent());
-}
</del><span class="cx">
</span><del>-Ref<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString& type, unsigned long charIndex, float elapsedTime, const String& name)
</del><ins>+Ref<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new SpeechSynthesisEvent(type, charIndex, elapsedTime, name));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-SpeechSynthesisEvent::SpeechSynthesisEvent()
-{
-}
-
-SpeechSynthesisEvent::SpeechSynthesisEvent(const AtomicString& type, unsigned long charIndex, float elapsedTime, const String& name)
</del><ins>+SpeechSynthesisEvent::SpeechSynthesisEvent(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name)
</ins><span class="cx"> : Event(type, false, false)
</span><span class="cx"> , m_charIndex(charIndex)
</span><span class="cx"> , m_elapsedTime(elapsedTime)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesspeechSpeechSynthesisEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -35,8 +35,7 @@
</span><span class="cx">
</span><span class="cx"> class SpeechSynthesisEvent : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<SpeechSynthesisEvent> create();
- static Ref<SpeechSynthesisEvent> create(const AtomicString& type, unsigned long charIndex, float elapsedTime, const String& name);
</del><ins>+ static Ref<SpeechSynthesisEvent> create(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name);
</ins><span class="cx">
</span><span class="cx"> unsigned long charIndex() const { return m_charIndex; }
</span><span class="cx"> float elapsedTime() const { return m_elapsedTime; }
</span><span class="lines">@@ -45,8 +44,7 @@
</span><span class="cx"> virtual EventInterface eventInterface() const { return SpeechSynthesisEventInterfaceType; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- SpeechSynthesisEvent();
- SpeechSynthesisEvent(const AtomicString& type, unsigned long charIndex, float elapsedTime, const String& name);
</del><ins>+ SpeechSynthesisEvent(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name);
</ins><span class="cx">
</span><span class="cx"> unsigned long m_charIndex;
</span><span class="cx"> float m_elapsedTime;
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioAudioProcessingEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,16 +33,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-Ref<AudioProcessingEvent> AudioProcessingEvent::create()
-{
- return adoptRef(*new AudioProcessingEvent);
-}
-
-Ref<AudioProcessingEvent> AudioProcessingEvent::create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer, double playbackTime)
-{
- return adoptRef(*new AudioProcessingEvent(inputBuffer, outputBuffer, playbackTime));
-}
-
</del><span class="cx"> AudioProcessingEvent::AudioProcessingEvent()
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioAudioProcessingEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -36,8 +36,15 @@
</span><span class="cx">
</span><span class="cx"> class AudioProcessingEvent : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<AudioProcessingEvent> create();
- static Ref<AudioProcessingEvent> create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer, double playbackTime);
</del><ins>+ static Ref<AudioProcessingEvent> create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer, double playbackTime)
+ {
+ return adoptRef(*new AudioProcessingEvent(inputBuffer, outputBuffer, playbackTime));
+ }
+
+ static Ref<AudioProcessingEvent> createForBindings()
+ {
+ return adoptRef(*new AudioProcessingEvent);
+ }
</ins><span class="cx">
</span><span class="cx"> virtual ~AudioProcessingEvent();
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioOfflineAudioCompletionEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,21 +33,11 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-Ref<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent::create()
-{
- return adoptRef(*new OfflineAudioCompletionEvent);
-}
-
</del><span class="cx"> Ref<OfflineAudioCompletionEvent> OfflineAudioCompletionEvent::create(PassRefPtr<AudioBuffer> renderedBuffer)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new OfflineAudioCompletionEvent(renderedBuffer));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-OfflineAudioCompletionEvent::OfflineAudioCompletionEvent()
-{
-}
-
-
</del><span class="cx"> OfflineAudioCompletionEvent::OfflineAudioCompletionEvent(PassRefPtr<AudioBuffer> renderedBuffer)
</span><span class="cx"> : Event(eventNames().completeEvent, true, false)
</span><span class="cx"> , m_renderedBuffer(renderedBuffer)
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioOfflineAudioCompletionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -36,7 +36,6 @@
</span><span class="cx">
</span><span class="cx"> class OfflineAudioCompletionEvent : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<OfflineAudioCompletionEvent> create();
</del><span class="cx"> static Ref<OfflineAudioCompletionEvent> create(PassRefPtr<AudioBuffer> renderedBuffer);
</span><span class="cx">
</span><span class="cx"> virtual ~OfflineAudioCompletionEvent();
</span><span class="lines">@@ -46,7 +45,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- OfflineAudioCompletionEvent();
</del><span class="cx"> explicit OfflineAudioCompletionEvent(PassRefPtr<AudioBuffer> renderedBuffer);
</span><span class="cx">
</span><span class="cx"> RefPtr<AudioBuffer> m_renderedBuffer;
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsCloseEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/CloseEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/CloseEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/Modules/websockets/CloseEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -37,30 +37,19 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct CloseEventInit : public EventInit {
</span><del>- CloseEventInit()
- : wasClean(false)
- , code(0)
- {
- };
-
- bool wasClean;
- unsigned short code;
</del><ins>+ bool wasClean { false };
+ unsigned short code { 0 };
</ins><span class="cx"> String reason;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class CloseEvent : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<CloseEvent> create()
- {
- return adoptRef(*new CloseEvent());
- }
-
</del><span class="cx"> static Ref<CloseEvent> create(bool wasClean, unsigned short code, const String& reason)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new CloseEvent(wasClean, code, reason));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer)
</del><ins>+ static Ref<CloseEvent> createForBindings(const AtomicString& type, const CloseEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new CloseEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -73,13 +62,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override { return CloseEventInterfaceType; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- CloseEvent()
- : Event(eventNames().closeEvent, false, false)
- , m_wasClean(false)
- , m_code(0)
- {
- }
-
</del><span class="cx"> CloseEvent(bool wasClean, int code, const String& reason)
</span><span class="cx"> : Event(eventNames().closeEvent, false, false)
</span><span class="cx"> , m_wasClean(wasClean)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsobjcDOMmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/objc/DOM.mm (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/objc/DOM.mm        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/bindings/objc/DOM.mm        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -518,7 +518,9 @@
</span><span class="cx"> if (!page)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- RefPtr<KeyboardEvent> key = KeyboardEvent::create();
</del><ins>+ // FIXME: using KeyboardEvent::createForDummy() here should be deprecated,
+ // should use one that is not for bindings.
+ RefPtr<KeyboardEvent> key = KeyboardEvent::createForDummy();
</ins><span class="cx"> return kit(page->focusController().nextFocusableElement(FocusNavigationScope::focusNavigationScopeOf(&core(self)->document()), core(self), key.get()));
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -528,7 +530,9 @@
</span><span class="cx"> if (!page)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- RefPtr<KeyboardEvent> key = KeyboardEvent::create();
</del><ins>+ // FIXME: using KeyboardEvent::createForDummy() here should be deprecated,
+ // should use one that is not for bindings.
+ RefPtr<KeyboardEvent> key = KeyboardEvent::createForDummy();
</ins><span class="cx"> return kit(page->focusController().previousFocusableElement(FocusNavigationScope::focusNavigationScopeOf(&core(self)->document()), core(self), key.get()));
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -4766,7 +4766,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<${interfaceName}> event = ${interfaceName}::create(eventType, eventInit);
</del><ins>+ RefPtr<${interfaceName}> event = ${interfaceName}::createForBindings(eventType, eventInit);
</ins><span class="cx"> return JSValue::encode(toJS(state, jsConstructor->globalObject(), event.get()));
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomAnimationEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/AnimationEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/AnimationEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/AnimationEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,17 +30,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-AnimationEventInit::AnimationEventInit()
- : animationName()
- , elapsedTime(0)
-{
-}
-
-AnimationEvent::AnimationEvent()
- : m_elapsedTime(0)
-{
-}
-
</del><span class="cx"> AnimationEvent::AnimationEvent(const AtomicString& type, const AnimationEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_animationName(initializer.animationName)
</span></span></pre></div>
<a id="trunkSourceWebCoredomAnimationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/AnimationEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/AnimationEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/AnimationEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,23 +31,18 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct AnimationEventInit : public EventInit {
</span><del>- AnimationEventInit();
-
</del><span class="cx"> String animationName;
</span><del>- double elapsedTime;
</del><ins>+ double elapsedTime { 0 };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class AnimationEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<AnimationEvent> create()
- {
- return adoptRef(*new AnimationEvent);
- }
</del><span class="cx"> static Ref<AnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new AnimationEvent(type, animationName, elapsedTime));
</span><span class="cx"> }
</span><del>- static Ref<AnimationEvent> create(const AtomicString& type, const AnimationEventInit& initializer)
</del><ins>+
+ static Ref<AnimationEvent> createForBindings(const AtomicString& type, const AnimationEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new AnimationEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -60,7 +55,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- AnimationEvent();
</del><span class="cx"> AnimationEvent(const AtomicString& type, const String& animationName, double elapsedTime);
</span><span class="cx"> AnimationEvent(const AtomicString&, const AnimationEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomBeforeLoadEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/BeforeLoadEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/BeforeLoadEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/BeforeLoadEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,26 +33,17 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct BeforeLoadEventInit : public EventInit {
</span><del>- BeforeLoadEventInit()
- {
- }
-
</del><span class="cx"> String url;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class BeforeLoadEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<BeforeLoadEvent> create()
- {
- return adoptRef(*new BeforeLoadEvent);
- }
-
</del><span class="cx"> static Ref<BeforeLoadEvent> create(const String& url)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new BeforeLoadEvent(url));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<BeforeLoadEvent> create(const AtomicString& type, const BeforeLoadEventInit& initializer)
</del><ins>+ static Ref<BeforeLoadEvent> createForBindings(const AtomicString& type, const BeforeLoadEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new BeforeLoadEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -62,10 +53,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override { return BeforeLoadEventInterfaceType; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- BeforeLoadEvent()
- {
- }
-
</del><span class="cx"> explicit BeforeLoadEvent(const String& url)
</span><span class="cx"> : Event(eventNames().beforeloadEvent, false, true)
</span><span class="cx"> , m_url(url)
</span></span></pre></div>
<a id="trunkSourceWebCoredomClipboardEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ClipboardEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ClipboardEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/ClipboardEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -28,10 +28,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-ClipboardEvent::ClipboardEvent()
-{
-}
-
</del><span class="cx"> ClipboardEvent::ClipboardEvent(const AtomicString& eventType, bool canBubble, bool cancelable, DataTransfer* dataTransfer)
</span><span class="cx"> : Event(eventType, canBubble, cancelable), m_dataTransfer(dataTransfer)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoredomClipboardEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ClipboardEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ClipboardEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/ClipboardEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,10 +34,6 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~ClipboardEvent();
</span><span class="cx">
</span><del>- static Ref<ClipboardEvent> create()
- {
- return adoptRef(*new ClipboardEvent);
- }
</del><span class="cx"> static Ref<ClipboardEvent> create(const AtomicString& type, bool canBubbleArg, bool cancelableArg, DataTransfer* clipboardArg)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new ClipboardEvent(type, canBubbleArg, cancelableArg, clipboardArg));
</span><span class="lines">@@ -46,7 +42,6 @@
</span><span class="cx"> virtual DataTransfer* internalDataTransfer() const override { return m_dataTransfer.get(); }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- ClipboardEvent();
</del><span class="cx"> ClipboardEvent(const AtomicString& type, bool canBubbleArg, bool cancelableArg, DataTransfer*);
</span><span class="cx">
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span></span></pre></div>
<a id="trunkSourceWebCoredomCompositionEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/CompositionEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/CompositionEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/CompositionEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,10 +31,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-CompositionEventInit::CompositionEventInit()
-{
-}
-
</del><span class="cx"> CompositionEvent::CompositionEvent()
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomCompositionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/CompositionEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/CompositionEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/CompositionEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,24 +32,22 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct CompositionEventInit : UIEventInit {
</span><del>- CompositionEventInit();
-
</del><span class="cx"> String data;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class CompositionEvent final : public UIEvent {
</span><span class="cx"> public:
</span><del>- static Ref<CompositionEvent> create()
</del><ins>+ static Ref<CompositionEvent> create(const AtomicString& type, AbstractView* view, const String& data)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new CompositionEvent);
</del><ins>+ return adoptRef(*new CompositionEvent(type, view, data));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<CompositionEvent> create(const AtomicString& type, AbstractView* view, const String& data)
</del><ins>+ static Ref<CompositionEvent> createForBindings()
</ins><span class="cx"> {
</span><del>- return adoptRef(*new CompositionEvent(type, view, data));
</del><ins>+ return adoptRef(*new CompositionEvent);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<CompositionEvent> create(const AtomicString& type, const CompositionEventInit& initializer)
</del><ins>+ static Ref<CompositionEvent> createForBindings(const AtomicString& type, const CompositionEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new CompositionEvent(type, initializer));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomCustomEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/CustomEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/CustomEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/CustomEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,10 +31,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-CustomEventInit::CustomEventInit()
-{
-}
-
</del><span class="cx"> CustomEvent::CustomEvent()
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomCustomEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/CustomEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/CustomEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/CustomEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,8 +33,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct CustomEventInit : public EventInit {
</span><del>- CustomEventInit();
-
</del><span class="cx"> Deprecated::ScriptValue detail;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -42,12 +40,12 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~CustomEvent();
</span><span class="cx">
</span><del>- static Ref<CustomEvent> create()
</del><ins>+ static Ref<CustomEvent> createForBindings()
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new CustomEvent);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<CustomEvent> create(const AtomicString& type, const CustomEventInit& initializer)
</del><ins>+ static Ref<CustomEvent> createForBindings(const AtomicString& type, const CustomEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new CustomEvent(type, initializer));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomDeviceMotionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DeviceMotionEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DeviceMotionEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/DeviceMotionEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -35,15 +35,17 @@
</span><span class="cx"> class DeviceMotionEvent final : public Event {
</span><span class="cx"> public:
</span><span class="cx"> virtual ~DeviceMotionEvent();
</span><del>- static Ref<DeviceMotionEvent> create()
- {
- return adoptRef(*new DeviceMotionEvent);
- }
</del><ins>+
</ins><span class="cx"> static Ref<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new DeviceMotionEvent(eventType, deviceMotionData));
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ static Ref<DeviceMotionEvent> createForBindings()
+ {
+ return adoptRef(*new DeviceMotionEvent);
+ }
+
</ins><span class="cx"> void initDeviceMotionEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceMotionData*);
</span><span class="cx">
</span><span class="cx"> DeviceMotionData* deviceMotionData() const { return m_deviceMotionData.get(); }
</span></span></pre></div>
<a id="trunkSourceWebCoredomDeviceOrientationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DeviceOrientationEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DeviceOrientationEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/DeviceOrientationEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -35,15 +35,16 @@
</span><span class="cx"> class DeviceOrientationEvent final : public Event {
</span><span class="cx"> public:
</span><span class="cx"> virtual ~DeviceOrientationEvent();
</span><del>- static Ref<DeviceOrientationEvent> create()
- {
- return adoptRef(*new DeviceOrientationEvent);
- }
</del><span class="cx"> static Ref<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientationData* orientation)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new DeviceOrientationEvent(eventType, orientation));
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ static Ref<DeviceOrientationEvent> createForBindings()
+ {
+ return adoptRef(*new DeviceOrientationEvent);
+ }
+
</ins><span class="cx"> void initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceOrientationData*);
</span><span class="cx">
</span><span class="cx"> DeviceOrientationData* orientation() const { return m_orientation.get(); }
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/Document.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -4145,21 +4145,21 @@
</span><span class="cx"> // <https://dom.spec.whatwg.org/#dom-document-createevent>.
</span><span class="cx">
</span><span class="cx"> if (equalLettersIgnoringASCIICase(type, "customevent"))
</span><del>- return CustomEvent::create();
</del><ins>+ return CustomEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "event") || equalLettersIgnoringASCIICase(type, "events") || equalLettersIgnoringASCIICase(type, "htmlevents"))
</span><del>- return Event::create();
</del><ins>+ return Event::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "keyboardevent") || equalLettersIgnoringASCIICase(type, "keyboardevents"))
</span><del>- return KeyboardEvent::create();
</del><ins>+ return KeyboardEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "messageevent"))
</span><del>- return MessageEvent::create();
</del><ins>+ return MessageEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "mouseevent") || equalLettersIgnoringASCIICase(type, "mouseevents"))
</span><del>- return MouseEvent::create();
</del><ins>+ return MouseEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "uievent") || equalLettersIgnoringASCIICase(type, "uievents"))
</span><del>- return UIEvent::create();
</del><ins>+ return UIEvent::createForBindings();
</ins><span class="cx">
</span><span class="cx"> #if ENABLE(TOUCH_EVENTS)
</span><span class="cx"> if (equalLettersIgnoringASCIICase(type, "touchevent"))
</span><del>- return TouchEvent::create();
</del><ins>+ return TouchEvent::createForBindings();
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> // The following string comes from the SVG specifications
</span><span class="lines">@@ -4169,7 +4169,7 @@
</span><span class="cx"> // there is no practical value in this feature.
</span><span class="cx">
</span><span class="cx"> if (equalLettersIgnoringASCIICase(type, "svgzoomevents"))
</span><del>- return SVGZoomEvent::create();
</del><ins>+ return SVGZoomEvent::createForBindings();
</ins><span class="cx">
</span><span class="cx"> // The following strings are for event classes where WebKit supplies an init function.
</span><span class="cx"> // These strings are not part of the DOM specification and we would like to eliminate them.
</span><span class="lines">@@ -4179,25 +4179,25 @@
</span><span class="cx"> // both the string and the corresponding init function for that class.
</span><span class="cx">
</span><span class="cx"> if (equalLettersIgnoringASCIICase(type, "compositionevent"))
</span><del>- return CompositionEvent::create();
</del><ins>+ return CompositionEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "hashchangeevent"))
</span><del>- return HashChangeEvent::create();
</del><ins>+ return HashChangeEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "mutationevent") || equalLettersIgnoringASCIICase(type, "mutationevents"))
</span><del>- return MutationEvent::create();
</del><ins>+ return MutationEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "overflowevent"))
</span><del>- return OverflowEvent::create();
</del><ins>+ return OverflowEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "storageevent"))
</span><del>- return StorageEvent::create();
</del><ins>+ return StorageEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "textevent"))
</span><del>- return TextEvent::create();
</del><ins>+ return TextEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "wheelevent"))
</span><del>- return WheelEvent::create();
</del><ins>+ return WheelEvent::createForBindings();
</ins><span class="cx">
</span><span class="cx"> #if ENABLE(DEVICE_ORIENTATION)
</span><span class="cx"> if (equalLettersIgnoringASCIICase(type, "devicemotionevent"))
</span><del>- return DeviceMotionEvent::create();
</del><ins>+ return DeviceMotionEvent::createForBindings();
</ins><span class="cx"> if (equalLettersIgnoringASCIICase(type, "deviceorientationevent"))
</span><del>- return DeviceOrientationEvent::create();
</del><ins>+ return DeviceOrientationEvent::createForBindings();
</ins><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> ec = NOT_SUPPORTED_ERR;
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/Element.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -268,8 +268,7 @@
</span><span class="cx"> // Special case: If it's a double click event, we also send the dblclick event. This is not part
</span><span class="cx"> // of the DOM specs, but is used for compatibility with the ondblclick="" attribute. This is treated
</span><span class="cx"> // as a separate event in other DOM-compliant browsers like Firefox, and so we do the same.
</span><del>- Ref<MouseEvent> doubleClickEvent = MouseEvent::create();
- doubleClickEvent->initMouseEvent(eventNames().dblclickEvent,
</del><ins>+ Ref<MouseEvent> doubleClickEvent = MouseEvent::create(eventNames().dblclickEvent,
</ins><span class="cx"> mouseEvent->bubbles(), mouseEvent->cancelable(), mouseEvent->view(), mouseEvent->detail(),
</span><span class="cx"> mouseEvent->screenX(), mouseEvent->screenY(), mouseEvent->clientX(), mouseEvent->clientY(),
</span><span class="cx"> mouseEvent->ctrlKey(), mouseEvent->altKey(), mouseEvent->shiftKey(), mouseEvent->metaKey(),
</span></span></pre></div>
<a id="trunkSourceWebCoredomErrorEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ErrorEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ErrorEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/ErrorEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -35,18 +35,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-ErrorEventInit::ErrorEventInit()
- : message()
- , filename()
- , lineno(0)
- , colno(0)
-{
-}
-
-ErrorEvent::ErrorEvent()
-{
-}
-
</del><span class="cx"> ErrorEvent::ErrorEvent(const AtomicString& type, const ErrorEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_message(initializer.message)
</span></span></pre></div>
<a id="trunkSourceWebCoredomErrorEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ErrorEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ErrorEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/ErrorEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -37,28 +37,24 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct ErrorEventInit : public EventInit {
</span><del>- ErrorEventInit();
-
</del><span class="cx"> String message;
</span><span class="cx"> String filename;
</span><del>- unsigned lineno;
- unsigned colno;
</del><ins>+ unsigned lineno { 0 };
+ unsigned colno { 0 };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class ErrorEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<ErrorEvent> create()
- {
- return adoptRef(*new ErrorEvent);
- }
</del><span class="cx"> static Ref<ErrorEvent> create(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new ErrorEvent(message, fileName, lineNumber, columnNumber));
</span><span class="cx"> }
</span><del>- static Ref<ErrorEvent> create(const AtomicString& type, const ErrorEventInit& initializer)
</del><ins>+
+ static Ref<ErrorEvent> createForBindings(const AtomicString& type, const ErrorEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new ErrorEvent(type, initializer));
</span><span class="cx"> }
</span><ins>+
</ins><span class="cx"> virtual ~ErrorEvent();
</span><span class="cx">
</span><span class="cx"> const String& message() const { return m_message; }
</span><span class="lines">@@ -69,7 +65,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- ErrorEvent();
</del><span class="cx"> ErrorEvent(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber);
</span><span class="cx"> ErrorEvent(const AtomicString&, const ErrorEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Event.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Event.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/Event.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -29,18 +29,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-EventInit::EventInit()
- : bubbles(false)
- , cancelable(false)
-{
-}
-
-EventInit::EventInit(bool b, bool c)
- : bubbles(b)
- , cancelable(c)
-{
-}
-
</del><span class="cx"> Event::Event()
</span><span class="cx"> : m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Event.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Event.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/Event.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -40,11 +40,8 @@
</span><span class="cx"> class HTMLIFrameElement;
</span><span class="cx">
</span><span class="cx"> struct EventInit {
</span><del>- EventInit();
- EventInit(bool bubbles, bool cancelable);
-
- bool bubbles;
- bool cancelable;
</del><ins>+ bool bubbles { false };
+ bool cancelable { false };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> enum EventInterface {
</span><span class="lines">@@ -83,17 +80,18 @@
</span><span class="cx"> CHANGE = 32768
</span><span class="cx"> };
</span><span class="cx">
</span><del>- static Ref<Event> create()
- {
- return adoptRef(*new Event);
- }
</del><span class="cx"> static Ref<Event> create(const AtomicString& type, bool canBubble, bool cancelable)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new Event(type, canBubble, cancelable));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<Event> create(const AtomicString& type, const EventInit& initializer)
</del><ins>+ static Ref<Event> createForBindings()
</ins><span class="cx"> {
</span><ins>+ return adoptRef(*new Event);
+ }
+
+ static Ref<Event> createForBindings(const AtomicString& type, const EventInit& initializer)
+ {
</ins><span class="cx"> return adoptRef(*new Event(type, initializer));
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomFocusEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/FocusEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/FocusEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/FocusEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,10 +30,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-FocusEventInit::FocusEventInit()
-{
-}
-
</del><span class="cx"> EventInterface FocusEvent::eventInterface() const
</span><span class="cx"> {
</span><span class="cx"> return FocusEventInterfaceType;
</span><span class="lines">@@ -44,10 +40,6 @@
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-FocusEvent::FocusEvent()
-{
-}
-
</del><span class="cx"> FocusEvent::FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, int detail, RefPtr<EventTarget>&& relatedTarget)
</span><span class="cx"> : UIEvent(type, canBubble, cancelable, view, detail)
</span><span class="cx"> , m_relatedTarget(WTFMove(relatedTarget))
</span></span></pre></div>
<a id="trunkSourceWebCoredomFocusEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/FocusEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/FocusEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/FocusEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,24 +34,17 @@
</span><span class="cx"> class Node;
</span><span class="cx">
</span><span class="cx"> struct FocusEventInit : public UIEventInit {
</span><del>- FocusEventInit();
-
</del><span class="cx"> RefPtr<EventTarget> relatedTarget;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class FocusEvent final : public UIEvent {
</span><span class="cx"> public:
</span><del>- static Ref<FocusEvent> create()
- {
- return adoptRef(*new FocusEvent);
- }
-
</del><span class="cx"> static Ref<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, int detail, RefPtr<EventTarget>&& relatedTarget)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new FocusEvent(type, canBubble, cancelable, view, detail, WTFMove(relatedTarget)));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<FocusEvent> create(const AtomicString& type, const FocusEventInit& initializer)
</del><ins>+ static Ref<FocusEvent> createForBindings(const AtomicString& type, const FocusEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new FocusEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -62,7 +55,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- FocusEvent();
</del><span class="cx"> FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView*, int, RefPtr<EventTarget>&&);
</span><span class="cx"> FocusEvent(const AtomicString& type, const FocusEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomHashChangeEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/HashChangeEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/HashChangeEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/HashChangeEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -27,27 +27,23 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct HashChangeEventInit : public EventInit {
</span><del>- HashChangeEventInit()
- {
- };
-
</del><span class="cx"> String oldURL;
</span><span class="cx"> String newURL;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class HashChangeEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<HashChangeEvent> create()
</del><ins>+ static Ref<HashChangeEvent> create(const String& oldURL, const String& newURL)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new HashChangeEvent);
</del><ins>+ return adoptRef(*new HashChangeEvent(oldURL, newURL));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<HashChangeEvent> create(const String& oldURL, const String& newURL)
</del><ins>+ static Ref<HashChangeEvent> createForBindings()
</ins><span class="cx"> {
</span><del>- return adoptRef(*new HashChangeEvent(oldURL, newURL));
</del><ins>+ return adoptRef(*new HashChangeEvent);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<HashChangeEvent> create(const AtomicString& type, const HashChangeEventInit& initializer)
</del><ins>+ static Ref<HashChangeEvent> createForBindings(const AtomicString& type, const HashChangeEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new HashChangeEvent(type, initializer));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomKeyboardEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/KeyboardEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/KeyboardEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/KeyboardEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -90,15 +90,6 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>-KeyboardEventInit::KeyboardEventInit()
- : location(0)
- , ctrlKey(false)
- , altKey(false)
- , shiftKey(false)
- , metaKey(false)
-{
-}
-
</del><span class="cx"> KeyboardEvent::KeyboardEvent()
</span><span class="cx"> : m_location(DOM_KEY_LOCATION_STANDARD)
</span><span class="cx"> , m_altGraphKey(false)
</span><span class="lines">@@ -126,8 +117,14 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+// FIXME: This method should be get ride of in the future.
+// DO NOT USE IT!
+KeyboardEvent::KeyboardEvent(WTF::HashTableDeletedValueType)
+{
+}
+
</ins><span class="cx"> KeyboardEvent::KeyboardEvent(const AtomicString& eventType, const KeyboardEventInit& initializer)
</span><del>- : UIEventWithKeyState(eventType, initializer.bubbles, initializer.cancelable, initializer.view.get(), initializer.detail, initializer.ctrlKey, initializer.altKey, initializer.shiftKey, initializer.metaKey)
</del><ins>+ : UIEventWithKeyState(eventType, initializer)
</ins><span class="cx"> , m_keyIdentifier(initializer.keyIdentifier)
</span><span class="cx"> , m_location(initializer.location)
</span><span class="cx"> , m_altGraphKey(false)
</span></span></pre></div>
<a id="trunkSourceWebCoredomKeyboardEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/KeyboardEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/KeyboardEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/KeyboardEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,15 +34,9 @@
</span><span class="cx"> class Node;
</span><span class="cx"> class PlatformKeyboardEvent;
</span><span class="cx">
</span><del>-struct KeyboardEventInit : public UIEventInit {
- KeyboardEventInit();
-
</del><ins>+struct KeyboardEventInit : public UIEventWithKeyStateInit {
</ins><span class="cx"> String keyIdentifier;
</span><del>- unsigned location;
- bool ctrlKey;
- bool altKey;
- bool shiftKey;
- bool metaKey;
</del><ins>+ unsigned location { 0 };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class KeyboardEvent final : public UIEventWithKeyState {
</span><span class="lines">@@ -56,22 +50,29 @@
</span><span class="cx"> // DOM_KEY_LOCATION_MOBILE = 0x04,
</span><span class="cx"> // DOM_KEY_LOCATION_JOYSTICK = 0x05
</span><span class="cx"> };
</span><del>-
- static Ref<KeyboardEvent> create()
- {
- return adoptRef(*new KeyboardEvent);
- }
</del><span class="cx">
</span><span class="cx"> static Ref<KeyboardEvent> create(const PlatformKeyboardEvent& platformEvent, AbstractView* view)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new KeyboardEvent(platformEvent, view));
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<KeyboardEvent> create(const AtomicString& type, const KeyboardEventInit& initializer)
</del><ins>+ static Ref<KeyboardEvent> createForBindings()
</ins><span class="cx"> {
</span><ins>+ return adoptRef(*new KeyboardEvent);
+ }
+
+ static Ref<KeyboardEvent> createForBindings(const AtomicString& type, const KeyboardEventInit& initializer)
+ {
</ins><span class="cx"> return adoptRef(*new KeyboardEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ // FIXME: This method should be get ride of in the future.
+ // DO NOT USE IT!
+ static Ref<KeyboardEvent> createForDummy()
+ {
+ return adoptRef(*new KeyboardEvent(WTF::HashTableDeletedValue));
+ }
+
</ins><span class="cx"> virtual ~KeyboardEvent();
</span><span class="cx">
</span><span class="cx"> void initKeyboardEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView*,
</span><span class="lines">@@ -106,6 +107,9 @@
</span><span class="cx"> WEBCORE_EXPORT KeyboardEvent();
</span><span class="cx"> WEBCORE_EXPORT KeyboardEvent(const PlatformKeyboardEvent&, AbstractView*);
</span><span class="cx"> KeyboardEvent(const AtomicString&, const KeyboardEventInit&);
</span><ins>+ // FIXME: This method should be get ride of in the future.
+ // DO NOT USE IT!
+ KeyboardEvent(WTF::HashTableDeletedValueType);
</ins><span class="cx">
</span><span class="cx"> std::unique_ptr<PlatformKeyboardEvent> m_keyEvent;
</span><span class="cx"> String m_keyIdentifier;
</span></span></pre></div>
<a id="trunkSourceWebCoredomMessageEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MessageEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MessageEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/MessageEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -37,10 +37,6 @@
</span><span class="cx"> return !source || source->toDOMWindow() || source->isMessagePort();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-MessageEventInit::MessageEventInit()
-{
-}
-
</del><span class="cx"> MessageEvent::MessageEvent()
</span><span class="cx"> : m_dataType(DataTypeScriptValue)
</span><span class="cx"> {
</span><span class="lines">@@ -81,6 +77,15 @@
</span><span class="cx"> ASSERT(isValidSource(m_source.get()));
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+MessageEvent::MessageEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId)
+ : Event(type, canBubble, cancelable)
+ , m_dataType(DataTypeSerializedScriptValue)
+ , m_dataAsSerializedScriptValue(data)
+ , m_origin(origin)
+ , m_lastEventId(lastEventId)
+{
+}
+
</ins><span class="cx"> MessageEvent::MessageEvent(const String& data, const String& origin)
</span><span class="cx"> : Event(eventNames().messageEvent, false, false)
</span><span class="cx"> , m_dataType(DataTypeString)
</span></span></pre></div>
<a id="trunkSourceWebCoredomMessageEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MessageEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MessageEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/MessageEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -42,8 +42,6 @@
</span><span class="cx"> class EventTarget;
</span><span class="cx">
</span><span class="cx"> struct MessageEventInit : public EventInit {
</span><del>- MessageEventInit();
-
</del><span class="cx"> Deprecated::ScriptValue data;
</span><span class="cx"> String origin;
</span><span class="cx"> String lastEventId;
</span><span class="lines">@@ -53,10 +51,6 @@
</span><span class="cx">
</span><span class="cx"> class MessageEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<MessageEvent> create()
- {
- return adoptRef(*new MessageEvent);
- }
</del><span class="cx"> static Ref<MessageEvent> create(std::unique_ptr<MessagePortArray> ports, const Deprecated::ScriptValue& data = Deprecated::ScriptValue(), const String& origin = String(), const String& lastEventId = String(), PassRefPtr<EventTarget> source = nullptr)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MessageEvent(data, origin, lastEventId, source, WTFMove(ports)));
</span><span class="lines">@@ -65,6 +59,10 @@
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MessageEvent(data, origin, lastEventId, source, WTFMove(ports)));
</span><span class="cx"> }
</span><ins>+ static Ref<MessageEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId)
+ {
+ return adoptRef(*new MessageEvent(type, canBubble, cancelable, data, origin, lastEventId));
+ }
</ins><span class="cx"> static Ref<MessageEvent> create(const String& data, const String& origin = String())
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MessageEvent(data, origin));
</span><span class="lines">@@ -77,8 +75,12 @@
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MessageEvent(data, origin));
</span><span class="cx"> }
</span><del>- static Ref<MessageEvent> create(const AtomicString& type, const MessageEventInit& initializer)
</del><ins>+ static Ref<MessageEvent> createForBindings()
</ins><span class="cx"> {
</span><ins>+ return adoptRef(*new MessageEvent);
+ }
+ static Ref<MessageEvent> createForBindings(const AtomicString& type, const MessageEventInit& initializer)
+ {
</ins><span class="cx"> return adoptRef(*new MessageEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx"> virtual ~MessageEvent();
</span><span class="lines">@@ -121,6 +123,7 @@
</span><span class="cx"> MessageEvent(const AtomicString&, const MessageEventInit&);
</span><span class="cx"> MessageEvent(const Deprecated::ScriptValue& data, const String& origin, const String& lastEventId, PassRefPtr<EventTarget> source, std::unique_ptr<MessagePortArray>);
</span><span class="cx"> MessageEvent(PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId, PassRefPtr<EventTarget> source, std::unique_ptr<MessagePortArray>);
</span><ins>+ MessageEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId);
</ins><span class="cx">
</span><span class="cx"> explicit MessageEvent(const String& data, const String& origin);
</span><span class="cx"> explicit MessageEvent(PassRefPtr<Blob> data, const String& origin);
</span></span></pre></div>
<a id="trunkSourceWebCoredomMouseEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MouseEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MouseEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/MouseEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,21 +33,8 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-MouseEventInit::MouseEventInit()
- : screenX(0)
- , screenY(0)
- , clientX(0)
- , clientY(0)
- , ctrlKey(false)
- , altKey(false)
- , shiftKey(false)
- , metaKey(false)
- , button(0)
</del><ins>+Ref<MouseEvent> MouseEvent::createForBindings(const AtomicString& type, const MouseEventInit& initializer)
</ins><span class="cx"> {
</span><del>-}
-
-Ref<MouseEvent> MouseEvent::create(const AtomicString& type, const MouseEventInit& initializer)
-{
</del><span class="cx"> return adoptRef(*new MouseEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -66,13 +53,11 @@
</span><span class="cx"> relatedTarget, event.force());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<MouseEvent> MouseEvent::create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView* view,
- int detail, int screenX, int screenY, int pageX, int pageY,
</del><ins>+Ref<MouseEvent> MouseEvent::create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView* view, int detail, int screenX, int screenY, int pageX, int pageY,
</ins><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><span class="cx"> int movementX, int movementY,
</span><span class="cx"> #endif
</span><del>- bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
- PassRefPtr<EventTarget> relatedTarget, double force)
</del><ins>+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button, PassRefPtr<EventTarget> relatedTarget, double force)
</ins><span class="cx">
</span><span class="cx"> {
</span><span class="cx"> return MouseEvent::create(type, canBubble, cancelable, timestamp, view,
</span><span class="lines">@@ -83,13 +68,11 @@
</span><span class="cx"> ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget, force, 0, false);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<MouseEvent> MouseEvent::create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView* view,
- int detail, int screenX, int screenY, int pageX, int pageY,
</del><ins>+Ref<MouseEvent> MouseEvent::create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView* view, int detail, int screenX, int screenY, int pageX, int pageY,
</ins><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><span class="cx"> int movementX, int movementY,
</span><span class="cx"> #endif
</span><del>- bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
- PassRefPtr<EventTarget> relatedTarget, double force, PassRefPtr<DataTransfer> dataTransfer, bool isSimulated)
</del><ins>+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button, PassRefPtr<EventTarget> relatedTarget, double force, PassRefPtr<DataTransfer> dataTransfer, bool isSimulated)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MouseEvent(type, canBubble, cancelable, timestamp, view,
</span><span class="cx"> detail, screenX, screenY, pageX, pageY,
</span><span class="lines">@@ -99,6 +82,11 @@
</span><span class="cx"> ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget, force, dataTransfer, isSimulated));
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+Ref<MouseEvent> MouseEvent::create(const AtomicString& eventType, bool canBubble, bool cancelable, AbstractView* view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button, PassRefPtr<EventTarget> relatedTarget)
+{
+ return adoptRef(*new MouseEvent(eventType, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget));
+}
+
</ins><span class="cx"> MouseEvent::MouseEvent()
</span><span class="cx"> : m_button(0)
</span><span class="cx"> , m_buttonDown(false)
</span><span class="lines">@@ -127,13 +115,21 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-MouseEvent::MouseEvent(const AtomicString& eventType, const MouseEventInit& initializer)
- : MouseRelatedEvent(eventType, initializer.bubbles, initializer.cancelable, currentTime(), initializer.view.get(), initializer.detail, IntPoint(initializer.screenX, initializer.screenY),
- IntPoint(0 /* pageX */, 0 /* pageY */),
</del><ins>+MouseEvent::MouseEvent(const AtomicString& eventType, bool canBubble, bool cancelable, AbstractView* view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button, PassRefPtr<EventTarget> relatedTarget)
+ : MouseRelatedEvent(eventType, canBubble, cancelable, WTF::currentTime(), view, detail, IntPoint(screenX, screenY), IntPoint(0, 0),
</ins><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><del>- IntPoint(0 /* movementX */, 0 /* movementY */),
</del><ins>+ IntPoint(0, 0),
</ins><span class="cx"> #endif
</span><del>- initializer.ctrlKey, initializer.altKey, initializer.shiftKey, initializer.metaKey, false /* isSimulated */)
</del><ins>+ ctrlKey, altKey, shiftKey, metaKey, false)
+ , m_button(button == (unsigned short)-1 ? 0 : button)
+ , m_buttonDown(button != (unsigned short)-1)
+ , m_relatedTarget(relatedTarget)
+{
+ initCoordinates(IntPoint(clientX, clientY));
+}
+
+MouseEvent::MouseEvent(const AtomicString& eventType, const MouseEventInit& initializer)
+ : MouseRelatedEvent(eventType, initializer)
</ins><span class="cx"> , m_button(initializer.button == (unsigned short)-1 ? 0 : initializer.button)
</span><span class="cx"> , m_buttonDown(initializer.button != (unsigned short)-1)
</span><span class="cx"> , m_relatedTarget(initializer.relatedTarget)
</span><span class="lines">@@ -240,10 +236,9 @@
</span><span class="cx"> Ref<Event> MouseEvent::cloneFor(HTMLIFrameElement* iframe) const
</span><span class="cx"> {
</span><span class="cx"> ASSERT(iframe);
</span><del>- Ref<MouseEvent> clonedMouseEvent = MouseEvent::create();
</del><span class="cx"> Frame* frame = iframe->document().frame();
</span><span class="cx"> FrameView* frameView = frame ? frame->view() : nullptr;
</span><del>- clonedMouseEvent->initMouseEvent(type(), bubbles(), cancelable(),
</del><ins>+ Ref<MouseEvent> clonedMouseEvent = MouseEvent::create(type(), bubbles(), cancelable(),
</ins><span class="cx"> iframe->document().defaultView(),
</span><span class="cx"> detail(), screenX(), screenY(),
</span><span class="cx"> frameView ? adjustedClientX(clientX(), iframe, frameView) : 0,
</span></span></pre></div>
<a id="trunkSourceWebCoredomMouseEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MouseEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MouseEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/MouseEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,28 +31,15 @@
</span><span class="cx"> class DataTransfer;
</span><span class="cx"> class PlatformMouseEvent;
</span><span class="cx">
</span><del>-struct MouseEventInit : public UIEventInit {
- MouseEventInit();
-
- int screenX;
- int screenY;
- int clientX;
- int clientY;
- bool ctrlKey;
- bool altKey;
- bool shiftKey;
- bool metaKey;
- unsigned short button;
</del><ins>+struct MouseEventInit : public MouseRelatedEventInit {
+ int clientX {0};
+ int clientY {0};
+ unsigned short button {0};
</ins><span class="cx"> RefPtr<EventTarget> relatedTarget;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class MouseEvent : public MouseRelatedEvent {
</span><span class="cx"> public:
</span><del>- static Ref<MouseEvent> create()
- {
- return adoptRef(*new MouseEvent);
- }
-
</del><span class="cx"> static Ref<MouseEvent> create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView*,
</span><span class="cx"> int detail, int screenX, int screenY, int pageX, int pageY,
</span><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><span class="lines">@@ -71,8 +58,18 @@
</span><span class="cx">
</span><span class="cx"> WEBCORE_EXPORT static Ref<MouseEvent> create(const AtomicString& eventType, AbstractView*, const PlatformMouseEvent&, int detail, PassRefPtr<Node> relatedTarget);
</span><span class="cx">
</span><del>- static Ref<MouseEvent> create(const AtomicString& eventType, const MouseEventInit&);
</del><ins>+ static Ref<MouseEvent> create(const AtomicString& eventType, bool canBubble, bool cancelable, AbstractView*,
+ int detail, int screenX, int screenY, int clientX, int clientY,
+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
+ unsigned short button, PassRefPtr<EventTarget> relatedTarget);
</ins><span class="cx">
</span><ins>+ static Ref<MouseEvent> createForBindings()
+ {
+ return adoptRef(*new MouseEvent);
+ }
+
+ static Ref<MouseEvent> createForBindings(const AtomicString& eventType, const MouseEventInit&);
+
</ins><span class="cx"> virtual ~MouseEvent();
</span><span class="cx">
</span><span class="cx"> void initMouseEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView*,
</span><span class="lines">@@ -115,6 +112,11 @@
</span><span class="cx"> bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
</span><span class="cx"> PassRefPtr<EventTarget> relatedTarget, double force, PassRefPtr<DataTransfer>, bool isSimulated);
</span><span class="cx">
</span><ins>+ MouseEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView*,
+ int detail, int screenX, int screenY, int clientX, int clientY,
+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
+ unsigned short button, PassRefPtr<EventTarget> relatedTarget);
+
</ins><span class="cx"> MouseEvent(const AtomicString& type, const MouseEventInit&);
</span><span class="cx">
</span><span class="cx"> MouseEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomMouseRelatedEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MouseRelatedEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MouseRelatedEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/MouseRelatedEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -68,6 +68,22 @@
</span><span class="cx"> #endif
</span><span class="cx"> , m_isSimulated(isSimulated)
</span><span class="cx"> {
</span><ins>+ init(isSimulated, windowLocation);
+}
+
+MouseRelatedEvent::MouseRelatedEvent(const AtomicString& eventType, const MouseRelatedEventInit& initializer)
+ : UIEventWithKeyState(eventType, initializer)
+ , m_screenLocation(IntPoint(initializer.screenX, initializer.screenY))
+#if ENABLE(POINTER_LOCK)
+ , m_movementDelta(IntPoint(0, 0))
+#endif
+ , m_isSimulated(false)
+{
+ init(false, IntPoint(0, 0));
+}
+
+void MouseRelatedEvent::init(bool isSimulated, const IntPoint& windowLocation)
+{
</ins><span class="cx"> LayoutPoint adjustedPageLocation;
</span><span class="cx"> LayoutPoint scrollPosition;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomMouseRelatedEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MouseRelatedEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MouseRelatedEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/MouseRelatedEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -29,69 +29,77 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>- // Internal only: Helper class for what's common between mouse and wheel events.
- class MouseRelatedEvent : public UIEventWithKeyState {
- public:
- // Note that these values are adjusted to counter the effects of zoom, so that values
- // exposed via DOM APIs are invariant under zooming.
- int screenX() const { return m_screenLocation.x(); }
- int screenY() const { return m_screenLocation.y(); }
- const IntPoint& screenLocation() const { return m_screenLocation; }
- int clientX() const { return m_clientLocation.x(); }
- int clientY() const { return m_clientLocation.y(); }
</del><ins>+struct MouseRelatedEventInit : public UIEventWithKeyStateInit {
+ int screenX { 0 };
+ int screenY { 0 };
+};
+
+// Internal only: Helper class for what's common between mouse and wheel events.
+class MouseRelatedEvent : public UIEventWithKeyState {
+public:
+ // Note that these values are adjusted to counter the effects of zoom, so that values
+ // exposed via DOM APIs are invariant under zooming.
+ int screenX() const { return m_screenLocation.x(); }
+ int screenY() const { return m_screenLocation.y(); }
+ const IntPoint& screenLocation() const { return m_screenLocation; }
+ int clientX() const { return m_clientLocation.x(); }
+ int clientY() const { return m_clientLocation.y(); }
</ins><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><del>- int movementX() const { return m_movementDelta.x(); }
- int movementY() const { return m_movementDelta.y(); }
</del><ins>+ int movementX() const { return m_movementDelta.x(); }
+ int movementY() const { return m_movementDelta.y(); }
</ins><span class="cx"> #endif
</span><del>- const LayoutPoint& clientLocation() const { return m_clientLocation; }
- virtual int layerX() override;
- virtual int layerY() override;
- WEBCORE_EXPORT int offsetX();
- WEBCORE_EXPORT int offsetY();
- bool isSimulated() const { return m_isSimulated; }
- virtual int pageX() const override final;
- virtual int pageY() const override final;
- virtual const LayoutPoint& pageLocation() const;
- int x() const;
- int y() const;
</del><ins>+ const LayoutPoint& clientLocation() const { return m_clientLocation; }
+ virtual int layerX() override;
+ virtual int layerY() override;
+ WEBCORE_EXPORT int offsetX();
+ WEBCORE_EXPORT int offsetY();
+ bool isSimulated() const { return m_isSimulated; }
+ virtual int pageX() const override final;
+ virtual int pageY() const override final;
+ virtual const LayoutPoint& pageLocation() const;
+ int x() const;
+ int y() const;
</ins><span class="cx">
</span><del>- // Page point in "absolute" coordinates (i.e. post-zoomed, page-relative coords,
- // usable with RenderObject::absoluteToLocal).
- const LayoutPoint& absoluteLocation() const { return m_absoluteLocation; }
- void setAbsoluteLocation(const LayoutPoint& p) { m_absoluteLocation = p; }
</del><ins>+ // Page point in "absolute" coordinates (i.e. post-zoomed, page-relative coords,
+ // usable with RenderObject::absoluteToLocal).
+ const LayoutPoint& absoluteLocation() const { return m_absoluteLocation; }
+ void setAbsoluteLocation(const LayoutPoint& p) { m_absoluteLocation = p; }
</ins><span class="cx">
</span><del>- protected:
- MouseRelatedEvent();
- MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView*,
- int detail, const IntPoint& screenLocation, const IntPoint& windowLocation,
</del><ins>+protected:
+ MouseRelatedEvent();
+ MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView*,
+ int detail, const IntPoint& screenLocation, const IntPoint& windowLocation,
</ins><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><del>- const IntPoint& movementDelta,
</del><ins>+ const IntPoint& movementDelta,
</ins><span class="cx"> #endif
</span><del>- bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool isSimulated = false);
</del><ins>+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool isSimulated = false);
+ MouseRelatedEvent(const AtomicString& type, const MouseRelatedEventInit&);
</ins><span class="cx">
</span><del>- void initCoordinates();
- void initCoordinates(const LayoutPoint& clientLocation);
- virtual void receivedTarget() override final;
</del><ins>+ void initCoordinates();
+ void initCoordinates(const LayoutPoint& clientLocation);
+ virtual void receivedTarget() override final;
</ins><span class="cx">
</span><del>- void computePageLocation();
- void computeRelativePosition();
</del><ins>+ void computePageLocation();
+ void computeRelativePosition();
</ins><span class="cx">
</span><del>- // Expose these so MouseEvent::initMouseEvent can set them.
- IntPoint m_screenLocation;
- LayoutPoint m_clientLocation;
</del><ins>+ // Expose these so MouseEvent::initMouseEvent can set them.
+ IntPoint m_screenLocation;
+ LayoutPoint m_clientLocation;
</ins><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><del>- LayoutPoint m_movementDelta;
</del><ins>+ LayoutPoint m_movementDelta;
</ins><span class="cx"> #endif
</span><span class="cx">
</span><del>- private:
- LayoutPoint m_pageLocation;
- LayoutPoint m_layerLocation;
- LayoutPoint m_offsetLocation;
- LayoutPoint m_absoluteLocation;
- bool m_isSimulated;
- bool m_hasCachedRelativePosition;
- };
</del><ins>+private:
+ void init(bool isSimulated, const IntPoint&);
</ins><span class="cx">
</span><ins>+ LayoutPoint m_pageLocation;
+ LayoutPoint m_layerLocation;
+ LayoutPoint m_offsetLocation;
+ LayoutPoint m_absoluteLocation;
+ bool m_isSimulated;
+ bool m_hasCachedRelativePosition;
+};
+
</ins><span class="cx"> } // namespace WebCore
</span><span class="cx">
</span><span class="cx"> #endif // MouseRelatedEvent_h
</span></span></pre></div>
<a id="trunkSourceWebCoredomMutationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MutationEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MutationEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/MutationEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -39,17 +39,17 @@
</span><span class="cx"> REMOVAL = 3
</span><span class="cx"> };
</span><span class="cx">
</span><del>- static Ref<MutationEvent> create()
- {
- return adoptRef(*new MutationEvent);
- }
-
</del><span class="cx"> static Ref<MutationEvent> create(const AtomicString& type, bool canBubble, PassRefPtr<Node> relatedNode = nullptr,
</span><span class="cx"> const String& prevValue = String(), const String& newValue = String(), const String& attrName = String(), unsigned short attrChange = 0)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange));
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ static Ref<MutationEvent> createForBindings()
+ {
+ return adoptRef(*new MutationEvent);
+ }
+
</ins><span class="cx"> void initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<Node> relatedNode,
</span><span class="cx"> const String& prevValue, const String& newValue,
</span><span class="cx"> const String& attrName, unsigned short attrChange);
</span></span></pre></div>
<a id="trunkSourceWebCoredomOverflowEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/OverflowEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/OverflowEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/OverflowEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,16 +30,8 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-OverflowEventInit::OverflowEventInit()
- : orient(0)
- , horizontalOverflow(false)
- , verticalOverflow(false)
-{
-}
-
</del><span class="cx"> OverflowEvent::OverflowEvent()
</span><del>- : Event(eventNames().overflowchangedEvent, false, false)
- , m_orient(VERTICAL)
</del><ins>+ : m_orient(VERTICAL)
</ins><span class="cx"> , m_horizontalOverflow(false)
</span><span class="cx"> , m_verticalOverflow(false)
</span><span class="cx"> {
</span><span class="lines">@@ -78,6 +70,8 @@
</span><span class="cx"> if (dispatched())
</span><span class="cx"> return;
</span><span class="cx">
</span><ins>+ initEvent(eventNames().overflowchangedEvent, false, false);
+
</ins><span class="cx"> m_orient = orient;
</span><span class="cx"> m_horizontalOverflow = horizontalOverflow;
</span><span class="cx"> m_verticalOverflow = verticalOverflow;
</span></span></pre></div>
<a id="trunkSourceWebCoredomOverflowEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/OverflowEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/OverflowEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/OverflowEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,11 +31,9 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct OverflowEventInit : public EventInit {
</span><del>- OverflowEventInit();
-
- unsigned short orient;
- bool horizontalOverflow;
- bool verticalOverflow;
</del><ins>+ unsigned short orient { 0 };
+ bool horizontalOverflow { false };
+ bool verticalOverflow { false };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class OverflowEvent final : public Event {
</span><span class="lines">@@ -46,16 +44,16 @@
</span><span class="cx"> BOTH = 2
</span><span class="cx"> };
</span><span class="cx">
</span><del>- static Ref<OverflowEvent> create()
- {
- return adoptRef(*new OverflowEvent);
- }
</del><span class="cx"> static Ref<OverflowEvent> create(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new OverflowEvent(horizontalOverflowChanged, horizontalOverflow, verticalOverflowChanged, verticalOverflow));
</span><span class="cx"> }
</span><del>- static Ref<OverflowEvent> create(const AtomicString& type, const OverflowEventInit& initializer)
</del><ins>+ static Ref<OverflowEvent> createForBindings()
</ins><span class="cx"> {
</span><ins>+ return adoptRef(*new OverflowEvent);
+ }
+ static Ref<OverflowEvent> createForBindings(const AtomicString& type, const OverflowEventInit& initializer)
+ {
</ins><span class="cx"> return adoptRef(*new OverflowEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomPageTransitionEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PageTransitionEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PageTransitionEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/PageTransitionEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,16 +30,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-PageTransitionEventInit::PageTransitionEventInit()
- : persisted(false)
-{
-}
-
-PageTransitionEvent::PageTransitionEvent()
- : m_persisted(false)
-{
-}
-
</del><span class="cx"> PageTransitionEvent::PageTransitionEvent(const AtomicString& type, bool persisted)
</span><span class="cx"> : Event(type, true, true)
</span><span class="cx"> , m_persisted(persisted)
</span></span></pre></div>
<a id="trunkSourceWebCoredomPageTransitionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PageTransitionEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PageTransitionEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/PageTransitionEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,22 +31,16 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct PageTransitionEventInit : public EventInit {
</span><del>- PageTransitionEventInit();
-
- bool persisted;
</del><ins>+ bool persisted { false };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class PageTransitionEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<PageTransitionEvent> create()
- {
- return adoptRef(*new PageTransitionEvent);
- }
</del><span class="cx"> static Ref<PageTransitionEvent> create(const AtomicString& type, bool persisted)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new PageTransitionEvent(type, persisted));
</span><span class="cx"> }
</span><del>- static Ref<PageTransitionEvent> create(const AtomicString& type, const PageTransitionEventInit& initializer)
</del><ins>+ static Ref<PageTransitionEvent> createForBindings(const AtomicString& type, const PageTransitionEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new PageTransitionEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -58,7 +52,6 @@
</span><span class="cx"> bool persisted() const { return m_persisted; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- PageTransitionEvent();
</del><span class="cx"> PageTransitionEvent(const AtomicString& type, bool persisted);
</span><span class="cx"> PageTransitionEvent(const AtomicString&, const PageTransitionEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomPopStateEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PopStateEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PopStateEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/PopStateEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,15 +33,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-PopStateEventInit::PopStateEventInit()
-{
-}
-
-PopStateEvent::PopStateEvent()
- : Event(eventNames().popstateEvent, false, true)
-{
-}
-
</del><span class="cx"> PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_state(initializer.state)
</span><span class="lines">@@ -59,17 +50,12 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<PopStateEvent> PopStateEvent::create()
-{
- return adoptRef(*new PopStateEvent);
-}
-
</del><span class="cx"> Ref<PopStateEvent> PopStateEvent::create(RefPtr<SerializedScriptValue>&& serializedState, PassRefPtr<History> history)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new PopStateEvent(WTFMove(serializedState), history));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<PopStateEvent> PopStateEvent::create(const AtomicString& type, const PopStateEventInit& initializer)
</del><ins>+Ref<PopStateEvent> PopStateEvent::createForBindings(const AtomicString& type, const PopStateEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new PopStateEvent(type, initializer));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomPopStateEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PopStateEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PopStateEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/PopStateEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,8 +34,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct PopStateEventInit : public EventInit {
</span><del>- PopStateEventInit();
-
</del><span class="cx"> Deprecated::ScriptValue state;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -45,9 +43,8 @@
</span><span class="cx"> class PopStateEvent final : public Event {
</span><span class="cx"> public:
</span><span class="cx"> virtual ~PopStateEvent();
</span><del>- static Ref<PopStateEvent> create();
</del><span class="cx"> static Ref<PopStateEvent> create(RefPtr<SerializedScriptValue>&&, PassRefPtr<History>);
</span><del>- static Ref<PopStateEvent> create(const AtomicString&, const PopStateEventInit&);
</del><ins>+ static Ref<PopStateEvent> createForBindings(const AtomicString&, const PopStateEventInit&);
</ins><span class="cx">
</span><span class="cx"> PassRefPtr<SerializedScriptValue> serializedState() const { ASSERT(m_serializedState); return m_serializedState; }
</span><span class="cx">
</span><span class="lines">@@ -59,7 +56,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- PopStateEvent();
</del><span class="cx"> PopStateEvent(const AtomicString&, const PopStateEventInit&);
</span><span class="cx"> explicit PopStateEvent(PassRefPtr<SerializedScriptValue>, PassRefPtr<History>);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomProgressEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ProgressEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ProgressEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/ProgressEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,20 +30,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-ProgressEventInit::ProgressEventInit()
- : lengthComputable(false)
- , loaded(0)
- , total(0)
-{
-}
-
-ProgressEvent::ProgressEvent()
- : m_lengthComputable(false)
- , m_loaded(0)
- , m_total(0)
-{
-}
-
</del><span class="cx"> ProgressEvent::ProgressEvent(const AtomicString& type, const ProgressEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_lengthComputable(initializer.lengthComputable)
</span></span></pre></div>
<a id="trunkSourceWebCoredomProgressEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ProgressEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ProgressEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/ProgressEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,24 +31,18 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct ProgressEventInit : public EventInit {
</span><del>- ProgressEventInit();
-
- bool lengthComputable;
- unsigned long long loaded;
- unsigned long long total;
</del><ins>+ bool lengthComputable { false };
+ unsigned long long loaded { 0 };
+ unsigned long long total { 0 };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class ProgressEvent : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<ProgressEvent> create()
- {
- return adoptRef(*new ProgressEvent);
- }
</del><span class="cx"> static Ref<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new ProgressEvent(type, lengthComputable, loaded, total));
</span><span class="cx"> }
</span><del>- static Ref<ProgressEvent> create(const AtomicString& type, const ProgressEventInit& initializer)
</del><ins>+ static Ref<ProgressEvent> createForBindings(const AtomicString& type, const ProgressEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new ProgressEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -60,7 +54,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> protected:
</span><del>- ProgressEvent();
</del><span class="cx"> ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total);
</span><span class="cx"> ProgressEvent(const AtomicString&, const ProgressEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomSecurityPolicyViolationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/SecurityPolicyViolationEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/SecurityPolicyViolationEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/SecurityPolicyViolationEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,10 +32,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct SecurityPolicyViolationEventInit : public EventInit {
</span><del>- SecurityPolicyViolationEventInit()
- {
- }
-
</del><span class="cx"> String documentURI;
</span><span class="cx"> String referrer;
</span><span class="cx"> String blockedURI;
</span><span class="lines">@@ -43,17 +39,22 @@
</span><span class="cx"> String effectiveDirective;
</span><span class="cx"> String originalPolicy;
</span><span class="cx"> String sourceFile;
</span><del>- int lineNumber;
</del><ins>+ int lineNumber { 0 };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class SecurityPolicyViolationEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<SecurityPolicyViolationEvent> create()
</del><ins>+ static Ref<SecurityPolicyViolationEvent> create(const AtomicString& type, bool canBubble, bool cancelable, const String& documentURI, const String& referrer, const String& blockedURI, const String& violatedDirective, const String& effectiveDirective, const String& originalPolicy, const String& sourceFile, int lineNumber)
</ins><span class="cx"> {
</span><ins>+ return adoptRef(*new SecurityPolicyViolationEvent(type, canBubble, cancelable, documentURI, referrer, blockedURI, violatedDirective, effectiveDirective, originalPolicy, sourceFile, lineNumber));
+ }
+
+ static Ref<SecurityPolicyViolationEvent> createForBindings()
+ {
</ins><span class="cx"> return adoptRef(*new SecurityPolicyViolationEvent());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<SecurityPolicyViolationEvent> create(const AtomicString& type, const SecurityPolicyViolationEventInit& initializer)
</del><ins>+ static Ref<SecurityPolicyViolationEvent> createForBindings(const AtomicString& type, const SecurityPolicyViolationEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new SecurityPolicyViolationEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -74,6 +75,19 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ SecurityPolicyViolationEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& documentURI, const String& referrer, const String& blockedURI, const String& violatedDirective, const String& effectiveDirective, const String& originalPolicy, const String& sourceFile, int lineNumber)
+ : Event(type, canBubble, cancelable)
+ , m_documentURI(documentURI)
+ , m_referrer(referrer)
+ , m_blockedURI(blockedURI)
+ , m_violatedDirective(violatedDirective)
+ , m_effectiveDirective(effectiveDirective)
+ , m_originalPolicy(originalPolicy)
+ , m_sourceFile(sourceFile)
+ , m_lineNumber(lineNumber)
+ {
+ }
+
</ins><span class="cx"> SecurityPolicyViolationEvent(const AtomicString& type, const SecurityPolicyViolationEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_documentURI(initializer.documentURI)
</span></span></pre></div>
<a id="trunkSourceWebCoredomTextEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TextEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/TextEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-Ref<TextEvent> TextEvent::create()
</del><ins>+Ref<TextEvent> TextEvent::createForBindings()
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new TextEvent);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoredomTextEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TextEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/TextEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -39,9 +39,8 @@
</span><span class="cx">
</span><span class="cx"> class TextEvent final : public UIEvent {
</span><span class="cx"> public:
</span><del>-
- static Ref<TextEvent> create();
</del><span class="cx"> static Ref<TextEvent> create(AbstractView*, const String& data, TextEventInputType = TextEventInputKeyboard);
</span><ins>+ static Ref<TextEvent> createForBindings();
</ins><span class="cx"> static Ref<TextEvent> createForPlainTextPaste(AbstractView*, const String& data, bool shouldSmartReplace);
</span><span class="cx"> static Ref<TextEvent> createForFragmentPaste(AbstractView*, RefPtr<DocumentFragment>&& data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling);
</span><span class="cx"> static Ref<TextEvent> createForDrop(AbstractView*, const String& data);
</span></span></pre></div>
<a id="trunkSourceWebCoredomTouchEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TouchEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TouchEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/TouchEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -40,10 +40,6 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~TouchEvent();
</span><span class="cx">
</span><del>- static Ref<TouchEvent> create()
- {
- return adoptRef(*new TouchEvent);
- }
</del><span class="cx"> static Ref<TouchEvent> create(TouchList* touches,
</span><span class="cx"> TouchList* targetTouches, TouchList* changedTouches,
</span><span class="cx"> const AtomicString& type, AbstractView* view,
</span><span class="lines">@@ -54,6 +50,10 @@
</span><span class="cx"> type, view, screenX, screenY, pageX, pageY,
</span><span class="cx"> ctrlKey, altKey, shiftKey, metaKey));
</span><span class="cx"> }
</span><ins>+ static Ref<TouchEvent> createForBindings()
+ {
+ return adoptRef(*new TouchEvent);
+ }
</ins><span class="cx">
</span><span class="cx"> void initTouchEvent(TouchList* touches, TouchList* targetTouches,
</span><span class="cx"> TouchList* changedTouches, const AtomicString& type,
</span></span></pre></div>
<a id="trunkSourceWebCoredomTransitionEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TransitionEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TransitionEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/TransitionEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,16 +31,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-TransitionEventInit::TransitionEventInit()
- : elapsedTime(0)
-{
-}
-
-TransitionEvent::TransitionEvent()
- : m_elapsedTime(0)
-{
-}
-
</del><span class="cx"> TransitionEvent::TransitionEvent(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement)
</span><span class="cx"> : Event(type, true, true)
</span><span class="cx"> , m_propertyName(propertyName)
</span></span></pre></div>
<a id="trunkSourceWebCoredomTransitionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TransitionEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TransitionEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/TransitionEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,24 +32,18 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct TransitionEventInit : public EventInit {
</span><del>- TransitionEventInit();
-
</del><span class="cx"> String propertyName;
</span><del>- double elapsedTime;
</del><ins>+ double elapsedTime { 0 };
</ins><span class="cx"> String pseudoElement;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class TransitionEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<TransitionEvent> create()
- {
- return adoptRef(*new TransitionEvent);
- }
</del><span class="cx"> static Ref<TransitionEvent> create(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new TransitionEvent(type, propertyName, elapsedTime, pseudoElement));
</span><span class="cx"> }
</span><del>- static Ref<TransitionEvent> create(const AtomicString& type, const TransitionEventInit& initializer)
</del><ins>+ static Ref<TransitionEvent> createForBindings(const AtomicString& type, const TransitionEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new TransitionEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -63,7 +57,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- TransitionEvent();
</del><span class="cx"> TransitionEvent(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement);
</span><span class="cx"> TransitionEvent(const AtomicString& type, const TransitionEventInit& initializer);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomUIEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/UIEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/UIEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/UIEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -26,18 +26,6 @@
</span><span class="cx"> #include "Node.h"
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><del>-
-UIEventInit::UIEventInit()
- : detail(0)
-{
-}
-
-UIEventInit::UIEventInit(bool bubbles, bool cancelable)
- : EventInit(bubbles, cancelable)
- , detail(0)
-{
-}
-
</del><span class="cx">
</span><span class="cx"> UIEvent::UIEvent()
</span><span class="cx"> : m_detail(0)
</span></span></pre></div>
<a id="trunkSourceWebCoredomUIEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/UIEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/UIEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/UIEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,25 +32,22 @@
</span><span class="cx"> typedef DOMWindow AbstractView;
</span><span class="cx">
</span><span class="cx"> struct UIEventInit : public EventInit {
</span><del>- UIEventInit();
- UIEventInit(bool bubbles, bool cancelable);
-
</del><span class="cx"> RefPtr<AbstractView> view;
</span><del>- int detail;
</del><ins>+ int detail { 0 };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class UIEvent : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<UIEvent> create()
- {
- return adoptRef(*new UIEvent);
- }
</del><span class="cx"> static Ref<UIEvent> create(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, int detail)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new UIEvent(type, canBubble, cancelable, view, detail));
</span><span class="cx"> }
</span><del>- static Ref<UIEvent> create(const AtomicString& type, const UIEventInit& initializer)
</del><ins>+ static Ref<UIEvent> createForBindings()
</ins><span class="cx"> {
</span><ins>+ return adoptRef(*new UIEvent);
+ }
+ static Ref<UIEvent> createForBindings(const AtomicString& type, const UIEventInit& initializer)
+ {
</ins><span class="cx"> return adoptRef(*new UIEvent(type, initializer));
</span><span class="cx"> }
</span><span class="cx"> virtual ~UIEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomUIEventWithKeyStateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/UIEventWithKeyState.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/UIEventWithKeyState.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/UIEventWithKeyState.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -28,51 +28,65 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>- class UIEventWithKeyState : public UIEvent {
- public:
- bool ctrlKey() const { return m_ctrlKey; }
- bool shiftKey() const { return m_shiftKey; }
- bool altKey() const { return m_altKey; }
- bool metaKey() const { return m_metaKey; }
</del><ins>+struct UIEventWithKeyStateInit : public UIEventInit {
+ bool ctrlKey { false };
+ bool altKey { false };
+ bool shiftKey { false };
+ bool metaKey { false };
+};
</ins><span class="cx">
</span><del>- protected:
- UIEventWithKeyState()
- : m_ctrlKey(false)
- , m_altKey(false)
- , m_shiftKey(false)
- , m_metaKey(false)
- {
- }
</del><ins>+class UIEventWithKeyState : public UIEvent {
+public:
+ bool ctrlKey() const { return m_ctrlKey; }
+ bool shiftKey() const { return m_shiftKey; }
+ bool altKey() const { return m_altKey; }
+ bool metaKey() const { return m_metaKey; }
</ins><span class="cx">
</span><del>- UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view,
- int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
- : UIEvent(type, canBubble, cancelable, view, detail)
- , m_ctrlKey(ctrlKey)
- , m_altKey(altKey)
- , m_shiftKey(shiftKey)
- , m_metaKey(metaKey)
- {
- }
</del><ins>+protected:
+ UIEventWithKeyState()
+ : m_ctrlKey(false)
+ , m_altKey(false)
+ , m_shiftKey(false)
+ , m_metaKey(false)
+ {
+ }
</ins><span class="cx">
</span><del>- UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView* view,
- int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
- : UIEvent(type, canBubble, cancelable, timestamp, view, detail)
- , m_ctrlKey(ctrlKey)
- , m_altKey(altKey)
- , m_shiftKey(shiftKey)
- , m_metaKey(metaKey)
- {
- }
</del><ins>+ UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
+ : UIEvent(type, canBubble, cancelable, view, detail)
+ , m_ctrlKey(ctrlKey)
+ , m_altKey(altKey)
+ , m_shiftKey(shiftKey)
+ , m_metaKey(metaKey)
+ {
+ }
</ins><span class="cx">
</span><del>- // Expose these so init functions can set them.
- bool m_ctrlKey : 1;
- bool m_altKey : 1;
- bool m_shiftKey : 1;
- bool m_metaKey : 1;
- };
</del><ins>+ UIEventWithKeyState(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, AbstractView* view, int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
+ : UIEvent(type, canBubble, cancelable, timestamp, view, detail)
+ , m_ctrlKey(ctrlKey)
+ , m_altKey(altKey)
+ , m_shiftKey(shiftKey)
+ , m_metaKey(metaKey)
+ {
+ }
</ins><span class="cx">
</span><del>- WEBCORE_EXPORT UIEventWithKeyState* findEventWithKeyState(Event*);
</del><ins>+ UIEventWithKeyState(const AtomicString& type, const UIEventWithKeyStateInit& initializer)
+ : UIEvent(type, initializer)
+ , m_ctrlKey(initializer.ctrlKey)
+ , m_altKey(initializer.altKey)
+ , m_shiftKey(initializer.shiftKey)
+ , m_metaKey(initializer.metaKey)
+ {
+ }
</ins><span class="cx">
</span><ins>+ // Expose these so init functions can set them.
+ bool m_ctrlKey : 1;
+ bool m_altKey : 1;
+ bool m_shiftKey : 1;
+ bool m_metaKey : 1;
+};
+
+WEBCORE_EXPORT UIEventWithKeyState* findEventWithKeyState(Event*);
+
</ins><span class="cx"> } // namespace WebCore
</span><span class="cx">
</span><span class="cx"> #endif // UIEventWithKeyState_h
</span></span></pre></div>
<a id="trunkSourceWebCoredomWebKitAnimationEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/WebKitAnimationEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/WebKitAnimationEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/WebKitAnimationEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,17 +30,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-WebKitAnimationEventInit::WebKitAnimationEventInit()
- : animationName()
- , elapsedTime(0.0)
-{
-}
-
-WebKitAnimationEvent::WebKitAnimationEvent()
- : m_elapsedTime(0.0)
-{
-}
-
</del><span class="cx"> WebKitAnimationEvent::WebKitAnimationEvent(const AtomicString& type, const WebKitAnimationEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_animationName(initializer.animationName)
</span></span></pre></div>
<a id="trunkSourceWebCoredomWebKitAnimationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/WebKitAnimationEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/WebKitAnimationEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/WebKitAnimationEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,23 +31,17 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct WebKitAnimationEventInit : public EventInit {
</span><del>- WebKitAnimationEventInit();
-
</del><span class="cx"> String animationName;
</span><del>- double elapsedTime;
</del><ins>+ double elapsedTime { 0.0 };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class WebKitAnimationEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<WebKitAnimationEvent> create()
- {
- return adoptRef(*new WebKitAnimationEvent);
- }
</del><span class="cx"> static Ref<WebKitAnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new WebKitAnimationEvent(type, animationName, elapsedTime));
</span><span class="cx"> }
</span><del>- static Ref<WebKitAnimationEvent> create(const AtomicString& type, const WebKitAnimationEventInit& initializer)
</del><ins>+ static Ref<WebKitAnimationEvent> createForBindings(const AtomicString& type, const WebKitAnimationEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new WebKitAnimationEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -60,7 +54,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- WebKitAnimationEvent();
</del><span class="cx"> WebKitAnimationEvent(const AtomicString& type, const String& animationName, double elapsedTime);
</span><span class="cx"> WebKitAnimationEvent(const AtomicString&, const WebKitAnimationEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomWebKitTransitionEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/WebKitTransitionEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/WebKitTransitionEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/WebKitTransitionEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,16 +30,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-WebKitTransitionEventInit::WebKitTransitionEventInit()
- : elapsedTime(0)
-{
-}
-
-WebKitTransitionEvent::WebKitTransitionEvent()
- : m_elapsedTime(0)
-{
-}
-
</del><span class="cx"> WebKitTransitionEvent::WebKitTransitionEvent(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement)
</span><span class="cx"> : Event(type, true, true)
</span><span class="cx"> , m_propertyName(propertyName)
</span></span></pre></div>
<a id="trunkSourceWebCoredomWebKitTransitionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/WebKitTransitionEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/WebKitTransitionEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/WebKitTransitionEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,24 +31,18 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct WebKitTransitionEventInit : public EventInit {
</span><del>- WebKitTransitionEventInit();
-
</del><span class="cx"> String propertyName;
</span><del>- double elapsedTime;
</del><ins>+ double elapsedTime { 0 };
</ins><span class="cx"> String pseudoElement;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class WebKitTransitionEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<WebKitTransitionEvent> create()
- {
- return adoptRef(*new WebKitTransitionEvent);
- }
</del><span class="cx"> static Ref<WebKitTransitionEvent> create(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new WebKitTransitionEvent(type, propertyName, elapsedTime, pseudoElement));
</span><span class="cx"> }
</span><del>- static Ref<WebKitTransitionEvent> create(const AtomicString& type, const WebKitTransitionEventInit& initializer)
</del><ins>+ static Ref<WebKitTransitionEvent> createForBindings(const AtomicString& type, const WebKitTransitionEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new WebKitTransitionEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -62,7 +56,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- WebKitTransitionEvent();
</del><span class="cx"> WebKitTransitionEvent(const AtomicString& type, const String& propertyName, double elapsedTime, const String& pseudoElement);
</span><span class="cx"> WebKitTransitionEvent(const AtomicString& type, const WebKitTransitionEventInit& initializer);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoredomWheelEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/WheelEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/WheelEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/dom/WheelEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -54,19 +54,19 @@
</span><span class="cx"> DOM_DELTA_PAGE
</span><span class="cx"> };
</span><span class="cx">
</span><del>- static Ref<WheelEvent> create()
</del><ins>+ static Ref<WheelEvent> create(const PlatformWheelEvent& event, AbstractView* view)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new WheelEvent);
</del><ins>+ return adoptRef(*new WheelEvent(event, view));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<WheelEvent> create(const AtomicString& type, const WheelEventInit& initializer)
</del><ins>+ static Ref<WheelEvent> createForBindings()
</ins><span class="cx"> {
</span><del>- return adoptRef(*new WheelEvent(type, initializer));
</del><ins>+ return adoptRef(*new WheelEvent);
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<WheelEvent> create(const PlatformWheelEvent& event, AbstractView* view)
</del><ins>+ static Ref<WheelEvent> createForBindings(const AtomicString& type, const WheelEventInit& initializer)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new WheelEvent(event, view));
</del><ins>+ return adoptRef(*new WheelEvent(type, initializer));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void initWheelEvent(int rawDeltaX, int rawDeltaY, AbstractView*,
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -2231,15 +2231,9 @@
</span><span class="cx"> #if ENABLE(ENCRYPTED_MEDIA)
</span><span class="cx"> void HTMLMediaElement::mediaPlayerKeyAdded(MediaPlayer*, const String& keySystem, const String& sessionId)
</span><span class="cx"> {
</span><del>- MediaKeyEventInit initializer;
- initializer.keySystem = keySystem;
- initializer.sessionId = sessionId;
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- RefPtr<Event> event = MediaKeyEvent::create(eventNames().webkitkeyaddedEvent, initializer);
</del><ins>+ Ref<Event> event = MediaKeyEvent::create(eventNames().webkitkeyaddedEvent, keySystem, sessionId, nullptr, nullptr, emptyString(), nullptr, 0);
</ins><span class="cx"> event->setTarget(this);
</span><del>- m_asyncEventQueue.enqueueEvent(event.release());
</del><ins>+ m_asyncEventQueue.enqueueEvent(WTFMove(event));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void HTMLMediaElement::mediaPlayerKeyError(MediaPlayer*, const String& keySystem, const String& sessionId, MediaPlayerClient::MediaKeyErrorCode errorCode, unsigned short systemCode)
</span><span class="lines">@@ -2266,32 +2260,16 @@
</span><span class="cx"> break;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- MediaKeyEventInit initializer;
- initializer.keySystem = keySystem;
- initializer.sessionId = sessionId;
- initializer.errorCode = MediaKeyError::create(mediaKeyErrorCode);
- initializer.systemCode = systemCode;
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- RefPtr<Event> event = MediaKeyEvent::create(eventNames().webkitkeyerrorEvent, initializer);
</del><ins>+ Ref<Event> event = MediaKeyEvent::create(eventNames().webkitkeyerrorEvent, keySystem, sessionId, nullptr, nullptr, emptyString(), MediaKeyError::create(mediaKeyErrorCode), systemCode);
</ins><span class="cx"> event->setTarget(this);
</span><del>- m_asyncEventQueue.enqueueEvent(event.release());
</del><ins>+ m_asyncEventQueue.enqueueEvent(WTFMove(event));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void HTMLMediaElement::mediaPlayerKeyMessage(MediaPlayer*, const String& keySystem, const String& sessionId, const unsigned char* message, unsigned messageLength, const URL& defaultURL)
</span><span class="cx"> {
</span><del>- MediaKeyEventInit initializer;
- initializer.keySystem = keySystem;
- initializer.sessionId = sessionId;
- initializer.message = Uint8Array::create(message, messageLength);
- initializer.defaultURL = defaultURL;
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- RefPtr<Event> event = MediaKeyEvent::create(eventNames().webkitkeymessageEvent, initializer);
</del><ins>+ Ref<Event> event = MediaKeyEvent::create(eventNames().webkitkeymessageEvent, keySystem, sessionId, nullptr, Uint8Array::create(message, messageLength), defaultURL, nullptr, 0);
</ins><span class="cx"> event->setTarget(this);
</span><del>- m_asyncEventQueue.enqueueEvent(event.release());
</del><ins>+ m_asyncEventQueue.enqueueEvent(WTFMove(event));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool HTMLMediaElement::mediaPlayerKeyNeeded(MediaPlayer*, const String& keySystem, const String& sessionId, const unsigned char* initData, unsigned initDataLength)
</span><span class="lines">@@ -2302,16 +2280,9 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- MediaKeyEventInit initializer;
- initializer.keySystem = keySystem;
- initializer.sessionId = sessionId;
- initializer.initData = Uint8Array::create(initData, initDataLength);
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- RefPtr<Event> event = MediaKeyEvent::create(eventNames().webkitneedkeyEvent, initializer);
</del><ins>+ Ref<Event> event = MediaKeyEvent::create(eventNames().webkitneedkeyEvent, keySystem, sessionId, Uint8Array::create(initData, initDataLength), nullptr, emptyString(), nullptr, 0);
</ins><span class="cx"> event->setTarget(this);
</span><del>- m_asyncEventQueue.enqueueEvent(event.release());
</del><ins>+ m_asyncEventQueue.enqueueEvent(WTFMove(event));
</ins><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="lines">@@ -2330,12 +2301,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- MediaKeyNeededEventInit initializer;
- initializer.initData = initData;
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- RefPtr<Event> event = MediaKeyNeededEvent::create(eventNames().webkitneedkeyEvent, initializer);
</del><ins>+ RefPtr<Event> event = MediaKeyNeededEvent::create(eventNames().webkitneedkeyEvent, initData);
</ins><span class="cx"> event->setTarget(this);
</span><span class="cx"> m_asyncEventQueue.enqueueEvent(event.release());
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlMediaKeyEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/MediaKeyEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/MediaKeyEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/html/MediaKeyEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,15 +33,18 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-MediaKeyEventInit::MediaKeyEventInit()
- : systemCode(0)
</del><ins>+MediaKeyEvent::MediaKeyEvent(const AtomicString& type, const String& keySystem, const String& sessionId, RefPtr<Uint8Array>&& initData, RefPtr<Uint8Array>&& message, const String& defaultURL, RefPtr<MediaKeyError>&& errorCode, uint32_t systemCode)
+ : Event(type, false, false)
+ , m_keySystem(keySystem)
+ , m_sessionId(sessionId)
+ , m_initData(initData)
+ , m_message(message)
+ , m_defaultURL(defaultURL)
+ , m_errorCode(errorCode)
+ , m_systemCode(systemCode)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-MediaKeyEvent::MediaKeyEvent()
-{
-}
-
</del><span class="cx"> MediaKeyEvent::MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_keySystem(initializer.keySystem)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlMediaKeyEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/MediaKeyEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/MediaKeyEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/html/MediaKeyEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,27 +34,25 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct MediaKeyEventInit : public EventInit {
</span><del>- MediaKeyEventInit();
-
</del><span class="cx"> String keySystem;
</span><span class="cx"> String sessionId;
</span><span class="cx"> RefPtr<Uint8Array> initData;
</span><span class="cx"> RefPtr<Uint8Array> message;
</span><span class="cx"> String defaultURL;
</span><span class="cx"> RefPtr<MediaKeyError> errorCode;
</span><del>- uint32_t systemCode;
</del><ins>+ uint32_t systemCode { 0 };
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class MediaKeyEvent final : public Event {
</span><span class="cx"> public:
</span><span class="cx"> virtual ~MediaKeyEvent();
</span><span class="cx">
</span><del>- static Ref<MediaKeyEvent> create()
</del><ins>+ static Ref<MediaKeyEvent> create(const AtomicString& type, const String& keySystem, const String& sessionId, RefPtr<Uint8Array>&& initData, RefPtr<Uint8Array>&& message, const String& defaultURL, RefPtr<MediaKeyError>&& errorCode, uint32_t systemCode)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new MediaKeyEvent);
</del><ins>+ return adoptRef(*new MediaKeyEvent(type, keySystem, sessionId, WTFMove(initData), WTFMove(message), defaultURL, WTFMove(errorCode), systemCode));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<MediaKeyEvent> create(const AtomicString& type, const MediaKeyEventInit& initializer)
</del><ins>+ static Ref<MediaKeyEvent> createForBindings(const AtomicString& type, const MediaKeyEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new MediaKeyEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -70,7 +68,8 @@
</span><span class="cx"> unsigned short systemCode() const { return m_systemCode; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- MediaKeyEvent();
</del><ins>+ MediaKeyEvent(const AtomicString& type, const String& keySystem, const String& sessionId, RefPtr<Uint8Array>&& initData, RefPtr<Uint8Array>&& message, const String& defaultURL, RefPtr<MediaKeyError>&& errorCode, uint32_t systemCode);
+
</ins><span class="cx"> MediaKeyEvent(const AtomicString& type, const MediaKeyEventInit& initializer);
</span><span class="cx">
</span><span class="cx"> String m_keySystem;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLContextEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLContextEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLContextEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/html/canvas/WebGLContextEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -32,14 +32,6 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-WebGLContextEventInit::WebGLContextEventInit()
-{
-}
-
-WebGLContextEvent::WebGLContextEvent()
-{
-}
-
</del><span class="cx"> WebGLContextEvent::WebGLContextEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& statusMessage)
</span><span class="cx"> : Event(type, canBubble, cancelable)
</span><span class="cx"> , m_statusMessage(statusMessage)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLContextEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLContextEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLContextEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/html/canvas/WebGLContextEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,22 +31,16 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct WebGLContextEventInit : public EventInit {
</span><del>- WebGLContextEventInit();
-
</del><span class="cx"> String statusMessage;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> class WebGLContextEvent final : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<WebGLContextEvent> create()
- {
- return adoptRef(*new WebGLContextEvent);
- }
</del><span class="cx"> static Ref<WebGLContextEvent> create(const AtomicString& type, bool canBubble, bool cancelable, const String& statusMessage)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new WebGLContextEvent(type, canBubble, cancelable, statusMessage));
</span><span class="cx"> }
</span><del>- static Ref<WebGLContextEvent> create(const AtomicString& type, const WebGLContextEventInit& initializer)
</del><ins>+ static Ref<WebGLContextEvent> createForBindings(const AtomicString& type, const WebGLContextEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new WebGLContextEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -57,7 +51,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const override;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- WebGLContextEvent();
</del><span class="cx"> WebGLContextEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& statusMessage);
</span><span class="cx"> WebGLContextEvent(const AtomicString&, const WebGLContextEventInit&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackTrackEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/TrackEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/TrackEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/html/track/TrackEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,15 +33,12 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-TrackEventInit::TrackEventInit()
</del><ins>+TrackEvent::TrackEvent(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<TrackBase>&& track)
+ : Event(type, canBubble, cancelable)
+ , m_track(track)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-
-TrackEvent::TrackEvent()
-{
-}
-
</del><span class="cx"> TrackEvent::TrackEvent(const AtomicString& type, const TrackEventInit& initializer)
</span><span class="cx"> : Event(type, initializer)
</span><span class="cx"> , m_track(initializer.track)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackTrackEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/TrackEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/TrackEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/html/track/TrackEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,8 +34,6 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> struct TrackEventInit : public EventInit {
</span><del>- TrackEventInit();
-
</del><span class="cx"> RefPtr<TrackBase> track;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -43,12 +41,12 @@
</span><span class="cx"> public:
</span><span class="cx"> virtual ~TrackEvent();
</span><span class="cx">
</span><del>- static Ref<TrackEvent> create()
</del><ins>+ static Ref<TrackEvent> create(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<TrackBase>&& track)
</ins><span class="cx"> {
</span><del>- return adoptRef(*new TrackEvent);
</del><ins>+ return adoptRef(*new TrackEvent(type, canBubble, cancelable, WTFMove(track)));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- static Ref<TrackEvent> create(const AtomicString& type, const TrackEventInit& initializer)
</del><ins>+ static Ref<TrackEvent> createForBindings(const AtomicString& type, const TrackEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new TrackEvent(type, initializer));
</span><span class="cx"> }
</span><span class="lines">@@ -58,7 +56,7 @@
</span><span class="cx"> TrackBase* track() const { return m_track.get(); }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- TrackEvent();
</del><ins>+ TrackEvent(const AtomicString& type, bool canBubble, bool cancelable, RefPtr<TrackBase>&&);
</ins><span class="cx"> TrackEvent(const AtomicString& type, const TrackEventInit& initializer);
</span><span class="cx">
</span><span class="cx"> RefPtr<TrackBase> m_track;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackTrackListBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/TrackListBase.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/TrackListBase.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/html/track/TrackListBase.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -81,12 +81,7 @@
</span><span class="cx">
</span><span class="cx"> void TrackListBase::scheduleTrackEvent(const AtomicString& eventName, PassRefPtr<TrackBase> track)
</span><span class="cx"> {
</span><del>- TrackEventInit initializer;
- initializer.track = track;
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- m_asyncEventQueue.enqueueEvent(TrackEvent::create(eventName, initializer));
</del><ins>+ m_asyncEventQueue.enqueueEvent(TrackEvent::create(eventName, false, false, track));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void TrackListBase::scheduleAddTrackEvent(PassRefPtr<TrackBase> track)
</span><span class="lines">@@ -149,12 +144,7 @@
</span><span class="cx"> // Whenever a track in a VideoTrackList that was previously not selected is
</span><span class="cx"> // selected, the user agent must queue a task to fire a simple event named
</span><span class="cx"> // change at the VideoTrackList object.
</span><del>-
- EventInit initializer;
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- m_asyncEventQueue.enqueueEvent(Event::create(eventNames().changeEvent, initializer));
</del><ins>+ m_asyncEventQueue.enqueueEvent(Event::create(eventNames().changeEvent, false, false));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool TrackListBase::isAnyTrackEnabled() const
</span></span></pre></div>
<a id="trunkSourceWebCorepageEventSourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/EventSource.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/EventSource.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/page/EventSource.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -413,9 +413,7 @@
</span><span class="cx">
</span><span class="cx"> Ref<MessageEvent> EventSource::createMessageEvent()
</span><span class="cx"> {
</span><del>- Ref<MessageEvent> event = MessageEvent::create();
- event->initMessageEvent(m_eventName.isEmpty() ? eventNames().messageEvent : AtomicString(m_eventName), false, false, SerializedScriptValue::create(String::adopt(m_data)), m_eventStreamOrigin, m_lastEventId, 0, 0);
- return event;
</del><ins>+ return MessageEvent::create(m_eventName.isEmpty() ? eventNames().messageEvent : AtomicString(m_eventName), false, false, SerializedScriptValue::create(String::adopt(m_data)), m_eventStreamOrigin, m_lastEventId);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorepagecspContentSecurityPolicycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -325,28 +325,6 @@
</span><span class="cx"> return document.securityOrigin()->canRequest(url) ? url.strippedForUseAsReferrer() : SecurityOrigin::create(url).get().toString();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#if ENABLE(CSP_NEXT)
-static void gatherSecurityPolicyViolationEventData(SecurityPolicyViolationEventInit& init, Document& document, const String& directiveText, const String& effectiveDirective, const URL& blockedURL, const String& header)
-{
- init.documentURI = document.url().string();
- init.referrer = document.referrer();
- init.blockedURI = stripURLForUseInReport(document, blockedURL);
- init.violatedDirective = directiveText;
- init.effectiveDirective = effectiveDirective;
- init.originalPolicy = header;
- init.sourceFile = String();
- init.lineNumber = 0;
-
- RefPtr<ScriptCallStack> stack = createScriptCallStack(JSMainThreadExecState::currentState(), 2);
- const ScriptCallFrame* callFrame = stack->firstNonNativeCallFrame();
- if (callFrame && callFrame->lineNumber()) {
- URL source = URL(URL(), callFrame->sourceURL());
- init.sourceFile = stripURLForUseInReport(document, source);
- init.lineNumber = callFrame->lineNumber();
- }
-}
-#endif
-
</del><span class="cx"> void ContentSecurityPolicy::reportViolation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const URL& blockedURL, const Vector<String>& reportURIs, const String& header, const String& contextURL, const WTF::OrdinalNumber& contextLine, JSC::ExecState* state) const
</span><span class="cx"> {
</span><span class="cx"> logToConsole(consoleMessage, contextURL, contextLine, state);
</span><span class="lines">@@ -363,9 +341,23 @@
</span><span class="cx"> #if ENABLE(CSP_NEXT)
</span><span class="cx"> if (experimentalFeaturesEnabled()) {
</span><span class="cx"> // FIXME: This code means that we're gathering information like line numbers twice. Once we can bring this out from behind the flag, we should reuse the data gathered here when generating the JSON report below.
</span><del>- SecurityPolicyViolationEventInit init;
- gatherSecurityPolicyViolationEventData(init, document, directiveText, effectiveDirective, blockedURL, header);
- document.enqueueDocumentEvent(SecurityPolicyViolationEvent::create(eventNames().securitypolicyviolationEvent, init));
</del><ins>+ String documentURI = document.url().string();
+ String referrer = document.referrer();
+ String blockedURI = stripURLForUseInReport(document, blockedURL);
+ String violatedDirective = directiveText;
+ String originalPolicy = header;
+ String sourceFile = String();
+ int lineNumber = 0;
+
+ Ref<ScriptCallStack> stack = createScriptCallStack(JSMainThreadExecState::currentState(), 2);
+ const ScriptCallFrame* callFrame = stack->firstNonNativeCallFrame();
+ if (callFrame && callFrame->lineNumber()) {
+ URL source = URL(URL(), callFrame->sourceURL());
+ sourceFile = stripURLForUseInReport(document, source);
+ lineNumber = callFrame->lineNumber();
+ }
+
+ document.enqueueDocumentEvent(SecurityPolicyViolationEvent::create(eventNames().securitypolicyviolationEvent, false, false, documentURI, referrer, blockedURI, violatedDirective, effectiveDirective, originalPolicy, sourceFile, lineNumber));
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorestorageStorageEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/storage/StorageEvent.cpp (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/storage/StorageEvent.cpp        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/storage/StorageEvent.cpp        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -31,12 +31,8 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-StorageEventInit::StorageEventInit()
</del><ins>+Ref<StorageEvent> StorageEvent::createForBindings()
</ins><span class="cx"> {
</span><del>-}
-
-Ref<StorageEvent> StorageEvent::create()
-{
</del><span class="cx"> return adoptRef(*new StorageEvent);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -53,7 +49,7 @@
</span><span class="cx"> return adoptRef(*new StorageEvent(type, key, oldValue, newValue, url, storageArea));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-Ref<StorageEvent> StorageEvent::create(const AtomicString& type, const StorageEventInit& initializer)
</del><ins>+Ref<StorageEvent> StorageEvent::createForBindings(const AtomicString& type, const StorageEventInit& initializer)
</ins><span class="cx"> {
</span><span class="cx"> return adoptRef(*new StorageEvent(type, initializer));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorestorageStorageEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/storage/StorageEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/storage/StorageEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/storage/StorageEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -34,8 +34,6 @@
</span><span class="cx"> class Storage;
</span><span class="cx">
</span><span class="cx"> struct StorageEventInit : public EventInit {
</span><del>- StorageEventInit();
-
</del><span class="cx"> String key;
</span><span class="cx"> String oldValue;
</span><span class="cx"> String newValue;
</span><span class="lines">@@ -45,9 +43,9 @@
</span><span class="cx">
</span><span class="cx"> class StorageEvent : public Event {
</span><span class="cx"> public:
</span><del>- static Ref<StorageEvent> create();
</del><span class="cx"> static Ref<StorageEvent> create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& url, Storage* storageArea);
</span><del>- static Ref<StorageEvent> create(const AtomicString&, const StorageEventInit&);
</del><ins>+ static Ref<StorageEvent> createForBindings();
+ static Ref<StorageEvent> createForBindings(const AtomicString&, const StorageEventInit&);
</ins><span class="cx"> virtual ~StorageEvent();
</span><span class="cx">
</span><span class="cx"> const String& key() const { return m_key; }
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGZoomEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGZoomEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGZoomEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/svg/SVGZoomEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx">
</span><span class="cx"> class SVGZoomEvent : public UIEvent {
</span><span class="cx"> public:
</span><del>- static Ref<SVGZoomEvent> create() { return adoptRef(*new SVGZoomEvent); }
</del><ins>+ static Ref<SVGZoomEvent> createForBindings() { return adoptRef(*new SVGZoomEvent); }
</ins><span class="cx">
</span><span class="cx"> // 'SVGZoomEvent' functions
</span><span class="cx"> FloatRect zoomRectScreen() const;
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXMLHttpRequestProgressEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XMLHttpRequestProgressEvent.h (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XMLHttpRequestProgressEvent.h        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebCore/xml/XMLHttpRequestProgressEvent.h        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -33,15 +33,10 @@
</span><span class="cx">
</span><span class="cx"> class XMLHttpRequestProgressEvent : public ProgressEvent {
</span><span class="cx"> public:
</span><del>- static Ref<XMLHttpRequestProgressEvent> create()
- {
- return adoptRef(*new XMLHttpRequestProgressEvent);
- }
</del><span class="cx"> static Ref<XMLHttpRequestProgressEvent> create(const AtomicString& type, bool lengthComputable = false, unsigned long long loaded = 0, unsigned long long total = 0)
</span><span class="cx"> {
</span><span class="cx"> return adoptRef(*new XMLHttpRequestProgressEvent(type, lengthComputable, loaded, total));
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> // Those 2 synonyms are included for compatibility with Firefox.
</span><span class="cx"> unsigned long long position() const { return loaded(); }
</span><span class="cx"> unsigned long long totalSize() const { return total(); }
</span><span class="lines">@@ -49,7 +44,6 @@
</span><span class="cx"> virtual EventInterface eventInterface() const { return XMLHttpRequestProgressEventInterfaceType; }
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- XMLHttpRequestProgressEvent() { }
</del><span class="cx"> XMLHttpRequestProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
</span><span class="cx"> : ProgressEvent(type, lengthComputable, loaded, total)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebKit2/ChangeLog        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2016-02-10 Jiewen Tan <jiewen_tan@apple.com>
+
+ Rename *Event::create* which creates events for bindings to *Event::createForBindings* and cleanup corresponding paths
+ https://bugs.webkit.org/show_bug.cgi?id=153903
+ <rdar://problem/24518146>
+
+ Reviewed by Darin Adler.
+
+ * WebProcess/WebPage/ios/WebPageIOS.mm:
+ (WebKit::nextAssistableElement):
+
</ins><span class="cx"> 2016-02-10 Anders Carlsson <andersca@apple.com>
</span><span class="cx">
</span><span class="cx"> Add SPI to remove individual user scripts or user style sheets
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageiosWebPageIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm (196399 => 196400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm        2016-02-10 23:57:30 UTC (rev 196399)
+++ trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm        2016-02-11 00:03:11 UTC (rev 196400)
</span><span class="lines">@@ -2348,7 +2348,7 @@
</span><span class="cx"> if (!is<Element>(startNode))
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<KeyboardEvent> key = KeyboardEvent::create();
</del><ins>+ RefPtr<KeyboardEvent> key = KeyboardEvent::createForBindings();
</ins><span class="cx">
</span><span class="cx"> Element* nextElement = downcast<Element>(startNode);
</span><span class="cx"> do {
</span></span></pre>
</div>
</div>
</body>
</html>