<!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>[177264] 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/177264">177264</a></dd>
<dt>Author</dt> <dd>akling@apple.com</dd>
<dt>Date</dt> <dd>2014-12-14 04:23:31 -0800 (Sun, 14 Dec 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Event construction helpers should return Ref instead of PassRefPtr.
&lt;https://webkit.org/b/139625&gt;

Reviewed by Antti Koivisto.

Change all the FooEvent::create() construction helpers to return Ref&lt;FooEvent&gt;
instead of PassRefPtr&lt;FooEvent&gt;.

This allows the compiler to omit null checks at each call site, since we know
that these functions always return valid objects.

* Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h:
(WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
* Modules/encryptedmedia/MediaKeyMessageEvent.h:
(WebCore::MediaKeyMessageEvent::create):
* Modules/encryptedmedia/MediaKeyNeededEvent.h:
(WebCore::MediaKeyNeededEvent::create):
* Modules/gamepad/GamepadEvent.h:
(WebCore::GamepadEvent::create):
* Modules/indexeddb/IDBVersionChangeEvent.h:
(WebCore::IDBVersionChangeEvent::create):
* Modules/indieui/UIRequestEvent.cpp:
(WebCore::UIRequestEvent::create):
* Modules/indieui/UIRequestEvent.h:
* Modules/mediastream/MediaStreamEvent.cpp:
(WebCore::MediaStreamEvent::create):
* Modules/mediastream/MediaStreamEvent.h:
* Modules/mediastream/MediaStreamTrackEvent.cpp:
(WebCore::MediaStreamTrackEvent::create):
* Modules/mediastream/MediaStreamTrackEvent.h:
* Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
(WebCore::RTCDTMFToneChangeEvent::create):
* Modules/mediastream/RTCDTMFToneChangeEvent.h:
* Modules/mediastream/RTCDataChannelEvent.cpp:
(WebCore::RTCDataChannelEvent::create):
* Modules/mediastream/RTCDataChannelEvent.h:
* Modules/mediastream/RTCIceCandidateEvent.cpp:
(WebCore::RTCIceCandidateEvent::create):
* Modules/mediastream/RTCIceCandidateEvent.h:
* Modules/speech/SpeechSynthesisEvent.cpp:
(WebCore::SpeechSynthesisEvent::create):
* Modules/speech/SpeechSynthesisEvent.h:
* Modules/webaudio/AudioProcessingEvent.cpp:
(WebCore::AudioProcessingEvent::create):
* Modules/webaudio/AudioProcessingEvent.h:
* Modules/webaudio/OfflineAudioCompletionEvent.cpp:
(WebCore::OfflineAudioCompletionEvent::create):
* Modules/webaudio/OfflineAudioCompletionEvent.h:
* Modules/websockets/CloseEvent.h:
(WebCore::CloseEvent::create):
* dom/AnimationEvent.h:
* dom/AutocompleteErrorEvent.h:
* dom/BeforeLoadEvent.h:
* dom/BeforeTextInsertedEvent.h:
* dom/BeforeUnloadEvent.h:
* dom/ClipboardEvent.h:
* dom/CompositionEvent.h:
* dom/CustomEvent.h:
* dom/DeviceMotionEvent.h:
* dom/DeviceOrientationEvent.h:
* dom/ErrorEvent.h:
* dom/Event.h:
(WebCore::Event::create):
* dom/FocusEvent.h:
* dom/HashChangeEvent.h:
* dom/KeyboardEvent.h:
* dom/MessageEvent.h:
* dom/MouseEvent.cpp:
(WebCore::MouseEvent::create):
(WebCore::SimulatedMouseEvent::create):
* dom/MouseEvent.h:
(WebCore::MouseEvent::create):
* dom/MutationEvent.h:
* dom/OverflowEvent.h:
* dom/PageTransitionEvent.h:
* dom/PopStateEvent.cpp:
(WebCore::PopStateEvent::create):
* dom/PopStateEvent.h:
* dom/ProgressEvent.h:
(WebCore::ProgressEvent::create):
* dom/TextEvent.cpp:
(WebCore::TextEvent::create):
(WebCore::TextEvent::createForPlainTextPaste):
(WebCore::TextEvent::createForFragmentPaste):
(WebCore::TextEvent::createForDrop):
(WebCore::TextEvent::createForDictation):
* dom/TextEvent.h:
* dom/TouchEvent.h:
* dom/TransitionEvent.h:
* dom/UIEvent.h:
(WebCore::UIEvent::create):
* dom/WebKitAnimationEvent.h:
* dom/WebKitTransitionEvent.h:
* dom/WheelEvent.h:
* html/MediaKeyEvent.h:
* html/canvas/WebGLContextEvent.h:
* html/track/TrackEvent.h:
* storage/StorageEvent.cpp:
(WebCore::StorageEvent::create):
* storage/StorageEvent.h:
* svg/SVGZoomEvent.h:
(WebCore::SVGZoomEvent::create):
* xml/XMLHttpRequestProgressEvent.h:
(WebCore::XMLHttpRequestProgressEvent::create):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesairplayWebKitPlaybackTargetAvailabilityEventh">trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeyMessageEventh">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeyNeededEventh">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesgamepadGamepadEventh">trunk/Source/WebCore/Modules/gamepad/GamepadEvent.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBVersionChangeEventh">trunk/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.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="#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="#trunkSourceWebCoredomAnimationEventh">trunk/Source/WebCore/dom/AnimationEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomAutocompleteErrorEventh">trunk/Source/WebCore/dom/AutocompleteErrorEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomBeforeLoadEventh">trunk/Source/WebCore/dom/BeforeLoadEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomBeforeTextInsertedEventh">trunk/Source/WebCore/dom/BeforeTextInsertedEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomBeforeUnloadEventh">trunk/Source/WebCore/dom/BeforeUnloadEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomClipboardEventh">trunk/Source/WebCore/dom/ClipboardEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomCompositionEventh">trunk/Source/WebCore/dom/CompositionEvent.h</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="#trunkSourceWebCoredomErrorEventh">trunk/Source/WebCore/dom/ErrorEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomEventh">trunk/Source/WebCore/dom/Event.h</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="#trunkSourceWebCoredomKeyboardEventh">trunk/Source/WebCore/dom/KeyboardEvent.h</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="#trunkSourceWebCoredomMutationEventh">trunk/Source/WebCore/dom/MutationEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomOverflowEventh">trunk/Source/WebCore/dom/OverflowEvent.h</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="#trunkSourceWebCoredomProgressEventh">trunk/Source/WebCore/dom/ProgressEvent.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="#trunkSourceWebCoredomTransitionEventh">trunk/Source/WebCore/dom/TransitionEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomUIEventh">trunk/Source/WebCore/dom/UIEvent.h</a></li>
<li><a href="#trunkSourceWebCoredomWebKitAnimationEventh">trunk/Source/WebCore/dom/WebKitAnimationEvent.h</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="#trunkSourceWebCorehtmlMediaKeyEventh">trunk/Source/WebCore/html/MediaKeyEvent.h</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLContextEventh">trunk/Source/WebCore/html/canvas/WebGLContextEvent.h</a></li>
<li><a href="#trunkSourceWebCorehtmltrackTrackEventh">trunk/Source/WebCore/html/track/TrackEvent.h</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="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/ChangeLog        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -1,3 +1,110 @@
</span><ins>+2014-12-14  Andreas Kling  &lt;akling@apple.com&gt;
+
+        Event construction helpers should return Ref instead of PassRefPtr.
+        &lt;https://webkit.org/b/139625&gt;
+
+        Reviewed by Antti Koivisto.
+
+        Change all the FooEvent::create() construction helpers to return Ref&lt;FooEvent&gt;
+        instead of PassRefPtr&lt;FooEvent&gt;.
+
+        This allows the compiler to omit null checks at each call site, since we know
+        that these functions always return valid objects.
+
+        * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h:
+        (WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
+        * Modules/encryptedmedia/MediaKeyMessageEvent.h:
+        (WebCore::MediaKeyMessageEvent::create):
+        * Modules/encryptedmedia/MediaKeyNeededEvent.h:
+        (WebCore::MediaKeyNeededEvent::create):
+        * Modules/gamepad/GamepadEvent.h:
+        (WebCore::GamepadEvent::create):
+        * Modules/indexeddb/IDBVersionChangeEvent.h:
+        (WebCore::IDBVersionChangeEvent::create):
+        * Modules/indieui/UIRequestEvent.cpp:
+        (WebCore::UIRequestEvent::create):
+        * Modules/indieui/UIRequestEvent.h:
+        * Modules/mediastream/MediaStreamEvent.cpp:
+        (WebCore::MediaStreamEvent::create):
+        * Modules/mediastream/MediaStreamEvent.h:
+        * Modules/mediastream/MediaStreamTrackEvent.cpp:
+        (WebCore::MediaStreamTrackEvent::create):
+        * Modules/mediastream/MediaStreamTrackEvent.h:
+        * Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
+        (WebCore::RTCDTMFToneChangeEvent::create):
+        * Modules/mediastream/RTCDTMFToneChangeEvent.h:
+        * Modules/mediastream/RTCDataChannelEvent.cpp:
+        (WebCore::RTCDataChannelEvent::create):
+        * Modules/mediastream/RTCDataChannelEvent.h:
+        * Modules/mediastream/RTCIceCandidateEvent.cpp:
+        (WebCore::RTCIceCandidateEvent::create):
+        * Modules/mediastream/RTCIceCandidateEvent.h:
+        * Modules/speech/SpeechSynthesisEvent.cpp:
+        (WebCore::SpeechSynthesisEvent::create):
+        * Modules/speech/SpeechSynthesisEvent.h:
+        * Modules/webaudio/AudioProcessingEvent.cpp:
+        (WebCore::AudioProcessingEvent::create):
+        * Modules/webaudio/AudioProcessingEvent.h:
+        * Modules/webaudio/OfflineAudioCompletionEvent.cpp:
+        (WebCore::OfflineAudioCompletionEvent::create):
+        * Modules/webaudio/OfflineAudioCompletionEvent.h:
+        * Modules/websockets/CloseEvent.h:
+        (WebCore::CloseEvent::create):
+        * dom/AnimationEvent.h:
+        * dom/AutocompleteErrorEvent.h:
+        * dom/BeforeLoadEvent.h:
+        * dom/BeforeTextInsertedEvent.h:
+        * dom/BeforeUnloadEvent.h:
+        * dom/ClipboardEvent.h:
+        * dom/CompositionEvent.h:
+        * dom/CustomEvent.h:
+        * dom/DeviceMotionEvent.h:
+        * dom/DeviceOrientationEvent.h:
+        * dom/ErrorEvent.h:
+        * dom/Event.h:
+        (WebCore::Event::create):
+        * dom/FocusEvent.h:
+        * dom/HashChangeEvent.h:
+        * dom/KeyboardEvent.h:
+        * dom/MessageEvent.h:
+        * dom/MouseEvent.cpp:
+        (WebCore::MouseEvent::create):
+        (WebCore::SimulatedMouseEvent::create):
+        * dom/MouseEvent.h:
+        (WebCore::MouseEvent::create):
+        * dom/MutationEvent.h:
+        * dom/OverflowEvent.h:
+        * dom/PageTransitionEvent.h:
+        * dom/PopStateEvent.cpp:
+        (WebCore::PopStateEvent::create):
+        * dom/PopStateEvent.h:
+        * dom/ProgressEvent.h:
+        (WebCore::ProgressEvent::create):
+        * dom/TextEvent.cpp:
+        (WebCore::TextEvent::create):
+        (WebCore::TextEvent::createForPlainTextPaste):
+        (WebCore::TextEvent::createForFragmentPaste):
+        (WebCore::TextEvent::createForDrop):
+        (WebCore::TextEvent::createForDictation):
+        * dom/TextEvent.h:
+        * dom/TouchEvent.h:
+        * dom/TransitionEvent.h:
+        * dom/UIEvent.h:
+        (WebCore::UIEvent::create):
+        * dom/WebKitAnimationEvent.h:
+        * dom/WebKitTransitionEvent.h:
+        * dom/WheelEvent.h:
+        * html/MediaKeyEvent.h:
+        * html/canvas/WebGLContextEvent.h:
+        * html/track/TrackEvent.h:
+        * storage/StorageEvent.cpp:
+        (WebCore::StorageEvent::create):
+        * storage/StorageEvent.h:
+        * svg/SVGZoomEvent.h:
+        (WebCore::SVGZoomEvent::create):
+        * xml/XMLHttpRequestProgressEvent.h:
+        (WebCore::XMLHttpRequestProgressEvent::create):
+
</ins><span class="cx"> 2014-12-14  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION(r160182): Fragment parser doesn't close a form element with a close tag
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesairplayWebKitPlaybackTargetAvailabilityEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -44,19 +44,19 @@
</span><span class="cx"> public:
</span><span class="cx">     ~WebKitPlaybackTargetAvailabilityEvent() { }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;WebKitPlaybackTargetAvailabilityEvent&gt; create()
</del><ins>+    static Ref&lt;WebKitPlaybackTargetAvailabilityEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitPlaybackTargetAvailabilityEvent);
</del><ins>+        return adoptRef(*new WebKitPlaybackTargetAvailabilityEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;WebKitPlaybackTargetAvailabilityEvent&gt; create(const AtomicString&amp; eventType, bool available)
</del><ins>+    static Ref&lt;WebKitPlaybackTargetAvailabilityEvent&gt; create(const AtomicString&amp; eventType, bool available)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitPlaybackTargetAvailabilityEvent(eventType, available));
</del><ins>+        return adoptRef(*new WebKitPlaybackTargetAvailabilityEvent(eventType, available));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;WebKitPlaybackTargetAvailabilityEvent&gt; create(const AtomicString&amp; eventType, const WebKitPlaybackTargetAvailabilityEventInit&amp; initializer)
</del><ins>+    static Ref&lt;WebKitPlaybackTargetAvailabilityEvent&gt; create(const AtomicString&amp; eventType, const WebKitPlaybackTargetAvailabilityEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitPlaybackTargetAvailabilityEvent(eventType, initializer));
</del><ins>+        return adoptRef(*new WebKitPlaybackTargetAvailabilityEvent(eventType, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     String availability() const { return m_availability; }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeyMessageEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -45,14 +45,14 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~MediaKeyMessageEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaKeyMessageEvent&gt; create()
</del><ins>+    static Ref&lt;MediaKeyMessageEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MediaKeyMessageEvent);
</del><ins>+        return adoptRef(*new MediaKeyMessageEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaKeyMessageEvent&gt; create(const AtomicString&amp; type, const MediaKeyMessageEventInit&amp; initializer)
</del><ins>+    static Ref&lt;MediaKeyMessageEvent&gt; create(const AtomicString&amp; type, const MediaKeyMessageEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MediaKeyMessageEvent(type, initializer));
</del><ins>+        return adoptRef(*new MediaKeyMessageEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual EventInterface eventInterface() const override;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeyNeededEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -43,14 +43,14 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~MediaKeyNeededEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaKeyNeededEvent&gt; create()
</del><ins>+    static Ref&lt;MediaKeyNeededEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MediaKeyNeededEvent);
</del><ins>+        return adoptRef(*new MediaKeyNeededEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaKeyNeededEvent&gt; create(const AtomicString&amp; type, const MediaKeyNeededEventInit&amp; initializer)
</del><ins>+    static Ref&lt;MediaKeyNeededEvent&gt; create(const AtomicString&amp; type, const MediaKeyNeededEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MediaKeyNeededEvent(type, initializer));
</del><ins>+        return adoptRef(*new MediaKeyNeededEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual EventInterface eventInterface() const override;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgamepadGamepadEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/gamepad/GamepadEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/gamepad/GamepadEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/gamepad/GamepadEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -45,19 +45,19 @@
</span><span class="cx"> public:
</span><span class="cx">     ~GamepadEvent() { }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;GamepadEvent&gt; create()
</del><ins>+    static Ref&lt;GamepadEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new GamepadEvent);
</del><ins>+        return adoptRef(*new GamepadEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;GamepadEvent&gt; create(const AtomicString&amp; eventType, Gamepad&amp; gamepad)
</del><ins>+    static Ref&lt;GamepadEvent&gt; create(const AtomicString&amp; eventType, Gamepad&amp; gamepad)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new GamepadEvent(eventType, gamepad));
</del><ins>+        return adoptRef(*new GamepadEvent(eventType, gamepad));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;GamepadEvent&gt; create(const AtomicString&amp; eventType, const GamepadEventInit&amp; initializer)
</del><ins>+    static Ref&lt;GamepadEvent&gt; create(const AtomicString&amp; eventType, const GamepadEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new GamepadEvent(eventType, initializer));
</del><ins>+        return adoptRef(*new GamepadEvent(eventType, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     Gamepad* gamepad() const { return m_gamepad.get(); }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBVersionChangeEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -38,9 +38,9 @@
</span><span class="cx"> 
</span><span class="cx"> class IDBVersionChangeEvent : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;IDBVersionChangeEvent&gt; create(unsigned long long oldVersion = 0, unsigned long long newVersion = 0, IndexedDB::VersionNullness newVersionNullness = IndexedDB::VersionNullness::Null, const AtomicString&amp; eventType = AtomicString())
</del><ins>+    static Ref&lt;IDBVersionChangeEvent&gt; create(unsigned long long oldVersion = 0, unsigned long long newVersion = 0, IndexedDB::VersionNullness newVersionNullness = IndexedDB::VersionNullness::Null, const AtomicString&amp; eventType = AtomicString())
</ins><span class="cx">     {
</span><del>-        return adoptRef(new IDBVersionChangeEvent(oldVersion, newVersion, newVersionNullness, eventType));
</del><ins>+        return adoptRef(*new IDBVersionChangeEvent(oldVersion, newVersion, newVersionNullness, eventType));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~IDBVersionChangeEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindieuiUIRequestEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indieui/UIRequestEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indieui/UIRequestEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/indieui/UIRequestEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -36,19 +36,19 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">     
</span><del>-PassRefPtr&lt;UIRequestEvent&gt; UIRequestEvent::create()
</del><ins>+Ref&lt;UIRequestEvent&gt; UIRequestEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new UIRequestEvent);
</del><ins>+    return adoptRef(*new UIRequestEvent);
</ins><span class="cx"> }
</span><span class="cx">     
</span><del>-PassRefPtr&lt;UIRequestEvent&gt; UIRequestEvent::create(const AtomicString&amp; type, const UIRequestEventInit&amp; initializer)
</del><ins>+Ref&lt;UIRequestEvent&gt; UIRequestEvent::create(const AtomicString&amp; type, const UIRequestEventInit&amp; initializer)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new UIRequestEvent(type, initializer));
</del><ins>+    return adoptRef(*new UIRequestEvent(type, initializer));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;UIRequestEvent&gt; UIRequestEvent::create(const AtomicString&amp; type, bool bubbles, bool cancelable, PassRefPtr&lt;AbstractView&gt; view, int detail, PassRefPtr&lt;EventTarget&gt; receiver)
</del><ins>+Ref&lt;UIRequestEvent&gt; UIRequestEvent::create(const AtomicString&amp; type, bool bubbles, bool cancelable, PassRefPtr&lt;AbstractView&gt; view, int detail, PassRefPtr&lt;EventTarget&gt; receiver)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new UIRequestEvent(type, bubbles, cancelable, view, detail, receiver));
</del><ins>+    return adoptRef(*new UIRequestEvent(type, bubbles, cancelable, view, detail, receiver));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> UIRequestEvent::UIRequestEvent(const AtomicString&amp; type, const UIRequestEventInit&amp; initializer)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindieuiUIRequestEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indieui/UIRequestEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indieui/UIRequestEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/indieui/UIRequestEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -41,10 +41,10 @@
</span><span class="cx"> 
</span><span class="cx"> class UIRequestEvent : public UIEvent {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;UIRequestEvent&gt; create();
-    static PassRefPtr&lt;UIRequestEvent&gt; create(const AtomicString&amp; type, bool bubbles, bool cancelable, PassRefPtr&lt;AbstractView&gt;, int detail, PassRefPtr&lt;EventTarget&gt; receiver);
</del><ins>+    static Ref&lt;UIRequestEvent&gt; create();
+    static Ref&lt;UIRequestEvent&gt; create(const AtomicString&amp; type, bool bubbles, bool cancelable, PassRefPtr&lt;AbstractView&gt;, int detail, PassRefPtr&lt;EventTarget&gt; receiver);
</ins><span class="cx">     
</span><del>-    static PassRefPtr&lt;UIRequestEvent&gt; create(const AtomicString&amp; eventType, const UIRequestEventInit&amp;);
</del><ins>+    static Ref&lt;UIRequestEvent&gt; create(const AtomicString&amp; eventType, const UIRequestEventInit&amp;);
</ins><span class="cx">     
</span><span class="cx">     virtual ~UIRequestEvent();
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaStreamEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -37,19 +37,19 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaStreamEvent&gt; MediaStreamEvent::create()
</del><ins>+Ref&lt;MediaStreamEvent&gt; MediaStreamEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new MediaStreamEvent);
</del><ins>+    return adoptRef(*new MediaStreamEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaStreamEvent&gt; MediaStreamEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;MediaStream&gt; stream)
</del><ins>+Ref&lt;MediaStreamEvent&gt; MediaStreamEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;MediaStream&gt; stream)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new MediaStreamEvent(type, canBubble, cancelable, stream));
</del><ins>+    return adoptRef(*new MediaStreamEvent(type, canBubble, cancelable, stream));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaStreamEvent&gt; MediaStreamEvent::create(const AtomicString&amp; type, const MediaStreamEventInit&amp; initializer)
</del><ins>+Ref&lt;MediaStreamEvent&gt; MediaStreamEvent::create(const AtomicString&amp; type, const MediaStreamEventInit&amp; initializer)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new MediaStreamEvent(type, initializer));
</del><ins>+    return adoptRef(*new MediaStreamEvent(type, initializer));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> MediaStreamEvent::MediaStreamEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaStreamEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/MediaStreamEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -43,9 +43,9 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~MediaStreamEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaStreamEvent&gt; create();
-    static PassRefPtr&lt;MediaStreamEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;MediaStream&gt;);
-    static PassRefPtr&lt;MediaStreamEvent&gt; create(const AtomicString&amp; type, const MediaStreamEventInit&amp; initializer);
</del><ins>+    static Ref&lt;MediaStreamEvent&gt; create();
+    static Ref&lt;MediaStreamEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;MediaStream&gt;);
+    static Ref&lt;MediaStreamEvent&gt; create(const AtomicString&amp; type, const MediaStreamEventInit&amp; initializer);
</ins><span class="cx"> 
</span><span class="cx">     MediaStream* stream() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaStreamTrackEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -37,19 +37,19 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaStreamTrackEvent&gt; MediaStreamTrackEvent::create()
</del><ins>+Ref&lt;MediaStreamTrackEvent&gt; MediaStreamTrackEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new MediaStreamTrackEvent);
</del><ins>+    return adoptRef(*new MediaStreamTrackEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaStreamTrackEvent&gt; MediaStreamTrackEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;MediaStreamTrack&gt; track)
</del><ins>+Ref&lt;MediaStreamTrackEvent&gt; MediaStreamTrackEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;MediaStreamTrack&gt; track)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new MediaStreamTrackEvent(type, canBubble, cancelable, track));
</del><ins>+    return adoptRef(*new MediaStreamTrackEvent(type, canBubble, cancelable, track));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaStreamTrackEvent&gt; MediaStreamTrackEvent::create(const AtomicString&amp; type, const MediaStreamTrackEventInit&amp; initializer)
</del><ins>+Ref&lt;MediaStreamTrackEvent&gt; MediaStreamTrackEvent::create(const AtomicString&amp; type, const MediaStreamTrackEventInit&amp; initializer)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new MediaStreamTrackEvent(type, initializer));
</del><ins>+    return adoptRef(*new MediaStreamTrackEvent(type, initializer));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> MediaStreamTrackEvent::MediaStreamTrackEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaStreamTrackEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -44,9 +44,9 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~MediaStreamTrackEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaStreamTrackEvent&gt; create();
-    static PassRefPtr&lt;MediaStreamTrackEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;MediaStreamTrack&gt;);
-    static PassRefPtr&lt;MediaStreamTrackEvent&gt; create(const AtomicString&amp; type, const MediaStreamTrackEventInit&amp; initializer);
</del><ins>+    static Ref&lt;MediaStreamTrackEvent&gt; create();
+    static Ref&lt;MediaStreamTrackEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;MediaStreamTrack&gt;);
+    static Ref&lt;MediaStreamTrackEvent&gt; create(const AtomicString&amp; type, const MediaStreamTrackEventInit&amp; initializer);
</ins><span class="cx"> 
</span><span class="cx">     MediaStreamTrack* track() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDTMFToneChangeEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -32,20 +32,20 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCDTMFToneChangeEvent&gt; RTCDTMFToneChangeEvent::create()
</del><ins>+Ref&lt;RTCDTMFToneChangeEvent&gt; RTCDTMFToneChangeEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new RTCDTMFToneChangeEvent);
</del><ins>+    return adoptRef(*new RTCDTMFToneChangeEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCDTMFToneChangeEvent&gt; RTCDTMFToneChangeEvent::create(const String&amp; tone)
</del><ins>+Ref&lt;RTCDTMFToneChangeEvent&gt; RTCDTMFToneChangeEvent::create(const String&amp; tone)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new RTCDTMFToneChangeEvent(tone));
</del><ins>+    return adoptRef(*new RTCDTMFToneChangeEvent(tone));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCDTMFToneChangeEvent&gt; RTCDTMFToneChangeEvent::create(const AtomicString&amp; type, const RTCDTMFToneChangeEventInit&amp; initializer)
</del><ins>+Ref&lt;RTCDTMFToneChangeEvent&gt; RTCDTMFToneChangeEvent::create(const AtomicString&amp; type, const RTCDTMFToneChangeEventInit&amp; initializer)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT_UNUSED(type, type == eventNames().tonechangeEvent);
</span><del>-    return adoptRef(new RTCDTMFToneChangeEvent(initializer));
</del><ins>+    return adoptRef(*new RTCDTMFToneChangeEvent(initializer));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDTMFToneChangeEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDTMFToneChangeEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -41,9 +41,9 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~RTCDTMFToneChangeEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;RTCDTMFToneChangeEvent&gt; create();
-    static PassRefPtr&lt;RTCDTMFToneChangeEvent&gt; create(const String&amp; tone);
-    static PassRefPtr&lt;RTCDTMFToneChangeEvent&gt; create(const AtomicString&amp; type, const RTCDTMFToneChangeEventInit&amp; initializer);
</del><ins>+    static Ref&lt;RTCDTMFToneChangeEvent&gt; create();
+    static Ref&lt;RTCDTMFToneChangeEvent&gt; create(const String&amp; tone);
+    static Ref&lt;RTCDTMFToneChangeEvent&gt; create(const AtomicString&amp; type, const RTCDTMFToneChangeEventInit&amp; initializer);
</ins><span class="cx"> 
</span><span class="cx">     const String&amp; tone() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDataChannelEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -32,17 +32,16 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCDataChannelEvent&gt; RTCDataChannelEvent::create()
</del><ins>+Ref&lt;RTCDataChannelEvent&gt; RTCDataChannelEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new RTCDataChannelEvent);
</del><ins>+    return adoptRef(*new RTCDataChannelEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCDataChannelEvent&gt; RTCDataChannelEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;RTCDataChannel&gt; channel)
</del><ins>+Ref&lt;RTCDataChannelEvent&gt; RTCDataChannelEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;RTCDataChannel&gt; channel)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new RTCDataChannelEvent(type, canBubble, cancelable, channel));
</del><ins>+    return adoptRef(*new RTCDataChannelEvent(type, canBubble, cancelable, channel));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> RTCDataChannelEvent::RTCDataChannelEvent()
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDataChannelEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDataChannelEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -37,8 +37,8 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~RTCDataChannelEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;RTCDataChannelEvent&gt; create();
-    static PassRefPtr&lt;RTCDataChannelEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;RTCDataChannel&gt;);
</del><ins>+    static Ref&lt;RTCDataChannelEvent&gt; create();
+    static Ref&lt;RTCDataChannelEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;RTCDataChannel&gt;);
</ins><span class="cx"> 
</span><span class="cx">     RTCDataChannel* channel() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCIceCandidateEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -33,14 +33,14 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCIceCandidateEvent&gt; RTCIceCandidateEvent::create()
</del><ins>+Ref&lt;RTCIceCandidateEvent&gt; RTCIceCandidateEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new RTCIceCandidateEvent);
</del><ins>+    return adoptRef(*new RTCIceCandidateEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCIceCandidateEvent&gt; RTCIceCandidateEvent::create(bool canBubble, bool cancelable, PassRefPtr&lt;RTCIceCandidate&gt; candidate)
</del><ins>+Ref&lt;RTCIceCandidateEvent&gt; RTCIceCandidateEvent::create(bool canBubble, bool cancelable, PassRefPtr&lt;RTCIceCandidate&gt; candidate)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new RTCIceCandidateEvent(canBubble, cancelable, candidate));
</del><ins>+    return adoptRef(*new RTCIceCandidateEvent(canBubble, cancelable, candidate));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RTCIceCandidateEvent::RTCIceCandidateEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCIceCandidateEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -37,8 +37,8 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~RTCIceCandidateEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;RTCIceCandidateEvent&gt; create();
-    static PassRefPtr&lt;RTCIceCandidateEvent&gt; create(bool canBubble, bool cancelable, PassRefPtr&lt;RTCIceCandidate&gt;);
</del><ins>+    static Ref&lt;RTCIceCandidateEvent&gt; create();
+    static Ref&lt;RTCIceCandidateEvent&gt; create(bool canBubble, bool cancelable, PassRefPtr&lt;RTCIceCandidate&gt;);
</ins><span class="cx"> 
</span><span class="cx">     RTCIceCandidate* candidate() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesspeechSpeechSynthesisEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -30,14 +30,14 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx">     
</span><del>-PassRefPtr&lt;SpeechSynthesisEvent&gt; SpeechSynthesisEvent::create()
</del><ins>+Ref&lt;SpeechSynthesisEvent&gt; SpeechSynthesisEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new SpeechSynthesisEvent());
</del><ins>+    return adoptRef(*new SpeechSynthesisEvent());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;SpeechSynthesisEvent&gt; SpeechSynthesisEvent::create(const AtomicString&amp; type, unsigned long charIndex, float elapsedTime, const String&amp; name)
</del><ins>+Ref&lt;SpeechSynthesisEvent&gt; SpeechSynthesisEvent::create(const AtomicString&amp; type, unsigned long charIndex, float elapsedTime, const String&amp; name)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new SpeechSynthesisEvent(type, charIndex, elapsedTime, name));
</del><ins>+    return adoptRef(*new SpeechSynthesisEvent(type, charIndex, elapsedTime, name));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> SpeechSynthesisEvent::SpeechSynthesisEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesspeechSpeechSynthesisEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/speech/SpeechSynthesisEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -35,8 +35,8 @@
</span><span class="cx">     
</span><span class="cx"> class SpeechSynthesisEvent : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;SpeechSynthesisEvent&gt; create();
-    static PassRefPtr&lt;SpeechSynthesisEvent&gt; create(const AtomicString&amp; type, unsigned long charIndex, float elapsedTime, const String&amp; name);
</del><ins>+    static Ref&lt;SpeechSynthesisEvent&gt; create();
+    static Ref&lt;SpeechSynthesisEvent&gt; create(const AtomicString&amp; type, unsigned long charIndex, float elapsedTime, const String&amp; 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></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioAudioProcessingEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -33,14 +33,14 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;AudioProcessingEvent&gt; AudioProcessingEvent::create()
</del><ins>+Ref&lt;AudioProcessingEvent&gt; AudioProcessingEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new AudioProcessingEvent);
</del><ins>+    return adoptRef(*new AudioProcessingEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;AudioProcessingEvent&gt; AudioProcessingEvent::create(PassRefPtr&lt;AudioBuffer&gt; inputBuffer, PassRefPtr&lt;AudioBuffer&gt; outputBuffer, double playbackTime)
</del><ins>+Ref&lt;AudioProcessingEvent&gt; AudioProcessingEvent::create(PassRefPtr&lt;AudioBuffer&gt; inputBuffer, PassRefPtr&lt;AudioBuffer&gt; outputBuffer, double playbackTime)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new AudioProcessingEvent(inputBuffer, outputBuffer, playbackTime));
</del><ins>+    return adoptRef(*new AudioProcessingEvent(inputBuffer, outputBuffer, playbackTime));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> AudioProcessingEvent::AudioProcessingEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioAudioProcessingEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/webaudio/AudioProcessingEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -36,8 +36,8 @@
</span><span class="cx">     
</span><span class="cx"> class AudioProcessingEvent : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;AudioProcessingEvent&gt; create();
-    static PassRefPtr&lt;AudioProcessingEvent&gt; create(PassRefPtr&lt;AudioBuffer&gt; inputBuffer, PassRefPtr&lt;AudioBuffer&gt; outputBuffer, double playbackTime);
</del><ins>+    static Ref&lt;AudioProcessingEvent&gt; create();
+    static Ref&lt;AudioProcessingEvent&gt; create(PassRefPtr&lt;AudioBuffer&gt; inputBuffer, PassRefPtr&lt;AudioBuffer&gt; outputBuffer, double playbackTime);
</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 (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -33,14 +33,14 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;OfflineAudioCompletionEvent&gt; OfflineAudioCompletionEvent::create()
</del><ins>+Ref&lt;OfflineAudioCompletionEvent&gt; OfflineAudioCompletionEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new OfflineAudioCompletionEvent);
</del><ins>+    return adoptRef(*new OfflineAudioCompletionEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;OfflineAudioCompletionEvent&gt; OfflineAudioCompletionEvent::create(PassRefPtr&lt;AudioBuffer&gt; renderedBuffer)
</del><ins>+Ref&lt;OfflineAudioCompletionEvent&gt; OfflineAudioCompletionEvent::create(PassRefPtr&lt;AudioBuffer&gt; renderedBuffer)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new OfflineAudioCompletionEvent(renderedBuffer));
</del><ins>+    return adoptRef(*new OfflineAudioCompletionEvent(renderedBuffer));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> OfflineAudioCompletionEvent::OfflineAudioCompletionEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioOfflineAudioCompletionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioCompletionEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -36,8 +36,8 @@
</span><span class="cx">     
</span><span class="cx"> class OfflineAudioCompletionEvent : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;OfflineAudioCompletionEvent&gt; create();
-    static PassRefPtr&lt;OfflineAudioCompletionEvent&gt; create(PassRefPtr&lt;AudioBuffer&gt; renderedBuffer);
</del><ins>+    static Ref&lt;OfflineAudioCompletionEvent&gt; create();
+    static Ref&lt;OfflineAudioCompletionEvent&gt; create(PassRefPtr&lt;AudioBuffer&gt; renderedBuffer);
</ins><span class="cx">     
</span><span class="cx">     virtual ~OfflineAudioCompletionEvent();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsCloseEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/CloseEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/CloseEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/Modules/websockets/CloseEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -50,19 +50,19 @@
</span><span class="cx"> 
</span><span class="cx"> class CloseEvent : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;CloseEvent&gt; create()
</del><ins>+    static Ref&lt;CloseEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new CloseEvent());
</del><ins>+        return adoptRef(*new CloseEvent());
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;CloseEvent&gt; create(bool wasClean, unsigned short code, const String&amp; reason)
</del><ins>+    static Ref&lt;CloseEvent&gt; create(bool wasClean, unsigned short code, const String&amp; reason)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new CloseEvent(wasClean, code, reason));
</del><ins>+        return adoptRef(*new CloseEvent(wasClean, code, reason));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;CloseEvent&gt; create(const AtomicString&amp; type, const CloseEventInit&amp; initializer)
</del><ins>+    static Ref&lt;CloseEvent&gt; create(const AtomicString&amp; type, const CloseEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new CloseEvent(type, initializer));
</del><ins>+        return adoptRef(*new CloseEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     bool wasClean() const { return m_wasClean; }
</span></span></pre></div>
<a id="trunkSourceWebCoredomAnimationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/AnimationEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/AnimationEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/AnimationEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -39,17 +39,17 @@
</span><span class="cx"> 
</span><span class="cx"> class AnimationEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;AnimationEvent&gt; create()
</del><ins>+    static Ref&lt;AnimationEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new AnimationEvent);
</del><ins>+        return adoptRef(*new AnimationEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;AnimationEvent&gt; create(const AtomicString&amp; type, const String&amp; animationName, double elapsedTime)
</del><ins>+    static Ref&lt;AnimationEvent&gt; create(const AtomicString&amp; type, const String&amp; animationName, double elapsedTime)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new AnimationEvent(type, animationName, elapsedTime));
</del><ins>+        return adoptRef(*new AnimationEvent(type, animationName, elapsedTime));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;AnimationEvent&gt; create(const AtomicString&amp; type, const AnimationEventInit&amp; initializer)
</del><ins>+    static Ref&lt;AnimationEvent&gt; create(const AtomicString&amp; type, const AnimationEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new AnimationEvent(type, initializer));
</del><ins>+        return adoptRef(*new AnimationEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~AnimationEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomAutocompleteErrorEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/AutocompleteErrorEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/AutocompleteErrorEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/AutocompleteErrorEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -38,19 +38,19 @@
</span><span class="cx"> 
</span><span class="cx"> class AutocompleteErrorEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;AutocompleteErrorEvent&gt; create()
</del><ins>+    static Ref&lt;AutocompleteErrorEvent&gt; create()
</ins><span class="cx">     {
</span><span class="cx">         return adoptRef(new AutocompleteErrorEvent);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;AutocompleteErrorEvent&gt; create(const String&amp; reason)
</del><ins>+    static Ref&lt;AutocompleteErrorEvent&gt; create(const String&amp; reason)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new AutocompleteErrorEvent(reason));
</del><ins>+        return adoptRef(*new AutocompleteErrorEvent(reason));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;AutocompleteErrorEvent&gt; create(const AtomicString&amp; eventType, const AutocompleteErrorEventInit&amp; initializer)
</del><ins>+    static Ref&lt;AutocompleteErrorEvent&gt; create(const AtomicString&amp; eventType, const AutocompleteErrorEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new AutocompleteErrorEvent(eventType, initializer));
</del><ins>+        return adoptRef(*new AutocompleteErrorEvent(eventType, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     const String&amp; reason() const { return m_reason; }
</span></span></pre></div>
<a id="trunkSourceWebCoredomBeforeLoadEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/BeforeLoadEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/BeforeLoadEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/BeforeLoadEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -42,19 +42,19 @@
</span><span class="cx"> 
</span><span class="cx"> class BeforeLoadEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;BeforeLoadEvent&gt; create()
</del><ins>+    static Ref&lt;BeforeLoadEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new BeforeLoadEvent);
</del><ins>+        return adoptRef(*new BeforeLoadEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;BeforeLoadEvent&gt; create(const String&amp; url)
</del><ins>+    static Ref&lt;BeforeLoadEvent&gt; create(const String&amp; url)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new BeforeLoadEvent(url));
</del><ins>+        return adoptRef(*new BeforeLoadEvent(url));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;BeforeLoadEvent&gt; create(const AtomicString&amp; type, const BeforeLoadEventInit&amp; initializer)
</del><ins>+    static Ref&lt;BeforeLoadEvent&gt; create(const AtomicString&amp; type, const BeforeLoadEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new BeforeLoadEvent(type, initializer));
</del><ins>+        return adoptRef(*new BeforeLoadEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     const String&amp; url() const { return m_url; }
</span></span></pre></div>
<a id="trunkSourceWebCoredomBeforeTextInsertedEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/BeforeTextInsertedEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/BeforeTextInsertedEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/BeforeTextInsertedEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -34,9 +34,9 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~BeforeTextInsertedEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;BeforeTextInsertedEvent&gt; create(const String&amp; text)
</del><ins>+    static Ref&lt;BeforeTextInsertedEvent&gt; create(const String&amp; text)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new BeforeTextInsertedEvent(text));
</del><ins>+        return adoptRef(*new BeforeTextInsertedEvent(text));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual EventInterface eventInterface() const override;
</span></span></pre></div>
<a id="trunkSourceWebCoredomBeforeUnloadEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/BeforeUnloadEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/BeforeUnloadEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/BeforeUnloadEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -33,9 +33,9 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~BeforeUnloadEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;BeforeUnloadEvent&gt; create()
</del><ins>+    static Ref&lt;BeforeUnloadEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new BeforeUnloadEvent);
</del><ins>+        return adoptRef(*new BeforeUnloadEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     String returnValue() const { return m_returnValue; }
</span></span></pre></div>
<a id="trunkSourceWebCoredomClipboardEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ClipboardEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ClipboardEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/ClipboardEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -34,13 +34,13 @@
</span><span class="cx">     public:
</span><span class="cx">         virtual ~ClipboardEvent();
</span><span class="cx"> 
</span><del>-        static PassRefPtr&lt;ClipboardEvent&gt; create()
</del><ins>+        static Ref&lt;ClipboardEvent&gt; create()
</ins><span class="cx">         {
</span><del>-            return adoptRef(new ClipboardEvent);
</del><ins>+            return adoptRef(*new ClipboardEvent);
</ins><span class="cx">         }
</span><del>-        static PassRefPtr&lt;ClipboardEvent&gt; create(const AtomicString&amp; type, bool canBubbleArg, bool cancelableArg, PassRefPtr&lt;DataTransfer&gt; clipboardArg)
</del><ins>+        static Ref&lt;ClipboardEvent&gt; create(const AtomicString&amp; type, bool canBubbleArg, bool cancelableArg, PassRefPtr&lt;DataTransfer&gt; clipboardArg)
</ins><span class="cx">         {
</span><del>-            return adoptRef(new ClipboardEvent(type, canBubbleArg, cancelableArg, clipboardArg));
</del><ins>+            return adoptRef(*new ClipboardEvent(type, canBubbleArg, cancelableArg, clipboardArg));
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         virtual DataTransfer* internalDataTransfer() const override { return m_dataTransfer.get(); }
</span></span></pre></div>
<a id="trunkSourceWebCoredomCompositionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/CompositionEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/CompositionEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/CompositionEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -39,19 +39,19 @@
</span><span class="cx"> 
</span><span class="cx"> class CompositionEvent final : public UIEvent {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;CompositionEvent&gt; create()
</del><ins>+    static Ref&lt;CompositionEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new CompositionEvent);
</del><ins>+        return adoptRef(*new CompositionEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;CompositionEvent&gt; create(const AtomicString&amp; type, PassRefPtr&lt;AbstractView&gt; view, const String&amp; data)
</del><ins>+    static Ref&lt;CompositionEvent&gt; create(const AtomicString&amp; type, PassRefPtr&lt;AbstractView&gt; view, const String&amp; data)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new CompositionEvent(type, view, data));
</del><ins>+        return adoptRef(*new CompositionEvent(type, view, data));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;CompositionEvent&gt; create(const AtomicString&amp; type, const CompositionEventInit&amp; initializer)
</del><ins>+    static Ref&lt;CompositionEvent&gt; create(const AtomicString&amp; type, const CompositionEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new CompositionEvent(type, initializer));
</del><ins>+        return adoptRef(*new CompositionEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~CompositionEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomCustomEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/CustomEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/CustomEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/CustomEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -42,14 +42,14 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~CustomEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;CustomEvent&gt; create()
</del><ins>+    static Ref&lt;CustomEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new CustomEvent);
</del><ins>+        return adoptRef(*new CustomEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;CustomEvent&gt; create(const AtomicString&amp; type, const CustomEventInit&amp; initializer)
</del><ins>+    static Ref&lt;CustomEvent&gt; create(const AtomicString&amp; type, const CustomEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new CustomEvent(type, initializer));
</del><ins>+        return adoptRef(*new CustomEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     void initCustomEvent(const AtomicString&amp; type, bool canBubble, bool cancelable, const Deprecated::ScriptValue&amp; detail);
</span></span></pre></div>
<a id="trunkSourceWebCoredomDeviceMotionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DeviceMotionEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DeviceMotionEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/DeviceMotionEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -35,13 +35,13 @@
</span><span class="cx"> class DeviceMotionEvent final : public Event {
</span><span class="cx"> public:
</span><span class="cx">     virtual ~DeviceMotionEvent();
</span><del>-    static PassRefPtr&lt;DeviceMotionEvent&gt; create()
</del><ins>+    static Ref&lt;DeviceMotionEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new DeviceMotionEvent);
</del><ins>+        return adoptRef(*new DeviceMotionEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;DeviceMotionEvent&gt; create(const AtomicString&amp; eventType, DeviceMotionData* deviceMotionData)
</del><ins>+    static Ref&lt;DeviceMotionEvent&gt; create(const AtomicString&amp; eventType, DeviceMotionData* deviceMotionData)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new DeviceMotionEvent(eventType, deviceMotionData));
</del><ins>+        return adoptRef(*new DeviceMotionEvent(eventType, deviceMotionData));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     void initDeviceMotionEvent(const AtomicString&amp; type, bool bubbles, bool cancelable, DeviceMotionData*);
</span></span></pre></div>
<a id="trunkSourceWebCoredomDeviceOrientationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DeviceOrientationEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DeviceOrientationEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/DeviceOrientationEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -35,13 +35,13 @@
</span><span class="cx"> class DeviceOrientationEvent final : public Event {
</span><span class="cx"> public:
</span><span class="cx">     virtual ~DeviceOrientationEvent();
</span><del>-    static PassRefPtr&lt;DeviceOrientationEvent&gt; create()
</del><ins>+    static Ref&lt;DeviceOrientationEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new DeviceOrientationEvent);
</del><ins>+        return adoptRef(*new DeviceOrientationEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;DeviceOrientationEvent&gt; create(const AtomicString&amp; eventType, DeviceOrientationData* orientation)
</del><ins>+    static Ref&lt;DeviceOrientationEvent&gt; create(const AtomicString&amp; eventType, DeviceOrientationData* orientation)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new DeviceOrientationEvent(eventType, orientation));
</del><ins>+        return adoptRef(*new DeviceOrientationEvent(eventType, orientation));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     void initDeviceOrientationEvent(const AtomicString&amp; type, bool bubbles, bool cancelable, DeviceOrientationData*);
</span></span></pre></div>
<a id="trunkSourceWebCoredomErrorEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ErrorEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ErrorEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/ErrorEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -47,17 +47,17 @@
</span><span class="cx"> 
</span><span class="cx"> class ErrorEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;ErrorEvent&gt; create()
</del><ins>+    static Ref&lt;ErrorEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new ErrorEvent);
</del><ins>+        return adoptRef(*new ErrorEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;ErrorEvent&gt; create(const String&amp; message, const String&amp; fileName, unsigned lineNumber, unsigned columnNumber)
</del><ins>+    static Ref&lt;ErrorEvent&gt; create(const String&amp; message, const String&amp; fileName, unsigned lineNumber, unsigned columnNumber)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new ErrorEvent(message, fileName, lineNumber, columnNumber));
</del><ins>+        return adoptRef(*new ErrorEvent(message, fileName, lineNumber, columnNumber));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;ErrorEvent&gt; create(const AtomicString&amp; type, const ErrorEventInit&amp; initializer)
</del><ins>+    static Ref&lt;ErrorEvent&gt; create(const AtomicString&amp; type, const ErrorEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new ErrorEvent(type, initializer));
</del><ins>+        return adoptRef(*new ErrorEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx">     virtual ~ErrorEvent();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Event.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Event.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/Event.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -83,18 +83,18 @@
</span><span class="cx">         CHANGE              = 32768
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;Event&gt; create()
</del><ins>+    static Ref&lt;Event&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new Event);
</del><ins>+        return adoptRef(*new Event);
</ins><span class="cx">     }
</span><del>-    WEBCORE_EXPORT static PassRefPtr&lt;Event&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable)
</del><ins>+    WEBCORE_EXPORT static Ref&lt;Event&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new Event(type, canBubble, cancelable));
</del><ins>+        return adoptRef(*new Event(type, canBubble, cancelable));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;Event&gt; create(const AtomicString&amp; type, const EventInit&amp; initializer)
</del><ins>+    static Ref&lt;Event&gt; create(const AtomicString&amp; type, const EventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new Event(type, initializer));
</del><ins>+        return adoptRef(*new Event(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~Event();
</span></span></pre></div>
<a id="trunkSourceWebCoredomFocusEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/FocusEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/FocusEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/FocusEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -41,19 +41,19 @@
</span><span class="cx"> 
</span><span class="cx"> class FocusEvent final : public UIEvent {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;FocusEvent&gt; create()
</del><ins>+    static Ref&lt;FocusEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new FocusEvent);
</del><ins>+        return adoptRef(*new FocusEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;FocusEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;AbstractView&gt; view, int detail, PassRefPtr&lt;EventTarget&gt; relatedTarget)
</del><ins>+    static Ref&lt;FocusEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;AbstractView&gt; view, int detail, PassRefPtr&lt;EventTarget&gt; relatedTarget)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget));
</del><ins>+        return adoptRef(*new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;FocusEvent&gt; create(const AtomicString&amp; type, const FocusEventInit&amp; initializer)
</del><ins>+    static Ref&lt;FocusEvent&gt; create(const AtomicString&amp; type, const FocusEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new FocusEvent(type, initializer));
</del><ins>+        return adoptRef(*new FocusEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual EventTarget* relatedTarget() const override { return m_relatedTarget.get(); }
</span></span></pre></div>
<a id="trunkSourceWebCoredomHashChangeEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/HashChangeEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/HashChangeEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/HashChangeEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -37,19 +37,19 @@
</span><span class="cx"> 
</span><span class="cx"> class HashChangeEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;HashChangeEvent&gt; create()
</del><ins>+    static Ref&lt;HashChangeEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new HashChangeEvent);
</del><ins>+        return adoptRef(*new HashChangeEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;HashChangeEvent&gt; create(const String&amp; oldURL, const String&amp; newURL)
</del><ins>+    static Ref&lt;HashChangeEvent&gt; create(const String&amp; oldURL, const String&amp; newURL)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new HashChangeEvent(oldURL, newURL));
</del><ins>+        return adoptRef(*new HashChangeEvent(oldURL, newURL));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;HashChangeEvent&gt; create(const AtomicString&amp; type, const HashChangeEventInit&amp; initializer)
</del><ins>+    static Ref&lt;HashChangeEvent&gt; create(const AtomicString&amp; type, const HashChangeEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new HashChangeEvent(type, initializer));
</del><ins>+        return adoptRef(*new HashChangeEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     void initHashChangeEvent(const AtomicString&amp; eventType, bool canBubble, bool cancelable, const String&amp; oldURL, const String&amp; newURL)
</span></span></pre></div>
<a id="trunkSourceWebCoredomKeyboardEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/KeyboardEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/KeyboardEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/KeyboardEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -57,19 +57,19 @@
</span><span class="cx">         // DOM_KEY_LOCATION_JOYSTICK   = 0x05
</span><span class="cx">     };
</span><span class="cx">         
</span><del>-    static PassRefPtr&lt;KeyboardEvent&gt; create()
</del><ins>+    static Ref&lt;KeyboardEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new KeyboardEvent);
</del><ins>+        return adoptRef(*new KeyboardEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;KeyboardEvent&gt; create(const PlatformKeyboardEvent&amp; platformEvent, AbstractView* view)
</del><ins>+    static Ref&lt;KeyboardEvent&gt; create(const PlatformKeyboardEvent&amp; platformEvent, AbstractView* view)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new KeyboardEvent(platformEvent, view));
</del><ins>+        return adoptRef(*new KeyboardEvent(platformEvent, view));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;KeyboardEvent&gt; create(const AtomicString&amp; type, const KeyboardEventInit&amp; initializer)
</del><ins>+    static Ref&lt;KeyboardEvent&gt; create(const AtomicString&amp; type, const KeyboardEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new KeyboardEvent(type, initializer));
</del><ins>+        return adoptRef(*new KeyboardEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~KeyboardEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomMessageEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MessageEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MessageEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/MessageEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -53,33 +53,33 @@
</span><span class="cx"> 
</span><span class="cx"> class MessageEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;MessageEvent&gt; create()
</del><ins>+    static Ref&lt;MessageEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MessageEvent);
</del><ins>+        return adoptRef(*new MessageEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;MessageEvent&gt; create(std::unique_ptr&lt;MessagePortArray&gt; ports, const Deprecated::ScriptValue&amp; data = Deprecated::ScriptValue(), const String&amp; origin = String(), const String&amp; lastEventId = String(), PassRefPtr&lt;EventTarget&gt; source = 0)
</del><ins>+    static Ref&lt;MessageEvent&gt; create(std::unique_ptr&lt;MessagePortArray&gt; ports, const Deprecated::ScriptValue&amp; data = Deprecated::ScriptValue(), const String&amp; origin = String(), const String&amp; lastEventId = String(), PassRefPtr&lt;EventTarget&gt; source = 0)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MessageEvent(data, origin, lastEventId, source, WTF::move(ports)));
</del><ins>+        return adoptRef(*new MessageEvent(data, origin, lastEventId, source, WTF::move(ports)));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;MessageEvent&gt; create(std::unique_ptr&lt;MessagePortArray&gt; ports, PassRefPtr&lt;SerializedScriptValue&gt; data, const String&amp; origin = String(), const String&amp; lastEventId = String(), PassRefPtr&lt;EventTarget&gt; source = 0)
</del><ins>+    static Ref&lt;MessageEvent&gt; create(std::unique_ptr&lt;MessagePortArray&gt; ports, PassRefPtr&lt;SerializedScriptValue&gt; data, const String&amp; origin = String(), const String&amp; lastEventId = String(), PassRefPtr&lt;EventTarget&gt; source = 0)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MessageEvent(data, origin, lastEventId, source, WTF::move(ports)));
</del><ins>+        return adoptRef(*new MessageEvent(data, origin, lastEventId, source, WTF::move(ports)));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;MessageEvent&gt; create(const String&amp; data, const String&amp; origin = String())
</del><ins>+    static Ref&lt;MessageEvent&gt; create(const String&amp; data, const String&amp; origin = String())
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MessageEvent(data, origin));
</del><ins>+        return adoptRef(*new MessageEvent(data, origin));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;MessageEvent&gt; create(PassRefPtr&lt;Blob&gt; data, const String&amp; origin = String())
</del><ins>+    static Ref&lt;MessageEvent&gt; create(PassRefPtr&lt;Blob&gt; data, const String&amp; origin = String())
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MessageEvent(data, origin));
</del><ins>+        return adoptRef(*new MessageEvent(data, origin));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;MessageEvent&gt; create(PassRefPtr&lt;ArrayBuffer&gt; data, const String&amp; origin = String())
</del><ins>+    static Ref&lt;MessageEvent&gt; create(PassRefPtr&lt;ArrayBuffer&gt; data, const String&amp; origin = String())
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MessageEvent(data, origin));
</del><ins>+        return adoptRef(*new MessageEvent(data, origin));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;MessageEvent&gt; create(const AtomicString&amp; type, const MessageEventInit&amp; initializer)
</del><ins>+    static Ref&lt;MessageEvent&gt; create(const AtomicString&amp; type, const MessageEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MessageEvent(type, initializer));
</del><ins>+        return adoptRef(*new MessageEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx">     virtual ~MessageEvent();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomMouseEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MouseEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MouseEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/MouseEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -47,12 +47,12 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MouseEvent&gt; MouseEvent::create(const AtomicString&amp; type, const MouseEventInit&amp; initializer)
</del><ins>+Ref&lt;MouseEvent&gt; MouseEvent::create(const AtomicString&amp; type, const MouseEventInit&amp; initializer)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new MouseEvent(type, initializer));
</del><ins>+    return adoptRef(*new MouseEvent(type, initializer));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MouseEvent&gt; MouseEvent::create(const AtomicString&amp; eventType, PassRefPtr&lt;AbstractView&gt; view, const PlatformMouseEvent&amp; event, int detail, PassRefPtr&lt;Node&gt; relatedTarget)
</del><ins>+Ref&lt;MouseEvent&gt; MouseEvent::create(const AtomicString&amp; eventType, PassRefPtr&lt;AbstractView&gt; view, const PlatformMouseEvent&amp; event, int detail, PassRefPtr&lt;Node&gt; relatedTarget)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(event.type() == PlatformEvent::MouseMoved || event.button() != NoButton);
</span><span class="cx"> 
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">         relatedTarget);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MouseEvent&gt; MouseEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, double timestamp, PassRefPtr&lt;AbstractView&gt; view,
</del><ins>+Ref&lt;MouseEvent&gt; MouseEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, double timestamp, PassRefPtr&lt;AbstractView&gt; view,
</ins><span class="cx">     int detail, int screenX, int screenY, int pageX, int pageY,
</span><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><span class="cx">     int movementX, int movementY,
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx">         ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget, 0, false);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MouseEvent&gt; MouseEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, double timestamp, PassRefPtr&lt;AbstractView&gt; view,
</del><ins>+Ref&lt;MouseEvent&gt; MouseEvent::create(const AtomicString&amp; type, bool canBubble, bool cancelable, double timestamp, PassRefPtr&lt;AbstractView&gt; view,
</ins><span class="cx">     int detail, int screenX, int screenY, int pageX, int pageY,
</span><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><span class="cx">     int movementX, int movementY,
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx">     bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
</span><span class="cx">     PassRefPtr&lt;EventTarget&gt; relatedTarget, PassRefPtr&lt;DataTransfer&gt; dataTransfer, bool isSimulated)
</span><span class="cx"> {
</span><del>-    return adoptRef(new MouseEvent(type, canBubble, cancelable, timestamp, view,
</del><ins>+    return adoptRef(*new MouseEvent(type, canBubble, cancelable, timestamp, view,
</ins><span class="cx">         detail, screenX, screenY, pageX, pageY,
</span><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><span class="cx">         movementX, movementY,
</span><span class="lines">@@ -257,9 +257,9 @@
</span><span class="cx">     return clonedMouseEvent.release();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;SimulatedMouseEvent&gt; SimulatedMouseEvent::create(const AtomicString&amp; eventType, PassRefPtr&lt;AbstractView&gt; view, PassRefPtr&lt;Event&gt; underlyingEvent, Element* target)
</del><ins>+Ref&lt;SimulatedMouseEvent&gt; SimulatedMouseEvent::create(const AtomicString&amp; eventType, PassRefPtr&lt;AbstractView&gt; view, PassRefPtr&lt;Event&gt; underlyingEvent, Element* target)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new SimulatedMouseEvent(eventType, view, underlyingEvent, target));
</del><ins>+    return adoptRef(*new SimulatedMouseEvent(eventType, view, underlyingEvent, target));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> SimulatedMouseEvent::~SimulatedMouseEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoredomMouseEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MouseEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MouseEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/MouseEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -48,12 +48,12 @@
</span><span class="cx"> 
</span><span class="cx"> class MouseEvent : public MouseRelatedEvent {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;MouseEvent&gt; create()
</del><ins>+    static Ref&lt;MouseEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MouseEvent);
</del><ins>+        return adoptRef(*new MouseEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    WEBCORE_EXPORT static PassRefPtr&lt;MouseEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, double timestamp, PassRefPtr&lt;AbstractView&gt;,
</del><ins>+    WEBCORE_EXPORT static Ref&lt;MouseEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, double timestamp, PassRefPtr&lt;AbstractView&gt;,
</ins><span class="cx">         int detail, int screenX, int screenY, int pageX, int pageY,
</span><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><span class="cx">         int movementX, int movementY,
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx">         bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
</span><span class="cx">         PassRefPtr&lt;EventTarget&gt; relatedTarget);
</span><span class="cx"> 
</span><del>-    WEBCORE_EXPORT static PassRefPtr&lt;MouseEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, double timestamp, PassRefPtr&lt;AbstractView&gt;,
</del><ins>+    WEBCORE_EXPORT static Ref&lt;MouseEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, double timestamp, PassRefPtr&lt;AbstractView&gt;,
</ins><span class="cx">         int detail, int screenX, int screenY, int pageX, int pageY,
</span><span class="cx"> #if ENABLE(POINTER_LOCK)
</span><span class="cx">         int movementX, int movementY,
</span><span class="lines">@@ -69,9 +69,9 @@
</span><span class="cx">         bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
</span><span class="cx">         PassRefPtr&lt;EventTarget&gt; relatedTarget, PassRefPtr&lt;DataTransfer&gt;, bool isSimulated = false);
</span><span class="cx"> 
</span><del>-    WEBCORE_EXPORT static PassRefPtr&lt;MouseEvent&gt; create(const AtomicString&amp; eventType, PassRefPtr&lt;AbstractView&gt;, const PlatformMouseEvent&amp;, int detail, PassRefPtr&lt;Node&gt; relatedTarget);
</del><ins>+    WEBCORE_EXPORT static Ref&lt;MouseEvent&gt; create(const AtomicString&amp; eventType, PassRefPtr&lt;AbstractView&gt;, const PlatformMouseEvent&amp;, int detail, PassRefPtr&lt;Node&gt; relatedTarget);
</ins><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MouseEvent&gt; create(const AtomicString&amp; eventType, const MouseEventInit&amp;);
</del><ins>+    static Ref&lt;MouseEvent&gt; create(const AtomicString&amp; eventType, const MouseEventInit&amp;);
</ins><span class="cx"> 
</span><span class="cx">     virtual ~MouseEvent();
</span><span class="cx"> 
</span><span class="lines">@@ -127,7 +127,7 @@
</span><span class="cx"> 
</span><span class="cx"> class SimulatedMouseEvent final : public MouseEvent {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;SimulatedMouseEvent&gt; create(const AtomicString&amp; eventType, PassRefPtr&lt;AbstractView&gt;, PassRefPtr&lt;Event&gt; underlyingEvent, Element* target);
</del><ins>+    static Ref&lt;SimulatedMouseEvent&gt; create(const AtomicString&amp; eventType, PassRefPtr&lt;AbstractView&gt;, PassRefPtr&lt;Event&gt; underlyingEvent, Element* target);
</ins><span class="cx">     virtual ~SimulatedMouseEvent();
</span><span class="cx"> 
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCoredomMutationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/MutationEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/MutationEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/MutationEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -39,15 +39,15 @@
</span><span class="cx">             REMOVAL         = 3
</span><span class="cx">         };
</span><span class="cx"> 
</span><del>-        static PassRefPtr&lt;MutationEvent&gt; create()
</del><ins>+        static Ref&lt;MutationEvent&gt; create()
</ins><span class="cx">         {
</span><del>-            return adoptRef(new MutationEvent);
</del><ins>+            return adoptRef(*new MutationEvent);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-        static PassRefPtr&lt;MutationEvent&gt; create(const AtomicString&amp; type, bool canBubble, PassRefPtr&lt;Node&gt; relatedNode = 0,
</del><ins>+        static Ref&lt;MutationEvent&gt; create(const AtomicString&amp; type, bool canBubble, PassRefPtr&lt;Node&gt; relatedNode = 0,
</ins><span class="cx">             const String&amp; prevValue = String(), const String&amp; newValue = String(), const String&amp; attrName = String(), unsigned short attrChange = 0)
</span><span class="cx">         {
</span><del>-            return adoptRef(new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange));
</del><ins>+            return adoptRef(*new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange));
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         void initMutationEvent(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;Node&gt; relatedNode,
</span></span></pre></div>
<a id="trunkSourceWebCoredomOverflowEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/OverflowEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/OverflowEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/OverflowEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -46,17 +46,17 @@
</span><span class="cx">         BOTH       = 2
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;OverflowEvent&gt; create()
</del><ins>+    static Ref&lt;OverflowEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new OverflowEvent);
</del><ins>+        return adoptRef(*new OverflowEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;OverflowEvent&gt; create(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow)
</del><ins>+    static Ref&lt;OverflowEvent&gt; create(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new OverflowEvent(horizontalOverflowChanged, horizontalOverflow, verticalOverflowChanged, verticalOverflow));
</del><ins>+        return adoptRef(*new OverflowEvent(horizontalOverflowChanged, horizontalOverflow, verticalOverflowChanged, verticalOverflow));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;OverflowEvent&gt; create(const AtomicString&amp; type, const OverflowEventInit&amp; initializer)
</del><ins>+    static Ref&lt;OverflowEvent&gt; create(const AtomicString&amp; type, const OverflowEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new OverflowEvent(type, initializer));
</del><ins>+        return adoptRef(*new OverflowEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     void initOverflowEvent(unsigned short orient, bool horizontalOverflow, bool verticalOverflow);
</span></span></pre></div>
<a id="trunkSourceWebCoredomPageTransitionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PageTransitionEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PageTransitionEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/PageTransitionEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -38,17 +38,17 @@
</span><span class="cx"> 
</span><span class="cx"> class PageTransitionEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;PageTransitionEvent&gt; create()
</del><ins>+    static Ref&lt;PageTransitionEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new PageTransitionEvent);
</del><ins>+        return adoptRef(*new PageTransitionEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;PageTransitionEvent&gt; create(const AtomicString&amp; type, bool persisted)
</del><ins>+    static Ref&lt;PageTransitionEvent&gt; create(const AtomicString&amp; type, bool persisted)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new PageTransitionEvent(type, persisted));
</del><ins>+        return adoptRef(*new PageTransitionEvent(type, persisted));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;PageTransitionEvent&gt; create(const AtomicString&amp; type, const PageTransitionEventInit&amp; initializer)
</del><ins>+    static Ref&lt;PageTransitionEvent&gt; create(const AtomicString&amp; type, const PageTransitionEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new PageTransitionEvent(type, initializer));
</del><ins>+        return adoptRef(*new PageTransitionEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~PageTransitionEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomPopStateEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PopStateEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PopStateEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/PopStateEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -64,19 +64,19 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;PopStateEvent&gt; PopStateEvent::create()
</del><ins>+Ref&lt;PopStateEvent&gt; PopStateEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new PopStateEvent);
</del><ins>+    return adoptRef(*new PopStateEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;PopStateEvent&gt; PopStateEvent::create(PassRefPtr&lt;SerializedScriptValue&gt; serializedState, PassRefPtr&lt;History&gt; history)
</del><ins>+Ref&lt;PopStateEvent&gt; PopStateEvent::create(PassRefPtr&lt;SerializedScriptValue&gt; serializedState, PassRefPtr&lt;History&gt; history)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new PopStateEvent(serializedState, history));
</del><ins>+    return adoptRef(*new PopStateEvent(serializedState, history));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;PopStateEvent&gt; PopStateEvent::create(const AtomicString&amp; type, const PopStateEventInit&amp; initializer)
</del><ins>+Ref&lt;PopStateEvent&gt; PopStateEvent::create(const AtomicString&amp; type, const PopStateEventInit&amp; initializer)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new PopStateEvent(type, initializer));
</del><ins>+    return adoptRef(*new PopStateEvent(type, initializer));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> EventInterface PopStateEvent::eventInterface() const
</span></span></pre></div>
<a id="trunkSourceWebCoredomPopStateEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/PopStateEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/PopStateEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/PopStateEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -44,9 +44,9 @@
</span><span class="cx"> class PopStateEvent final : public Event {
</span><span class="cx"> public:
</span><span class="cx">     virtual ~PopStateEvent();
</span><del>-    static PassRefPtr&lt;PopStateEvent&gt; create();
-    static PassRefPtr&lt;PopStateEvent&gt; create(PassRefPtr&lt;SerializedScriptValue&gt;, PassRefPtr&lt;History&gt;);
-    static PassRefPtr&lt;PopStateEvent&gt; create(const AtomicString&amp;, const PopStateEventInit&amp;);
</del><ins>+    static Ref&lt;PopStateEvent&gt; create();
+    static Ref&lt;PopStateEvent&gt; create(PassRefPtr&lt;SerializedScriptValue&gt;, PassRefPtr&lt;History&gt;);
+    static Ref&lt;PopStateEvent&gt; create(const AtomicString&amp;, const PopStateEventInit&amp;);
</ins><span class="cx"> 
</span><span class="cx">     PassRefPtr&lt;SerializedScriptValue&gt; serializedState() const { return m_serializedState; }
</span><span class="cx">     const Deprecated::ScriptValue&amp; state() const { return m_state; }
</span></span></pre></div>
<a id="trunkSourceWebCoredomProgressEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ProgressEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ProgressEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/ProgressEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -40,17 +40,17 @@
</span><span class="cx"> 
</span><span class="cx"> class ProgressEvent : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;ProgressEvent&gt; create()
</del><ins>+    static Ref&lt;ProgressEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new ProgressEvent);
</del><ins>+        return adoptRef(*new ProgressEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;ProgressEvent&gt; create(const AtomicString&amp; type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
</del><ins>+    static Ref&lt;ProgressEvent&gt; create(const AtomicString&amp; type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new ProgressEvent(type, lengthComputable, loaded, total));
</del><ins>+        return adoptRef(*new ProgressEvent(type, lengthComputable, loaded, total));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;ProgressEvent&gt; create(const AtomicString&amp; type, const ProgressEventInit&amp; initializer)
</del><ins>+    static Ref&lt;ProgressEvent&gt; create(const AtomicString&amp; type, const ProgressEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new ProgressEvent(type, initializer));
</del><ins>+        return adoptRef(*new ProgressEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     bool lengthComputable() const { return m_lengthComputable; }
</span></span></pre></div>
<a id="trunkSourceWebCoredomTextEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TextEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/TextEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -32,34 +32,34 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TextEvent&gt; TextEvent::create()
</del><ins>+Ref&lt;TextEvent&gt; TextEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new TextEvent);
</del><ins>+    return adoptRef(*new TextEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TextEvent&gt; TextEvent::create(PassRefPtr&lt;AbstractView&gt; view, const String&amp; data, TextEventInputType inputType)
</del><ins>+Ref&lt;TextEvent&gt; TextEvent::create(PassRefPtr&lt;AbstractView&gt; view, const String&amp; data, TextEventInputType inputType)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new TextEvent(view, data, inputType));
</del><ins>+    return adoptRef(*new TextEvent(view, data, inputType));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TextEvent&gt; TextEvent::createForPlainTextPaste(PassRefPtr&lt;AbstractView&gt; view, const String&amp; data, bool shouldSmartReplace)
</del><ins>+Ref&lt;TextEvent&gt; TextEvent::createForPlainTextPaste(PassRefPtr&lt;AbstractView&gt; view, const String&amp; data, bool shouldSmartReplace)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new TextEvent(view, data, 0, shouldSmartReplace, false, MailBlockquoteHandling::RespectBlockquote));
</del><ins>+    return adoptRef(*new TextEvent(view, data, 0, shouldSmartReplace, false, MailBlockquoteHandling::RespectBlockquote));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TextEvent&gt; TextEvent::createForFragmentPaste(PassRefPtr&lt;AbstractView&gt; view, PassRefPtr&lt;DocumentFragment&gt; data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling mailBlockquoteHandling)
</del><ins>+Ref&lt;TextEvent&gt; TextEvent::createForFragmentPaste(PassRefPtr&lt;AbstractView&gt; view, PassRefPtr&lt;DocumentFragment&gt; data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling mailBlockquoteHandling)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new TextEvent(view, &quot;&quot;, data, shouldSmartReplace, shouldMatchStyle, mailBlockquoteHandling));
</del><ins>+    return adoptRef(*new TextEvent(view, &quot;&quot;, data, shouldSmartReplace, shouldMatchStyle, mailBlockquoteHandling));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TextEvent&gt; TextEvent::createForDrop(PassRefPtr&lt;AbstractView&gt; view, const String&amp; data)
</del><ins>+Ref&lt;TextEvent&gt; TextEvent::createForDrop(PassRefPtr&lt;AbstractView&gt; view, const String&amp; data)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new TextEvent(view, data, TextEventInputDrop));
</del><ins>+    return adoptRef(*new TextEvent(view, data, TextEventInputDrop));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;TextEvent&gt; TextEvent::createForDictation(PassRefPtr&lt;AbstractView&gt; view, const String&amp; data, const Vector&lt;DictationAlternative&gt;&amp; dictationAlternatives)
</del><ins>+Ref&lt;TextEvent&gt; TextEvent::createForDictation(PassRefPtr&lt;AbstractView&gt; view, const String&amp; data, const Vector&lt;DictationAlternative&gt;&amp; dictationAlternatives)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new TextEvent(view, data, dictationAlternatives));
</del><ins>+    return adoptRef(*new TextEvent(view, data, dictationAlternatives));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> TextEvent::TextEvent()
</span></span></pre></div>
<a id="trunkSourceWebCoredomTextEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TextEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/TextEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -40,12 +40,12 @@
</span><span class="cx">     class TextEvent final : public UIEvent {
</span><span class="cx">     public:
</span><span class="cx"> 
</span><del>-        static PassRefPtr&lt;TextEvent&gt; create();
-        static PassRefPtr&lt;TextEvent&gt; create(PassRefPtr&lt;AbstractView&gt;, const String&amp; data, TextEventInputType = TextEventInputKeyboard);
-        static PassRefPtr&lt;TextEvent&gt; createForPlainTextPaste(PassRefPtr&lt;AbstractView&gt;, const String&amp; data, bool shouldSmartReplace);
-        static PassRefPtr&lt;TextEvent&gt; createForFragmentPaste(PassRefPtr&lt;AbstractView&gt;, PassRefPtr&lt;DocumentFragment&gt; data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling);
-        static PassRefPtr&lt;TextEvent&gt; createForDrop(PassRefPtr&lt;AbstractView&gt;, const String&amp; data);
-        static PassRefPtr&lt;TextEvent&gt; createForDictation(PassRefPtr&lt;AbstractView&gt;, const String&amp; data, const Vector&lt;DictationAlternative&gt;&amp; dictationAlternatives);
</del><ins>+        static Ref&lt;TextEvent&gt; create();
+        static Ref&lt;TextEvent&gt; create(PassRefPtr&lt;AbstractView&gt;, const String&amp; data, TextEventInputType = TextEventInputKeyboard);
+        static Ref&lt;TextEvent&gt; createForPlainTextPaste(PassRefPtr&lt;AbstractView&gt;, const String&amp; data, bool shouldSmartReplace);
+        static Ref&lt;TextEvent&gt; createForFragmentPaste(PassRefPtr&lt;AbstractView&gt;, PassRefPtr&lt;DocumentFragment&gt; data, bool shouldSmartReplace, bool shouldMatchStyle, MailBlockquoteHandling);
+        static Ref&lt;TextEvent&gt; createForDrop(PassRefPtr&lt;AbstractView&gt;, const String&amp; data);
+        static Ref&lt;TextEvent&gt; createForDictation(PassRefPtr&lt;AbstractView&gt;, const String&amp; data, const Vector&lt;DictationAlternative&gt;&amp; dictationAlternatives);
</ins><span class="cx"> 
</span><span class="cx">         virtual ~TextEvent();
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkSourceWebCoredomTouchEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TouchEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TouchEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/TouchEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -40,9 +40,9 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~TouchEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;TouchEvent&gt; create()
</del><ins>+    static Ref&lt;TouchEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new TouchEvent);
</del><ins>+        return adoptRef(*new TouchEvent);
</ins><span class="cx">     }
</span><span class="cx">     static PassRefPtr&lt;TouchEvent&gt; create(TouchList* touches, 
</span><span class="cx">             TouchList* targetTouches, TouchList* changedTouches, 
</span></span></pre></div>
<a id="trunkSourceWebCoredomTransitionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/TransitionEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TransitionEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/TransitionEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -41,17 +41,17 @@
</span><span class="cx"> 
</span><span class="cx"> class TransitionEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;TransitionEvent&gt; create()
</del><ins>+    static Ref&lt;TransitionEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new TransitionEvent);
</del><ins>+        return adoptRef(*new TransitionEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;TransitionEvent&gt; create(const AtomicString&amp; type, const String&amp; propertyName, double elapsedTime, const String&amp; pseudoElement)
</del><ins>+    static Ref&lt;TransitionEvent&gt; create(const AtomicString&amp; type, const String&amp; propertyName, double elapsedTime, const String&amp; pseudoElement)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new TransitionEvent(type, propertyName, elapsedTime, pseudoElement));
</del><ins>+        return adoptRef(*new TransitionEvent(type, propertyName, elapsedTime, pseudoElement));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;TransitionEvent&gt; create(const AtomicString&amp; type, const TransitionEventInit&amp; initializer)
</del><ins>+    static Ref&lt;TransitionEvent&gt; create(const AtomicString&amp; type, const TransitionEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new TransitionEvent(type, initializer));
</del><ins>+        return adoptRef(*new TransitionEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~TransitionEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomUIEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/UIEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/UIEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/UIEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -41,17 +41,17 @@
</span><span class="cx"> 
</span><span class="cx"> class UIEvent : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;UIEvent&gt; create()
</del><ins>+    static Ref&lt;UIEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new UIEvent);
</del><ins>+        return adoptRef(*new UIEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;UIEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;AbstractView&gt; view, int detail)
</del><ins>+    static Ref&lt;UIEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, PassRefPtr&lt;AbstractView&gt; view, int detail)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new UIEvent(type, canBubble, cancelable, view, detail));
</del><ins>+        return adoptRef(*new UIEvent(type, canBubble, cancelable, view, detail));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;UIEvent&gt; create(const AtomicString&amp; type, const UIEventInit&amp; initializer)
</del><ins>+    static Ref&lt;UIEvent&gt; create(const AtomicString&amp; type, const UIEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new UIEvent(type, initializer));
</del><ins>+        return adoptRef(*new UIEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx">     virtual ~UIEvent();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomWebKitAnimationEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/WebKitAnimationEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/WebKitAnimationEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/WebKitAnimationEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -39,17 +39,17 @@
</span><span class="cx"> 
</span><span class="cx"> class WebKitAnimationEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;WebKitAnimationEvent&gt; create()
</del><ins>+    static Ref&lt;WebKitAnimationEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitAnimationEvent);
</del><ins>+        return adoptRef(*new WebKitAnimationEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;WebKitAnimationEvent&gt; create(const AtomicString&amp; type, const String&amp; animationName, double elapsedTime)
</del><ins>+    static Ref&lt;WebKitAnimationEvent&gt; create(const AtomicString&amp; type, const String&amp; animationName, double elapsedTime)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitAnimationEvent(type, animationName, elapsedTime));
</del><ins>+        return adoptRef(*new WebKitAnimationEvent(type, animationName, elapsedTime));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;WebKitAnimationEvent&gt; create(const AtomicString&amp; type, const WebKitAnimationEventInit&amp; initializer)
</del><ins>+    static Ref&lt;WebKitAnimationEvent&gt; create(const AtomicString&amp; type, const WebKitAnimationEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitAnimationEvent(type, initializer));
</del><ins>+        return adoptRef(*new WebKitAnimationEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~WebKitAnimationEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomWebKitTransitionEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/WebKitTransitionEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/WebKitTransitionEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/WebKitTransitionEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -40,17 +40,17 @@
</span><span class="cx"> 
</span><span class="cx"> class WebKitTransitionEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;WebKitTransitionEvent&gt; create()
</del><ins>+    static Ref&lt;WebKitTransitionEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitTransitionEvent);
</del><ins>+        return adoptRef(*new WebKitTransitionEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;WebKitTransitionEvent&gt; create(const AtomicString&amp; type, const String&amp; propertyName, double elapsedTime, const String&amp; pseudoElement)
</del><ins>+    static Ref&lt;WebKitTransitionEvent&gt; create(const AtomicString&amp; type, const String&amp; propertyName, double elapsedTime, const String&amp; pseudoElement)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitTransitionEvent(type, propertyName, elapsedTime, pseudoElement));
</del><ins>+        return adoptRef(*new WebKitTransitionEvent(type, propertyName, elapsedTime, pseudoElement));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;WebKitTransitionEvent&gt; create(const AtomicString&amp; type, const WebKitTransitionEventInit&amp; initializer)
</del><ins>+    static Ref&lt;WebKitTransitionEvent&gt; create(const AtomicString&amp; type, const WebKitTransitionEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebKitTransitionEvent(type, initializer));
</del><ins>+        return adoptRef(*new WebKitTransitionEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~WebKitTransitionEvent();
</span></span></pre></div>
<a id="trunkSourceWebCoredomWheelEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/WheelEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/WheelEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/dom/WheelEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</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 PassRefPtr&lt;WheelEvent&gt; create()
</del><ins>+    static Ref&lt;WheelEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WheelEvent);
</del><ins>+        return adoptRef(*new WheelEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;WheelEvent&gt; create(const AtomicString&amp; type, const WheelEventInit&amp; initializer)
</del><ins>+    static Ref&lt;WheelEvent&gt; create(const AtomicString&amp; type, const WheelEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WheelEvent(type, initializer));
</del><ins>+        return adoptRef(*new WheelEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;WheelEvent&gt; create(const PlatformWheelEvent&amp; event, PassRefPtr&lt;AbstractView&gt; view)
</del><ins>+    static Ref&lt;WheelEvent&gt; create(const PlatformWheelEvent&amp; event, PassRefPtr&lt;AbstractView&gt; view)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WheelEvent(event, view));
</del><ins>+        return adoptRef(*new WheelEvent(event, view));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     void initWheelEvent(int rawDeltaX, int rawDeltaY, PassRefPtr&lt;AbstractView&gt;,
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlMediaKeyEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/MediaKeyEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/MediaKeyEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/html/MediaKeyEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -49,14 +49,14 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~MediaKeyEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaKeyEvent&gt; create()
</del><ins>+    static Ref&lt;MediaKeyEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MediaKeyEvent);
</del><ins>+        return adoptRef(*new MediaKeyEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaKeyEvent&gt; create(const AtomicString&amp; type, const MediaKeyEventInit&amp; initializer)
</del><ins>+    static Ref&lt;MediaKeyEvent&gt; create(const AtomicString&amp; type, const MediaKeyEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new MediaKeyEvent(type, initializer));
</del><ins>+        return adoptRef(*new MediaKeyEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual EventInterface eventInterface() const override;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLContextEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLContextEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLContextEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/html/canvas/WebGLContextEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -38,17 +38,17 @@
</span><span class="cx"> 
</span><span class="cx"> class WebGLContextEvent final : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;WebGLContextEvent&gt; create()
</del><ins>+    static Ref&lt;WebGLContextEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebGLContextEvent);
</del><ins>+        return adoptRef(*new WebGLContextEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;WebGLContextEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, const String&amp; statusMessage)
</del><ins>+    static Ref&lt;WebGLContextEvent&gt; create(const AtomicString&amp; type, bool canBubble, bool cancelable, const String&amp; statusMessage)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebGLContextEvent(type, canBubble, cancelable, statusMessage));
</del><ins>+        return adoptRef(*new WebGLContextEvent(type, canBubble, cancelable, statusMessage));
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;WebGLContextEvent&gt; create(const AtomicString&amp; type, const WebGLContextEventInit&amp; initializer)
</del><ins>+    static Ref&lt;WebGLContextEvent&gt; create(const AtomicString&amp; type, const WebGLContextEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebGLContextEvent(type, initializer));
</del><ins>+        return adoptRef(*new WebGLContextEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx">     virtual ~WebGLContextEvent();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackTrackEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/TrackEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/TrackEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/html/track/TrackEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -43,14 +43,14 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~TrackEvent();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;TrackEvent&gt; create()
</del><ins>+    static Ref&lt;TrackEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new TrackEvent);
</del><ins>+        return adoptRef(*new TrackEvent);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;TrackEvent&gt; create(const AtomicString&amp; type, const TrackEventInit&amp; initializer)
</del><ins>+    static Ref&lt;TrackEvent&gt; create(const AtomicString&amp; type, const TrackEventInit&amp; initializer)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new TrackEvent(type, initializer));
</del><ins>+        return adoptRef(*new TrackEvent(type, initializer));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual EventInterface eventInterface() const override;
</span></span></pre></div>
<a id="trunkSourceWebCorestorageStorageEventcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/storage/StorageEvent.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/storage/StorageEvent.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/storage/StorageEvent.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -35,9 +35,9 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;StorageEvent&gt; StorageEvent::create()
</del><ins>+Ref&lt;StorageEvent&gt; StorageEvent::create()
</ins><span class="cx"> {
</span><del>-    return adoptRef(new StorageEvent);
</del><ins>+    return adoptRef(*new StorageEvent);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> StorageEvent::StorageEvent()
</span><span class="lines">@@ -48,14 +48,14 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;StorageEvent&gt; StorageEvent::create(const AtomicString&amp; type, const String&amp; key, const String&amp; oldValue, const String&amp; newValue, const String&amp; url, Storage* storageArea)
</del><ins>+Ref&lt;StorageEvent&gt; StorageEvent::create(const AtomicString&amp; type, const String&amp; key, const String&amp; oldValue, const String&amp; newValue, const String&amp; url, Storage* storageArea)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new StorageEvent(type, key, oldValue, newValue, url, storageArea));
</del><ins>+    return adoptRef(*new StorageEvent(type, key, oldValue, newValue, url, storageArea));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;StorageEvent&gt; StorageEvent::create(const AtomicString&amp; type, const StorageEventInit&amp; initializer)
</del><ins>+Ref&lt;StorageEvent&gt; StorageEvent::create(const AtomicString&amp; type, const StorageEventInit&amp; initializer)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new StorageEvent(type, initializer));
</del><ins>+    return adoptRef(*new StorageEvent(type, initializer));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> StorageEvent::StorageEvent(const AtomicString&amp; type, const String&amp; key, const String&amp; oldValue, const String&amp; newValue, const String&amp; url, Storage* storageArea)
</span></span></pre></div>
<a id="trunkSourceWebCorestorageStorageEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/storage/StorageEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/storage/StorageEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/storage/StorageEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -45,9 +45,9 @@
</span><span class="cx"> 
</span><span class="cx"> class StorageEvent : public Event {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;StorageEvent&gt; create();
-    static PassRefPtr&lt;StorageEvent&gt; create(const AtomicString&amp; type, const String&amp; key, const String&amp; oldValue, const String&amp; newValue, const String&amp; url, Storage* storageArea);
-    static PassRefPtr&lt;StorageEvent&gt; create(const AtomicString&amp;, const StorageEventInit&amp;);
</del><ins>+    static Ref&lt;StorageEvent&gt; create();
+    static Ref&lt;StorageEvent&gt; create(const AtomicString&amp; type, const String&amp; key, const String&amp; oldValue, const String&amp; newValue, const String&amp; url, Storage* storageArea);
+    static Ref&lt;StorageEvent&gt; create(const AtomicString&amp;, const StorageEventInit&amp;);
</ins><span class="cx">     virtual ~StorageEvent();
</span><span class="cx"> 
</span><span class="cx">     const String&amp; key() const { return m_key; }
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGZoomEventh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGZoomEvent.h (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGZoomEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/svg/SVGZoomEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</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 PassRefPtr&lt;SVGZoomEvent&gt; create() { return adoptRef(new SVGZoomEvent); }
</del><ins>+    static Ref&lt;SVGZoomEvent&gt; create() { 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 (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XMLHttpRequestProgressEvent.h        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebCore/xml/XMLHttpRequestProgressEvent.h        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -33,13 +33,13 @@
</span><span class="cx"> 
</span><span class="cx"> class XMLHttpRequestProgressEvent : public ProgressEvent {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;XMLHttpRequestProgressEvent&gt; create()
</del><ins>+    static Ref&lt;XMLHttpRequestProgressEvent&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new XMLHttpRequestProgressEvent);
</del><ins>+        return adoptRef(*new XMLHttpRequestProgressEvent);
</ins><span class="cx">     }
</span><del>-    static PassRefPtr&lt;XMLHttpRequestProgressEvent&gt; create(const AtomicString&amp; type, bool lengthComputable = false, unsigned long long loaded = 0, unsigned long long total = 0)
</del><ins>+    static Ref&lt;XMLHttpRequestProgressEvent&gt; create(const AtomicString&amp; type, bool lengthComputable = false, unsigned long long loaded = 0, unsigned long long total = 0)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new XMLHttpRequestProgressEvent(type, lengthComputable, loaded, total));
</del><ins>+        return adoptRef(*new XMLHttpRequestProgressEvent(type, lengthComputable, loaded, total));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // Those 2 synonyms are included for compatibility with Firefox.
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (177263 => 177264)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2014-12-14 10:58:56 UTC (rev 177263)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2014-12-14 12:23:31 UTC (rev 177264)
</span><span class="lines">@@ -2252,7 +2252,7 @@
</span><span class="cx">     if (isKeyboardEventValid &amp;&amp; event.type() == WebEvent::KeyDown) {
</span><span class="cx">         PlatformKeyboardEvent platformEvent(platform(event));
</span><span class="cx">         platformEvent.disambiguateKeyDownEvent(PlatformEvent::RawKeyDown);
</span><del>-        m_page-&gt;focusController().setInitialFocus(forward ? FocusDirectionForward : FocusDirectionBackward, KeyboardEvent::create(platformEvent, frame.document()-&gt;defaultView()).get());
</del><ins>+        m_page-&gt;focusController().setInitialFocus(forward ? FocusDirectionForward : FocusDirectionBackward, &amp;KeyboardEvent::create(platformEvent, frame.document()-&gt;defaultView()).get());
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>