<!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>[184709] trunk/Source/WebCore</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/184709">184709</a></dd>
<dt>Author</dt> <dd>gyuyoung.kim@webkit.org</dd>
<dt>Date</dt> <dd>2015-05-21 00:26:55 -0700 (Thu, 21 May 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Purge PassRefPtr in WebCore/Modules
https://bugs.webkit.org/show_bug.cgi?id=145112

Reviewed by Darin Adler.

As a step to remove PassRefPtr, this patch replaces PassRefPtr with Ref or RefPtr
depends on null of return value.

No new tests, no behavior changes.

* Modules/encryptedmedia/MediaKeySession.cpp:
(WebCore::MediaKeySession::create):
* Modules/encryptedmedia/MediaKeySession.h:
* Modules/encryptedmedia/MediaKeys.cpp:
(WebCore::MediaKeys::create):
(WebCore::MediaKeys::createSession):
* Modules/encryptedmedia/MediaKeys.h:
* Modules/gamepad/Gamepad.h:
* Modules/gamepad/NavigatorGamepad.cpp:
(WebCore::NavigatorGamepad::gamepadFromPlatformGamepad):
* Modules/gamepad/deprecated/Gamepad.h:
* Modules/geolocation/GeolocationError.h:
(WebCore::GeolocationError::create):
* Modules/geolocation/GeolocationPosition.h:
(WebCore::GeolocationPosition::create):
* Modules/geolocation/Geoposition.h:
(WebCore::Geoposition::create):
* Modules/geolocation/PositionError.h:
(WebCore::PositionError::create):
* Modules/geolocation/PositionOptions.h:
(WebCore::PositionOptions::create):
* Modules/mediacontrols/MediaControlsHost.cpp:
(WebCore::MediaControlsHost::create):
* Modules/mediacontrols/MediaControlsHost.h:
* Modules/mediasource/MediaSource.cpp:
(WebCore::MediaSource::create):
* Modules/mediasource/MediaSource.h:
* Modules/mediastream/RTCDataChannel.cpp:
(WebCore::RTCDataChannel::create):
* Modules/mediastream/RTCDataChannel.h:
* Modules/mediastream/RTCIceCandidate.cpp:
(WebCore::RTCIceCandidate::create):
* Modules/mediastream/RTCIceCandidate.h:
* Modules/webaudio/OfflineAudioContext.cpp:
(WebCore::OfflineAudioContext::create):
* Modules/webaudio/OfflineAudioContext.h:
* Modules/webaudio/OfflineAudioDestinationNode.h:
(WebCore::OfflineAudioDestinationNode::create):
* Modules/webaudio/OscillatorNode.cpp:
(WebCore::OscillatorNode::create):
* Modules/webaudio/OscillatorNode.h:
* Modules/webdatabase/Database.cpp:
(WebCore::Database::runTransaction):
* Modules/webdatabase/DatabaseTracker.cpp:
(WebCore::DatabaseTracker::originLockFor):
* Modules/webdatabase/DatabaseTracker.h:
* Modules/webdatabase/SQLError.h:
(WebCore::SQLError::create):
* Modules/webdatabase/SQLResultSet.h:
(WebCore::SQLResultSet::create):
* Modules/webdatabase/SQLResultSetRowList.h:
(WebCore::SQLResultSetRowList::create):
* Modules/webdatabase/SQLStatementBackend.cpp:
(WebCore::SQLStatementBackend::create):
* Modules/webdatabase/SQLStatementBackend.h:
* Modules/webdatabase/SQLTransactionBackend.cpp:
(WebCore::SQLTransactionBackend::create):
* Modules/webdatabase/SQLTransactionBackend.h:
* Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
(WebCore::ThreadableWebSocketChannelClientWrapper::create):
* Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
* Modules/websockets/WebSocket.cpp:
(WebCore::WebSocket::create):
* Modules/websockets/WebSocket.h:
* Modules/websockets/WebSocketChannel.h:
(WebCore::WebSocketChannel::create):
* Modules/websockets/WorkerThreadableWebSocketChannel.h:
(WebCore::WorkerThreadableWebSocketChannel::create):
(WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
* editing/InsertListCommand.h:
(WebCore::InsertListCommand::create):
* workers/Worker.cpp:
(WebCore::Worker::create):
* workers/Worker.h:
* xml/XPathExpression.cpp:
(WebCore::XPathExpression::createExpression):
(WebCore::XPathExpression::evaluate):
* xml/XPathExpression.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeySessioncpp">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeySessionh">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeyscpp">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeysh">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h</a></li>
<li><a href="#trunkSourceWebCoreModulesgamepadGamepadh">trunk/Source/WebCore/Modules/gamepad/Gamepad.h</a></li>
<li><a href="#trunkSourceWebCoreModulesgamepadNavigatorGamepadcpp">trunk/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesgamepaddeprecatedGamepadh">trunk/Source/WebCore/Modules/gamepad/deprecated/Gamepad.h</a></li>
<li><a href="#trunkSourceWebCoreModulesgeolocationGeolocationErrorh">trunk/Source/WebCore/Modules/geolocation/GeolocationError.h</a></li>
<li><a href="#trunkSourceWebCoreModulesgeolocationGeolocationPositionh">trunk/Source/WebCore/Modules/geolocation/GeolocationPosition.h</a></li>
<li><a href="#trunkSourceWebCoreModulesgeolocationGeopositionh">trunk/Source/WebCore/Modules/geolocation/Geoposition.h</a></li>
<li><a href="#trunkSourceWebCoreModulesgeolocationPositionErrorh">trunk/Source/WebCore/Modules/geolocation/PositionError.h</a></li>
<li><a href="#trunkSourceWebCoreModulesgeolocationPositionOptionsh">trunk/Source/WebCore/Modules/geolocation/PositionOptions.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediacontrolsMediaControlsHostcpp">trunk/Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediacontrolsMediaControlsHosth">trunk/Source/WebCore/Modules/mediacontrols/MediaControlsHost.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasourceMediaSourcecpp">trunk/Source/WebCore/Modules/mediasource/MediaSource.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasourceMediaSourceh">trunk/Source/WebCore/Modules/mediasource/MediaSource.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCDataChannelcpp">trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCDataChannelh">trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCIceCandidatecpp">trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCIceCandidateh">trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioOfflineAudioContextcpp">trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioOfflineAudioContexth">trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioOfflineAudioDestinationNodeh">trunk/Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioOscillatorNodecpp">trunk/Source/WebCore/Modules/webaudio/OscillatorNode.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebaudioOscillatorNodeh">trunk/Source/WebCore/Modules/webaudio/OscillatorNode.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseDatabasecpp">trunk/Source/WebCore/Modules/webdatabase/Database.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseDatabaseTrackercpp">trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseDatabaseTrackerh">trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLErrorh">trunk/Source/WebCore/Modules/webdatabase/SQLError.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLResultSeth">trunk/Source/WebCore/Modules/webdatabase/SQLResultSet.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLResultSetRowListh">trunk/Source/WebCore/Modules/webdatabase/SQLResultSetRowList.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLStatementBackendcpp">trunk/Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLStatementBackendh">trunk/Source/WebCore/Modules/webdatabase/SQLStatementBackend.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLTransactionBackendcpp">trunk/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLTransactionBackendh">trunk/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsThreadableWebSocketChannelClientWrappercpp">trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsThreadableWebSocketChannelClientWrapperh">trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsWebSocketcpp">trunk/Source/WebCore/Modules/websockets/WebSocket.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsWebSocketh">trunk/Source/WebCore/Modules/websockets/WebSocket.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsWebSocketChannelh">trunk/Source/WebCore/Modules/websockets/WebSocketChannel.h</a></li>
<li><a href="#trunkSourceWebCoreModuleswebsocketsWorkerThreadableWebSocketChannelh">trunk/Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h</a></li>
<li><a href="#trunkSourceWebCoreeditingInsertListCommandh">trunk/Source/WebCore/editing/InsertListCommand.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkercpp">trunk/Source/WebCore/workers/Worker.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerh">trunk/Source/WebCore/workers/Worker.h</a></li>
<li><a href="#trunkSourceWebCorexmlXPathExpressioncpp">trunk/Source/WebCore/xml/XPathExpression.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlXPathExpressionh">trunk/Source/WebCore/xml/XPathExpression.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/ChangeLog        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -1,3 +1,94 @@
</span><ins>+2015-05-21  Gyuyoung Kim  &lt;gyuyoung.kim@webkit.org&gt;
+
+        Purge PassRefPtr in WebCore/Modules
+        https://bugs.webkit.org/show_bug.cgi?id=145112
+
+        Reviewed by Darin Adler.
+
+        As a step to remove PassRefPtr, this patch replaces PassRefPtr with Ref or RefPtr
+        depends on null of return value.
+
+        No new tests, no behavior changes.
+
+        * Modules/encryptedmedia/MediaKeySession.cpp:
+        (WebCore::MediaKeySession::create):
+        * Modules/encryptedmedia/MediaKeySession.h:
+        * Modules/encryptedmedia/MediaKeys.cpp:
+        (WebCore::MediaKeys::create):
+        (WebCore::MediaKeys::createSession):
+        * Modules/encryptedmedia/MediaKeys.h:
+        * Modules/gamepad/Gamepad.h:
+        * Modules/gamepad/NavigatorGamepad.cpp:
+        (WebCore::NavigatorGamepad::gamepadFromPlatformGamepad):
+        * Modules/gamepad/deprecated/Gamepad.h:
+        * Modules/geolocation/GeolocationError.h:
+        (WebCore::GeolocationError::create):
+        * Modules/geolocation/GeolocationPosition.h:
+        (WebCore::GeolocationPosition::create):
+        * Modules/geolocation/Geoposition.h:
+        (WebCore::Geoposition::create):
+        * Modules/geolocation/PositionError.h:
+        (WebCore::PositionError::create):
+        * Modules/geolocation/PositionOptions.h:
+        (WebCore::PositionOptions::create):
+        * Modules/mediacontrols/MediaControlsHost.cpp:
+        (WebCore::MediaControlsHost::create):
+        * Modules/mediacontrols/MediaControlsHost.h:
+        * Modules/mediasource/MediaSource.cpp:
+        (WebCore::MediaSource::create):
+        * Modules/mediasource/MediaSource.h:
+        * Modules/mediastream/RTCDataChannel.cpp:
+        (WebCore::RTCDataChannel::create):
+        * Modules/mediastream/RTCDataChannel.h:
+        * Modules/mediastream/RTCIceCandidate.cpp:
+        (WebCore::RTCIceCandidate::create):
+        * Modules/mediastream/RTCIceCandidate.h:
+        * Modules/webaudio/OfflineAudioContext.cpp:
+        (WebCore::OfflineAudioContext::create):
+        * Modules/webaudio/OfflineAudioContext.h:
+        * Modules/webaudio/OfflineAudioDestinationNode.h:
+        (WebCore::OfflineAudioDestinationNode::create):
+        * Modules/webaudio/OscillatorNode.cpp:
+        (WebCore::OscillatorNode::create):
+        * Modules/webaudio/OscillatorNode.h:
+        * Modules/webdatabase/Database.cpp:
+        (WebCore::Database::runTransaction):
+        * Modules/webdatabase/DatabaseTracker.cpp:
+        (WebCore::DatabaseTracker::originLockFor):
+        * Modules/webdatabase/DatabaseTracker.h:
+        * Modules/webdatabase/SQLError.h:
+        (WebCore::SQLError::create):
+        * Modules/webdatabase/SQLResultSet.h:
+        (WebCore::SQLResultSet::create):
+        * Modules/webdatabase/SQLResultSetRowList.h:
+        (WebCore::SQLResultSetRowList::create):
+        * Modules/webdatabase/SQLStatementBackend.cpp:
+        (WebCore::SQLStatementBackend::create):
+        * Modules/webdatabase/SQLStatementBackend.h:
+        * Modules/webdatabase/SQLTransactionBackend.cpp:
+        (WebCore::SQLTransactionBackend::create):
+        * Modules/webdatabase/SQLTransactionBackend.h:
+        * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
+        (WebCore::ThreadableWebSocketChannelClientWrapper::create):
+        * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
+        * Modules/websockets/WebSocket.cpp:
+        (WebCore::WebSocket::create):
+        * Modules/websockets/WebSocket.h:
+        * Modules/websockets/WebSocketChannel.h:
+        (WebCore::WebSocketChannel::create):
+        * Modules/websockets/WorkerThreadableWebSocketChannel.h:
+        (WebCore::WorkerThreadableWebSocketChannel::create):
+        (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
+        * editing/InsertListCommand.h:
+        (WebCore::InsertListCommand::create):
+        * workers/Worker.cpp:
+        (WebCore::Worker::create):
+        * workers/Worker.h:
+        * xml/XPathExpression.cpp:
+        (WebCore::XPathExpression::createExpression):
+        (WebCore::XPathExpression::evaluate):
+        * xml/XPathExpression.h:
+
</ins><span class="cx"> 2015-05-20  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r184667 and r184682.
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeySessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -40,9 +40,9 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaKeySession&gt; MediaKeySession::create(ScriptExecutionContext* context, MediaKeys* keys, const String&amp; keySystem)
</del><ins>+Ref&lt;MediaKeySession&gt; MediaKeySession::create(ScriptExecutionContext* context, MediaKeys* keys, const String&amp; keySystem)
</ins><span class="cx"> {
</span><del>-    auto session = adoptRef(new MediaKeySession(context, keys, keySystem));
</del><ins>+    auto session = adoptRef(*new MediaKeySession(context, keys, keySystem));
</ins><span class="cx">     session-&gt;suspendIfNeeded();
</span><span class="cx">     return session;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeySessionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> 
</span><span class="cx"> class MediaKeySession final : public RefCounted&lt;MediaKeySession&gt;, public EventTargetWithInlineData, public ActiveDOMObject, public CDMSessionClient {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;MediaKeySession&gt; create(ScriptExecutionContext*, MediaKeys*, const String&amp; keySystem);
</del><ins>+    static Ref&lt;MediaKeySession&gt; create(ScriptExecutionContext*, MediaKeys*, const String&amp; keySystem);
</ins><span class="cx">     ~MediaKeySession();
</span><span class="cx"> 
</span><span class="cx">     const String&amp; keySystem() const { return m_keySystem; }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeyscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaKeys&gt; MediaKeys::create(const String&amp; keySystem, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;MediaKeys&gt; MediaKeys::create(const String&amp; keySystem, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     // From &lt;http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#dom-media-keys-constructor&gt;:
</span><span class="cx">     // The MediaKeys(keySystem) constructor must run the following steps:
</span><span class="lines">@@ -46,13 +46,13 @@
</span><span class="cx">     // 1. If keySystem is null or an empty string, throw an INVALID_ACCESS_ERR exception and abort these steps.
</span><span class="cx">     if (keySystem.isNull() || keySystem.isEmpty()) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // 2. If keySystem is not one of the user agent's supported Key Systems, throw a NOT_SUPPORTED_ERR and abort these steps.
</span><span class="cx">     if (!CDM::supportsKeySystem(keySystem)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // 3. Let cdm be the content decryption module corresponding to keySystem.
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx">     // 5. Create a new MediaKeys object.
</span><span class="cx">     // 5.1 Let the keySystem attribute be keySystem.
</span><span class="cx">     // 6. Return the new object to the caller.
</span><del>-    return adoptRef(new MediaKeys(keySystem, WTF::move(cdm)));
</del><ins>+    return adoptRef(*new MediaKeys(keySystem, WTF::move(cdm)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> MediaKeys::MediaKeys(const String&amp; keySystem, std::unique_ptr&lt;CDM&gt; cdm)
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaKeySession&gt; MediaKeys::createSession(ScriptExecutionContext* context, const String&amp; type, Uint8Array* initData, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;MediaKeySession&gt; MediaKeys::createSession(ScriptExecutionContext* context, const String&amp; type, Uint8Array* initData, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     // From &lt;http://www.w3.org/TR/2014/WD-encrypted-media-20140218/#dom-createsession&gt;:
</span><span class="cx">     // The createSession(type, initData) method must run the following steps:
</span><span class="lines">@@ -92,20 +92,20 @@
</span><span class="cx">     // 1. If contentType is null or an empty string, throw an INVALID_ACCESS_ERR exception and abort these steps.
</span><span class="cx">     if (type.isEmpty()) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // 2. If initData is null or an empty array, throw an INVALID_ACCESS_ERR exception and abort these steps.
</span><span class="cx">     if (!initData || !initData-&gt;length()) {
</span><span class="cx">         ec = INVALID_ACCESS_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // 3. If type contains a MIME type that is not supported or is not supported by the keySystem, throw
</span><span class="cx">     // a NOT_SUPPORTED_ERR exception and abort these steps.
</span><span class="cx">     if (!type.isNull() &amp;&amp; !type.isEmpty() &amp;&amp; !m_cdm-&gt;supportsMIMEType(type)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // 4. Create a new MediaKeySession object.
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx">     session-&gt;generateKeyRequest(type, initData);
</span><span class="cx"> 
</span><span class="cx">     // 6. Return the new object to the caller.
</span><del>-    return session;
</del><ins>+    return WTF::move(session);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool MediaKeys::isTypeSupported(const String&amp; keySystem, const String&amp; mimeType)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeysh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -44,10 +44,10 @@
</span><span class="cx"> 
</span><span class="cx"> class MediaKeys : public RefCounted&lt;MediaKeys&gt;, public CDMClient {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;MediaKeys&gt; create(const String&amp; keySystem, ExceptionCode&amp;);
</del><ins>+    static RefPtr&lt;MediaKeys&gt; create(const String&amp; keySystem, ExceptionCode&amp;);
</ins><span class="cx">     virtual ~MediaKeys();
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;MediaKeySession&gt; createSession(ScriptExecutionContext*, const String&amp; mimeType, Uint8Array* initData, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;MediaKeySession&gt; createSession(ScriptExecutionContext*, const String&amp; mimeType, Uint8Array* initData, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><span class="cx">     static bool isTypeSupported(const String&amp; keySystem, const String&amp; mimeType);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgamepadGamepadh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/gamepad/Gamepad.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/gamepad/Gamepad.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/gamepad/Gamepad.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -39,9 +39,9 @@
</span><span class="cx"> 
</span><span class="cx"> class Gamepad: public RefCounted&lt;Gamepad&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;Gamepad&gt; create(const PlatformGamepad&amp; platformGamepad)
</del><ins>+    static Ref&lt;Gamepad&gt; create(const PlatformGamepad&amp; platformGamepad)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new Gamepad(platformGamepad));
</del><ins>+        return adoptRef(*new Gamepad(platformGamepad));
</ins><span class="cx">     }
</span><span class="cx">     ~Gamepad();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgamepadNavigatorGamepadcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx"> {
</span><span class="cx">     unsigned index = platformGamepad.index();
</span><span class="cx">     if (index &gt;= m_gamepads.size() || !m_gamepads[index])
</span><del>-        return adoptRef(*Gamepad::create(platformGamepad).leakRef());
</del><ins>+        return Gamepad::create(platformGamepad);
</ins><span class="cx"> 
</span><span class="cx">     return *m_gamepads[index];
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgamepaddeprecatedGamepadh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/gamepad/deprecated/Gamepad.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/gamepad/deprecated/Gamepad.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/gamepad/deprecated/Gamepad.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -36,9 +36,9 @@
</span><span class="cx"> 
</span><span class="cx"> class Gamepad: public RefCounted&lt;Gamepad&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;Gamepad&gt; create()
</del><ins>+    static Ref&lt;Gamepad&gt; create()
</ins><span class="cx">     {
</span><del>-        return adoptRef(new Gamepad);
</del><ins>+        return adoptRef(*new Gamepad);
</ins><span class="cx">     }
</span><span class="cx">     ~Gamepad();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgeolocationGeolocationErrorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/geolocation/GeolocationError.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/geolocation/GeolocationError.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/geolocation/GeolocationError.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx">         PositionUnavailable
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;GeolocationError&gt; create(ErrorCode code, const String&amp; message) { return adoptRef(new GeolocationError(code, message)); }
</del><ins>+    static Ref&lt;GeolocationError&gt; create(ErrorCode code, const String&amp; message) { return adoptRef(*new GeolocationError(code, message)); }
</ins><span class="cx"> 
</span><span class="cx">     ErrorCode code() const { return m_code; }
</span><span class="cx">     const String&amp; message() const { return m_message; }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgeolocationGeolocationPositionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/geolocation/GeolocationPosition.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/geolocation/GeolocationPosition.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/geolocation/GeolocationPosition.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -34,9 +34,15 @@
</span><span class="cx"> 
</span><span class="cx"> class GeolocationPosition : public RefCounted&lt;GeolocationPosition&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;GeolocationPosition&gt; create(double timestamp, double latitude, double longitude, double accuracy) { return adoptRef(new GeolocationPosition(timestamp, latitude, longitude, accuracy)); }
</del><ins>+    static Ref&lt;GeolocationPosition&gt; create(double timestamp, double latitude, double longitude, double accuracy)
+    {
+        return adoptRef(*new GeolocationPosition(timestamp, latitude, longitude, accuracy));
+    }
</ins><span class="cx"> 
</span><del>-    static PassRefPtr&lt;GeolocationPosition&gt; create(double timestamp, double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed) { return adoptRef(new GeolocationPosition(timestamp, latitude, longitude, accuracy, providesAltitude, altitude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed)); }
</del><ins>+    static Ref&lt;GeolocationPosition&gt; create(double timestamp, double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed)
+    {
+        return adoptRef(*new GeolocationPosition(timestamp, latitude, longitude, accuracy, providesAltitude, altitude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed));
+    }
</ins><span class="cx"> 
</span><span class="cx">     double timestamp() const { return m_timestamp; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgeolocationGeopositionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/geolocation/Geoposition.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/geolocation/Geoposition.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/geolocation/Geoposition.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -35,9 +35,9 @@
</span><span class="cx"> 
</span><span class="cx"> class Geoposition : public RefCounted&lt;Geoposition&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;Geoposition&gt; create(PassRefPtr&lt;Coordinates&gt; coordinates, DOMTimeStamp timestamp)
</del><ins>+    static Ref&lt;Geoposition&gt; create(PassRefPtr&lt;Coordinates&gt; coordinates, DOMTimeStamp timestamp)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new Geoposition(coordinates, timestamp));
</del><ins>+        return adoptRef(*new Geoposition(coordinates, timestamp));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     PassRefPtr&lt;Geoposition&gt; isolatedCopy() const
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgeolocationPositionErrorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/geolocation/PositionError.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/geolocation/PositionError.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/geolocation/PositionError.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx">         TIMEOUT = 3
</span><span class="cx">     };
</span><span class="cx">     
</span><del>-    static PassRefPtr&lt;PositionError&gt; create(ErrorCode code, const String&amp; message) { return adoptRef(new PositionError(code, message)); }
</del><ins>+    static Ref&lt;PositionError&gt; create(ErrorCode code, const String&amp; message) { return adoptRef(*new PositionError(code, message)); }
</ins><span class="cx"> 
</span><span class="cx">     ErrorCode code() const { return m_code; }
</span><span class="cx">     const String&amp; message() const { return m_message; }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesgeolocationPositionOptionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/geolocation/PositionOptions.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/geolocation/PositionOptions.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/geolocation/PositionOptions.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx">     
</span><span class="cx"> class PositionOptions : public RefCounted&lt;PositionOptions&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;PositionOptions&gt; create() { return adoptRef(new PositionOptions()); }
</del><ins>+    static Ref&lt;PositionOptions&gt; create() { return adoptRef(*new PositionOptions()); }
</ins><span class="cx"> 
</span><span class="cx">     bool enableHighAccuracy() const { return m_highAccuracy; }
</span><span class="cx">     void setEnableHighAccuracy(bool enable) { m_highAccuracy = enable; }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediacontrolsMediaControlsHostcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -61,9 +61,9 @@
</span><span class="cx">     return alwaysOn;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaControlsHost&gt; MediaControlsHost::create(HTMLMediaElement* mediaElement)
</del><ins>+Ref&lt;MediaControlsHost&gt; MediaControlsHost::create(HTMLMediaElement* mediaElement)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new MediaControlsHost(mediaElement));
</del><ins>+    return adoptRef(*new MediaControlsHost(mediaElement));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> MediaControlsHost::MediaControlsHost(HTMLMediaElement* mediaElement)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediacontrolsMediaControlsHosth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediacontrols/MediaControlsHost.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediacontrols/MediaControlsHost.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/mediacontrols/MediaControlsHost.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> 
</span><span class="cx"> class MediaControlsHost : public RefCounted&lt;MediaControlsHost&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;MediaControlsHost&gt; create(HTMLMediaElement*);
</del><ins>+    static Ref&lt;MediaControlsHost&gt; create(HTMLMediaElement*);
</ins><span class="cx">     ~MediaControlsHost();
</span><span class="cx"> 
</span><span class="cx">     static const AtomicString&amp; automaticKeyword();
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasourceMediaSourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasource/MediaSource.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasource/MediaSource.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/mediasource/MediaSource.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -67,11 +67,11 @@
</span><span class="cx">     s_registry = registry;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;MediaSource&gt; MediaSource::create(ScriptExecutionContext&amp; context)
</del><ins>+Ref&lt;MediaSource&gt; MediaSource::create(ScriptExecutionContext&amp; context)
</ins><span class="cx"> {
</span><del>-    RefPtr&lt;MediaSource&gt; mediaSource(adoptRef(new MediaSource(context)));
</del><ins>+    Ref&lt;MediaSource&gt; mediaSource(adoptRef(*new MediaSource(context)));
</ins><span class="cx">     mediaSource-&gt;suspendIfNeeded();
</span><del>-    return mediaSource.release();
</del><ins>+    return mediaSource;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> MediaSource::MediaSource(ScriptExecutionContext&amp; context)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasourceMediaSourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasource/MediaSource.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasource/MediaSource.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/mediasource/MediaSource.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx">     static const AtomicString&amp; closedKeyword();
</span><span class="cx">     static const AtomicString&amp; endedKeyword();
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;MediaSource&gt; create(ScriptExecutionContext&amp;);
</del><ins>+    static Ref&lt;MediaSource&gt; create(ScriptExecutionContext&amp;);
</ins><span class="cx">     virtual ~MediaSource();
</span><span class="cx"> 
</span><span class="cx">     void addedToRegistry();
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDataChannelcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx">     return arraybuffer;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCDataChannel&gt; RTCDataChannel::create(ScriptExecutionContext* context, RTCPeerConnectionHandler* peerConnectionHandler, const String&amp; label, const Dictionary&amp; options, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;RTCDataChannel&gt; RTCDataChannel::create(ScriptExecutionContext* context, RTCPeerConnectionHandler* peerConnectionHandler, const String&amp; label, const Dictionary&amp; options, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     RTCDataChannelInit initData;
</span><span class="cx">     String maxRetransmitsStr;
</span><span class="lines">@@ -80,13 +80,13 @@
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><del>-    return adoptRef(new RTCDataChannel(context, WTF::move(handler)));
</del><ins>+    return adoptRef(*new RTCDataChannel(context, WTF::move(handler)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCDataChannel&gt; RTCDataChannel::create(ScriptExecutionContext* context, std::unique_ptr&lt;RTCDataChannelHandler&gt; handler)
</del><ins>+Ref&lt;RTCDataChannel&gt; RTCDataChannel::create(ScriptExecutionContext* context, std::unique_ptr&lt;RTCDataChannelHandler&gt; handler)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(handler);
</span><del>-    return adoptRef(new RTCDataChannel(context, WTF::move(handler)));
</del><ins>+    return adoptRef(*new RTCDataChannel(context, WTF::move(handler)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RTCDataChannel::RTCDataChannel(ScriptExecutionContext* context, std::unique_ptr&lt;RTCDataChannelHandler&gt; handler)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCDataChannelh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/mediastream/RTCDataChannel.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -47,8 +47,8 @@
</span><span class="cx"> 
</span><span class="cx"> class RTCDataChannel final : public RefCounted&lt;RTCDataChannel&gt;, public ScriptWrappable, public EventTargetWithInlineData, public RTCDataChannelHandlerClient {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;RTCDataChannel&gt; create(ScriptExecutionContext*, std::unique_ptr&lt;RTCDataChannelHandler&gt;);
-    static PassRefPtr&lt;RTCDataChannel&gt; create(ScriptExecutionContext*, RTCPeerConnectionHandler*, const String&amp; , const Dictionary&amp;, ExceptionCode&amp;);
</del><ins>+    static Ref&lt;RTCDataChannel&gt; create(ScriptExecutionContext*, std::unique_ptr&lt;RTCDataChannelHandler&gt;);
+    static RefPtr&lt;RTCDataChannel&gt; create(ScriptExecutionContext*, RTCPeerConnectionHandler*, const String&amp; label, const Dictionary&amp; options, ExceptionCode&amp;);
</ins><span class="cx">     ~RTCDataChannel();
</span><span class="cx"> 
</span><span class="cx">     String label() const;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCIceCandidatecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCIceCandidate&gt; RTCIceCandidate::create(const Dictionary&amp; dictionary, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;RTCIceCandidate&gt; RTCIceCandidate::create(const Dictionary&amp; dictionary, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     String candidate;
</span><span class="cx">     bool ok = dictionary.get(&quot;candidate&quot;, candidate);
</span><span class="lines">@@ -71,12 +71,12 @@
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return adoptRef(new RTCIceCandidate(RTCIceCandidateDescriptor::create(candidate, sdpMid, sdpMLineIndex)));
</del><ins>+    return adoptRef(*new RTCIceCandidate(RTCIceCandidateDescriptor::create(candidate, sdpMid, sdpMLineIndex)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;RTCIceCandidate&gt; RTCIceCandidate::create(PassRefPtr&lt;RTCIceCandidateDescriptor&gt; descriptor)
</del><ins>+Ref&lt;RTCIceCandidate&gt; RTCIceCandidate::create(PassRefPtr&lt;RTCIceCandidateDescriptor&gt; descriptor)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new RTCIceCandidate(descriptor));
</del><ins>+    return adoptRef(*new RTCIceCandidate(descriptor));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RTCIceCandidate::RTCIceCandidate(PassRefPtr&lt;RTCIceCandidateDescriptor&gt; descriptor)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCIceCandidateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/mediastream/RTCIceCandidate.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -47,8 +47,8 @@
</span><span class="cx"> 
</span><span class="cx"> class RTCIceCandidate : public RefCounted&lt;RTCIceCandidate&gt;, public ScriptWrappable {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;RTCIceCandidate&gt; create(const Dictionary&amp;, ExceptionCode&amp;);
-    static PassRefPtr&lt;RTCIceCandidate&gt; create(PassRefPtr&lt;RTCIceCandidateDescriptor&gt;);
</del><ins>+    static RefPtr&lt;RTCIceCandidate&gt; create(const Dictionary&amp;, ExceptionCode&amp;);
+    static Ref&lt;RTCIceCandidate&gt; create(PassRefPtr&lt;RTCIceCandidateDescriptor&gt;);
</ins><span class="cx">     virtual ~RTCIceCandidate();
</span><span class="cx"> 
</span><span class="cx">     const String&amp; candidate() const;
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioOfflineAudioContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;OfflineAudioContext&gt; OfflineAudioContext::create(ScriptExecutionContext&amp; context, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;OfflineAudioContext&gt; OfflineAudioContext::create(ScriptExecutionContext&amp; context, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     // FIXME: add support for workers.
</span><span class="cx">     if (!is&lt;Document&gt;(context)) {
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;OfflineAudioContext&gt; audioContext(adoptRef(new OfflineAudioContext(document, numberOfChannels, numberOfFrames, sampleRate)));
</span><span class="cx">     audioContext-&gt;suspendIfNeeded();
</span><del>-    return audioContext.release();
</del><ins>+    return WTF::move(audioContext);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> OfflineAudioContext::OfflineAudioContext(Document&amp; document, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioOfflineAudioContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioContext.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -31,7 +31,7 @@
</span><span class="cx"> 
</span><span class="cx"> class OfflineAudioContext : public AudioContext {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;OfflineAudioContext&gt; create(ScriptExecutionContext&amp;, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionCode&amp;);
</del><ins>+    static RefPtr&lt;OfflineAudioContext&gt; create(ScriptExecutionContext&amp;, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><span class="cx">     virtual ~OfflineAudioContext();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioOfflineAudioDestinationNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -38,9 +38,9 @@
</span><span class="cx">     
</span><span class="cx"> class OfflineAudioDestinationNode : public AudioDestinationNode {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;OfflineAudioDestinationNode&gt; create(AudioContext* context, AudioBuffer* renderTarget)
</del><ins>+    static Ref&lt;OfflineAudioDestinationNode&gt; create(AudioContext* context, AudioBuffer* renderTarget)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new OfflineAudioDestinationNode(context, renderTarget));     
</del><ins>+        return adoptRef(*new OfflineAudioDestinationNode(context, renderTarget));     
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~OfflineAudioDestinationNode();
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioOscillatorNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/OscillatorNode.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OscillatorNode.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webaudio/OscillatorNode.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -46,9 +46,9 @@
</span><span class="cx"> PeriodicWave* OscillatorNode::s_periodicWaveSawtooth = 0;
</span><span class="cx"> PeriodicWave* OscillatorNode::s_periodicWaveTriangle = 0;
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;OscillatorNode&gt; OscillatorNode::create(AudioContext* context, float sampleRate)
</del><ins>+Ref&lt;OscillatorNode&gt; OscillatorNode::create(AudioContext* context, float sampleRate)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new OscillatorNode(context, sampleRate));
</del><ins>+    return adoptRef(*new OscillatorNode(context, sampleRate));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> OscillatorNode::OscillatorNode(AudioContext* context, float sampleRate)
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebaudioOscillatorNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webaudio/OscillatorNode.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webaudio/OscillatorNode.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webaudio/OscillatorNode.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx">         CUSTOM = 4
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    static PassRefPtr&lt;OscillatorNode&gt; create(AudioContext*, float sampleRate);
</del><ins>+    static Ref&lt;OscillatorNode&gt; create(AudioContext*, float sampleRate);
</ins><span class="cx"> 
</span><span class="cx">     virtual ~OscillatorNode();
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseDatabasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/Database.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/Database.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/Database.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -296,7 +296,7 @@
</span><span class="cx">     if (!transactionBackend &amp;&amp; errorCallback) {
</span><span class="cx">         WTF::RefPtr&lt;SQLTransactionErrorCallback&gt; errorCallbackProtector = WTF::move(errorCallback);
</span><span class="cx">         m_scriptExecutionContext-&gt;postTask([errorCallbackProtector](ScriptExecutionContext&amp;) {
</span><del>-            errorCallbackProtector-&gt;handleEvent(SQLError::create(SQLError::UNKNOWN_ERR, &quot;database has been closed&quot;).get());
</del><ins>+            errorCallbackProtector-&gt;handleEvent(SQLError::create(SQLError::UNKNOWN_ERR, &quot;database has been closed&quot;).ptr());
</ins><span class="cx">         });
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseDatabaseTrackercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -662,7 +662,7 @@
</span><span class="cx">         databases-&gt;add(*it);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;OriginLock&gt; DatabaseTracker::originLockFor(SecurityOrigin* origin)
</del><ins>+RefPtr&lt;OriginLock&gt; DatabaseTracker::originLockFor(SecurityOrigin* origin)
</ins><span class="cx"> {
</span><span class="cx">     MutexLocker lockDatabase(m_databaseGuard);
</span><span class="cx">     String databaseIdentifier = origin-&gt;databaseIdentifier();
</span><span class="lines">@@ -680,11 +680,11 @@
</span><span class="cx">         return addResult.iterator-&gt;value;
</span><span class="cx"> 
</span><span class="cx">     String path = originPath(origin);
</span><del>-    RefPtr&lt;OriginLock&gt; lock = adoptRef(new OriginLock(path));
</del><ins>+    RefPtr&lt;OriginLock&gt; lock = adoptRef(*new OriginLock(path));
</ins><span class="cx">     ASSERT(lock);
</span><span class="cx">     addResult.iterator-&gt;value = lock;
</span><span class="cx"> 
</span><del>-    return lock.release();
</del><ins>+    return WTF::move(lock);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void DatabaseTracker::deleteOriginLockFor(SecurityOrigin* origin)
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseDatabaseTrackerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx">     unsigned long long usageForOrigin(SecurityOrigin*);
</span><span class="cx">     unsigned long long quotaForOrigin(SecurityOrigin*);
</span><span class="cx">     void setQuota(SecurityOrigin*, unsigned long long);
</span><del>-    PassRefPtr&lt;OriginLock&gt; originLockFor(SecurityOrigin*);
</del><ins>+    RefPtr&lt;OriginLock&gt; originLockFor(SecurityOrigin*);
</ins><span class="cx"> 
</span><span class="cx">     void deleteAllDatabases();
</span><span class="cx">     WEBCORE_EXPORT void deleteDatabasesModifiedSince(std::chrono::system_clock::time_point);
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLErrorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLError.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLError.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLError.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -36,12 +36,12 @@
</span><span class="cx"> 
</span><span class="cx"> class SQLError : public ThreadSafeRefCounted&lt;SQLError&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;SQLError&gt; create(unsigned code, const String&amp; message) { return adoptRef(new SQLError(code, message)); }
-    static PassRefPtr&lt;SQLError&gt; create(unsigned code, const char* message, int sqliteCode)
</del><ins>+    static Ref&lt;SQLError&gt; create(unsigned code, const String&amp; message) { return adoptRef(*new SQLError(code, message)); }
+    static Ref&lt;SQLError&gt; create(unsigned code, const char* message, int sqliteCode)
</ins><span class="cx">     {
</span><span class="cx">         return create(code, String::format(&quot;%s (%d)&quot;, message, sqliteCode));
</span><span class="cx">     }
</span><del>-    static PassRefPtr&lt;SQLError&gt; create(unsigned code, const char* message, int sqliteCode, const char* sqliteMessage)
</del><ins>+    static Ref&lt;SQLError&gt; create(unsigned code, const char* message, int sqliteCode, const char* sqliteMessage)
</ins><span class="cx">     {
</span><span class="cx">         return create(code, String::format(&quot;%s (%d %s)&quot;, message, sqliteCode, sqliteMessage));
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLResultSeth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLResultSet.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLResultSet.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLResultSet.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> 
</span><span class="cx"> class SQLResultSet : public ThreadSafeRefCounted&lt;SQLResultSet&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;SQLResultSet&gt; create() { return adoptRef(new SQLResultSet); }
</del><ins>+    static Ref&lt;SQLResultSet&gt; create() { return adoptRef(*new SQLResultSet); }
</ins><span class="cx"> 
</span><span class="cx">     SQLResultSetRowList* rows() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLResultSetRowListh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLResultSetRowList.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLResultSetRowList.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLResultSetRowList.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> 
</span><span class="cx"> class SQLResultSetRowList : public RefCounted&lt;SQLResultSetRowList&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;SQLResultSetRowList&gt; create() { return adoptRef(new SQLResultSetRowList); }
</del><ins>+    static Ref&lt;SQLResultSetRowList&gt; create() { return adoptRef(*new SQLResultSetRowList); }
</ins><span class="cx"> 
</span><span class="cx">     const Vector&lt;String&gt;&amp; columnNames() const { return m_columns; }
</span><span class="cx">     const Vector&lt;SQLValue&gt;&amp; values() const { return m_result; }
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLStatementBackendcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLStatementBackend.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -75,10 +75,10 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;SQLStatementBackend&gt; SQLStatementBackend::create(std::unique_ptr&lt;SQLStatement&gt; frontend,
</del><ins>+Ref&lt;SQLStatementBackend&gt; SQLStatementBackend::create(std::unique_ptr&lt;SQLStatement&gt; frontend,
</ins><span class="cx">     const String&amp; statement, const Vector&lt;SQLValue&gt;&amp; arguments, int permissions)
</span><span class="cx"> {
</span><del>-    return adoptRef(new SQLStatementBackend(WTF::move(frontend), statement, arguments, permissions));
</del><ins>+    return adoptRef(*new SQLStatementBackend(WTF::move(frontend), statement, arguments, permissions));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> SQLStatementBackend::SQLStatementBackend(std::unique_ptr&lt;SQLStatement&gt; frontend,
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLStatementBackendh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLStatementBackend.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLStatementBackend.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLStatementBackend.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> 
</span><span class="cx"> class SQLStatementBackend : public ThreadSafeRefCounted&lt;SQLStatementBackend&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;SQLStatementBackend&gt; create(std::unique_ptr&lt;SQLStatement&gt;,
</del><ins>+    static Ref&lt;SQLStatementBackend&gt; create(std::unique_ptr&lt;SQLStatement&gt;,
</ins><span class="cx">         const String&amp; sqlStatement, const Vector&lt;SQLValue&gt;&amp; arguments, int permissions);
</span><span class="cx">     virtual ~SQLStatementBackend();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLTransactionBackendcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -344,9 +344,9 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;SQLTransactionBackend&gt; SQLTransactionBackend::create(Database* db, PassRefPtr&lt;SQLTransaction&gt; frontend, PassRefPtr&lt;SQLTransactionWrapper&gt; wrapper, bool readOnly)
</del><ins>+Ref&lt;SQLTransactionBackend&gt; SQLTransactionBackend::create(Database* db, PassRefPtr&lt;SQLTransaction&gt; frontend, PassRefPtr&lt;SQLTransactionWrapper&gt; wrapper, bool readOnly)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new SQLTransactionBackend(db, frontend, wrapper, readOnly));
</del><ins>+    return adoptRef(*new SQLTransactionBackend(db, frontend, wrapper, readOnly));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> SQLTransactionBackend::SQLTransactionBackend(Database* db, PassRefPtr&lt;SQLTransaction&gt; frontend, PassRefPtr&lt;SQLTransactionWrapper&gt; wrapper, bool readOnly)
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLTransactionBackendh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLTransactionBackend.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> 
</span><span class="cx"> class SQLTransactionBackend : public ThreadSafeRefCounted&lt;SQLTransactionBackend&gt;, public SQLTransactionStateMachine&lt;SQLTransactionBackend&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;SQLTransactionBackend&gt; create(Database*, PassRefPtr&lt;SQLTransaction&gt;, PassRefPtr&lt;SQLTransactionWrapper&gt;, bool readOnly);
</del><ins>+    static Ref&lt;SQLTransactionBackend&gt; create(Database*, PassRefPtr&lt;SQLTransaction&gt;, PassRefPtr&lt;SQLTransactionWrapper&gt;, bool readOnly);
</ins><span class="cx"> 
</span><span class="cx">     virtual ~SQLTransactionBackend();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsThreadableWebSocketChannelClientWrappercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -52,9 +52,9 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ThreadableWebSocketChannelClientWrapper&gt; ThreadableWebSocketChannelClientWrapper::create(ScriptExecutionContext* context, WebSocketChannelClient* client)
</del><ins>+Ref&lt;ThreadableWebSocketChannelClientWrapper&gt; ThreadableWebSocketChannelClientWrapper::create(ScriptExecutionContext* context, WebSocketChannelClient* client)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new ThreadableWebSocketChannelClientWrapper(context, client));
</del><ins>+    return adoptRef(*new ThreadableWebSocketChannelClientWrapper(context, client));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void ThreadableWebSocketChannelClientWrapper::clearSyncMethodDone()
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsThreadableWebSocketChannelClientWrapperh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx"> 
</span><span class="cx"> class ThreadableWebSocketChannelClientWrapper : public ThreadSafeRefCounted&lt;ThreadableWebSocketChannelClientWrapper&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;ThreadableWebSocketChannelClientWrapper&gt; create(ScriptExecutionContext*, WebSocketChannelClient*);
</del><ins>+    static Ref&lt;ThreadableWebSocketChannelClientWrapper&gt; create(ScriptExecutionContext*, WebSocketChannelClient*);
</ins><span class="cx"> 
</span><span class="cx">     void clearSyncMethodDone();
</span><span class="cx">     void setSyncMethodDone();
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsWebSocketcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/WebSocket.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/WebSocket.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/websockets/WebSocket.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -156,37 +156,37 @@
</span><span class="cx">         m_channel-&gt;disconnect();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebSocket&gt; WebSocket::create(ScriptExecutionContext&amp; context)
</del><ins>+Ref&lt;WebSocket&gt; WebSocket::create(ScriptExecutionContext&amp; context)
</ins><span class="cx"> {
</span><del>-    RefPtr&lt;WebSocket&gt; webSocket(adoptRef(new WebSocket(context)));
</del><ins>+    Ref&lt;WebSocket&gt; webSocket(adoptRef(*new WebSocket(context)));
</ins><span class="cx">     webSocket-&gt;suspendIfNeeded();
</span><del>-    return webSocket.release();
</del><ins>+    return webSocket;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebSocket&gt; WebSocket::create(ScriptExecutionContext&amp; context, const String&amp; url, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;WebSocket&gt; WebSocket::create(ScriptExecutionContext&amp; context, const String&amp; url, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     Vector&lt;String&gt; protocols;
</span><span class="cx">     return WebSocket::create(context, url, protocols, ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebSocket&gt; WebSocket::create(ScriptExecutionContext&amp; context, const String&amp; url, const Vector&lt;String&gt;&amp; protocols, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;WebSocket&gt; WebSocket::create(ScriptExecutionContext&amp; context, const String&amp; url, const Vector&lt;String&gt;&amp; protocols, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (url.isNull()) {
</span><span class="cx">         ec = SYNTAX_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    RefPtr&lt;WebSocket&gt; webSocket(adoptRef(new WebSocket(context)));
</del><ins>+    RefPtr&lt;WebSocket&gt; webSocket(adoptRef(*new WebSocket(context)));
</ins><span class="cx">     webSocket-&gt;suspendIfNeeded();
</span><span class="cx"> 
</span><span class="cx">     webSocket-&gt;connect(context.completeURL(url), protocols, ec);
</span><span class="cx">     if (ec)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><del>-    return webSocket.release();
</del><ins>+    return WTF::move(webSocket);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebSocket&gt; WebSocket::create(ScriptExecutionContext&amp; context, const String&amp; url, const String&amp; protocol, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;WebSocket&gt; WebSocket::create(ScriptExecutionContext&amp; context, const String&amp; url, const String&amp; protocol, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     Vector&lt;String&gt; protocols;
</span><span class="cx">     protocols.append(protocol);
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsWebSocketh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/WebSocket.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/WebSocket.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/websockets/WebSocket.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -54,10 +54,10 @@
</span><span class="cx">     static void setIsAvailable(bool);
</span><span class="cx">     static bool isAvailable();
</span><span class="cx">     static const char* subProtocolSeperator();
</span><del>-    static PassRefPtr&lt;WebSocket&gt; create(ScriptExecutionContext&amp;);
-    static PassRefPtr&lt;WebSocket&gt; create(ScriptExecutionContext&amp;, const String&amp; url, ExceptionCode&amp;);
-    static PassRefPtr&lt;WebSocket&gt; create(ScriptExecutionContext&amp;, const String&amp; url, const String&amp; protocol, ExceptionCode&amp;);
-    static PassRefPtr&lt;WebSocket&gt; create(ScriptExecutionContext&amp;, const String&amp; url, const Vector&lt;String&gt;&amp; protocols, ExceptionCode&amp;);
</del><ins>+    static Ref&lt;WebSocket&gt; create(ScriptExecutionContext&amp;);
+    static RefPtr&lt;WebSocket&gt; create(ScriptExecutionContext&amp;, const String&amp; url, ExceptionCode&amp;);
+    static RefPtr&lt;WebSocket&gt; create(ScriptExecutionContext&amp;, const String&amp; url, const String&amp; protocol, ExceptionCode&amp;);
+    static RefPtr&lt;WebSocket&gt; create(ScriptExecutionContext&amp;, const String&amp; url, const Vector&lt;String&gt;&amp; protocols, ExceptionCode&amp;);
</ins><span class="cx">     virtual ~WebSocket();
</span><span class="cx"> 
</span><span class="cx">     enum State {
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsWebSocketChannelh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/WebSocketChannel.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/WebSocketChannel.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/websockets/WebSocketChannel.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> {
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;WebSocketChannel&gt; create(Document* document, WebSocketChannelClient* client) { return adoptRef(new WebSocketChannel(document, client)); }
</del><ins>+    static Ref&lt;WebSocketChannel&gt; create(Document* document, WebSocketChannelClient* client) { return adoptRef(*new WebSocketChannel(document, client)); }
</ins><span class="cx">     virtual ~WebSocketChannel();
</span><span class="cx"> 
</span><span class="cx">     bool send(const char* data, int length);
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebsocketsWorkerThreadableWebSocketChannelh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -55,9 +55,9 @@
</span><span class="cx"> class WorkerThreadableWebSocketChannel : public RefCounted&lt;WorkerThreadableWebSocketChannel&gt;, public ThreadableWebSocketChannel {
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;ThreadableWebSocketChannel&gt; create(WorkerGlobalScope* workerGlobalScope, WebSocketChannelClient* client, const String&amp; taskMode)
</del><ins>+    static Ref&lt;ThreadableWebSocketChannel&gt; create(WorkerGlobalScope* workerGlobalScope, WebSocketChannelClient* client, const String&amp; taskMode)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WorkerThreadableWebSocketChannel(workerGlobalScope, client, taskMode));
</del><ins>+        return adoptRef(*new WorkerThreadableWebSocketChannel(workerGlobalScope, client, taskMode));
</ins><span class="cx">     }
</span><span class="cx">     virtual ~WorkerThreadableWebSocketChannel();
</span><span class="cx"> 
</span><span class="lines">@@ -126,9 +126,9 @@
</span><span class="cx">     // Bridge for Peer.  Running on the worker thread.
</span><span class="cx">     class Bridge : public RefCounted&lt;Bridge&gt; {
</span><span class="cx">     public:
</span><del>-        static PassRefPtr&lt;Bridge&gt; create(PassRefPtr&lt;ThreadableWebSocketChannelClientWrapper&gt; workerClientWrapper, PassRefPtr&lt;WorkerGlobalScope&gt; workerGlobalScope, const String&amp; taskMode)
</del><ins>+        static Ref&lt;Bridge&gt; create(PassRefPtr&lt;ThreadableWebSocketChannelClientWrapper&gt; workerClientWrapper, PassRefPtr&lt;WorkerGlobalScope&gt; workerGlobalScope, const String&amp; taskMode)
</ins><span class="cx">         {
</span><del>-            return adoptRef(new Bridge(workerClientWrapper, workerGlobalScope, taskMode));
</del><ins>+            return adoptRef(*new Bridge(workerClientWrapper, workerGlobalScope, taskMode));
</ins><span class="cx">         }
</span><span class="cx">         ~Bridge();
</span><span class="cx">         void initialize();
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingInsertListCommandh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/InsertListCommand.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/InsertListCommand.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/editing/InsertListCommand.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -37,9 +37,9 @@
</span><span class="cx"> public:
</span><span class="cx">     enum Type { OrderedList, UnorderedList };
</span><span class="cx"> 
</span><del>-    static RefPtr&lt;InsertListCommand&gt; create(Document&amp; document, Type listType)
</del><ins>+    static Ref&lt;InsertListCommand&gt; create(Document&amp; document, Type listType)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new InsertListCommand(document, listType));
</del><ins>+        return adoptRef(*new InsertListCommand(document, listType));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     static RefPtr&lt;HTMLElement&gt; insertList(Document&amp;, Type);
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/Worker.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/Worker.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/workers/Worker.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -72,28 +72,28 @@
</span><span class="cx">     ASSERT_UNUSED(addResult, addResult.isNewEntry);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Worker&gt; Worker::create(ScriptExecutionContext&amp; context, const String&amp; url, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;Worker&gt; Worker::create(ScriptExecutionContext&amp; context, const String&amp; url, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(isMainThread());
</span><span class="cx"> 
</span><span class="cx">     // We don't currently support nested workers, so workers can only be created from documents.
</span><span class="cx">     ASSERT_WITH_SECURITY_IMPLICATION(context.isDocument());
</span><span class="cx"> 
</span><del>-    RefPtr&lt;Worker&gt; worker = adoptRef(new Worker(context));
</del><ins>+    Ref&lt;Worker&gt; worker = adoptRef(*new Worker(context));
</ins><span class="cx"> 
</span><span class="cx">     worker-&gt;suspendIfNeeded();
</span><span class="cx"> 
</span><span class="cx">     URL scriptURL = worker-&gt;resolveURL(url, ec);
</span><span class="cx">     if (scriptURL.isEmpty())
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     // The worker context does not exist while loading, so we must ensure that the worker object is not collected, nor are its event listeners.
</span><del>-    worker-&gt;setPendingActivity(worker.get());
</del><ins>+    worker-&gt;setPendingActivity(worker.ptr());
</ins><span class="cx"> 
</span><span class="cx">     worker-&gt;m_scriptLoader = WorkerScriptLoader::create();
</span><del>-    worker-&gt;m_scriptLoader-&gt;loadAsynchronously(&amp;context, scriptURL, DenyCrossOriginRequests, worker.get());
</del><ins>+    worker-&gt;m_scriptLoader-&gt;loadAsynchronously(&amp;context, scriptURL, DenyCrossOriginRequests, worker.ptr());
</ins><span class="cx"> 
</span><del>-    return worker.release();
</del><ins>+    return WTF::move(worker);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Worker::~Worker()
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/Worker.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/Worker.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/workers/Worker.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> 
</span><span class="cx">     class Worker final : public AbstractWorker, public ActiveDOMObject, private WorkerScriptLoaderClient {
</span><span class="cx">     public:
</span><del>-        static PassRefPtr&lt;Worker&gt; create(ScriptExecutionContext&amp;, const String&amp; url, ExceptionCode&amp;);
</del><ins>+        static RefPtr&lt;Worker&gt; create(ScriptExecutionContext&amp;, const String&amp; url, ExceptionCode&amp;);
</ins><span class="cx">         virtual ~Worker();
</span><span class="cx"> 
</span><span class="cx">         virtual EventTargetInterface eventTargetInterface() const override { return WorkerEventTargetInterfaceType; }
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXPathExpressioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XPathExpression.cpp (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XPathExpression.cpp        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/xml/XPathExpression.cpp        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -45,24 +45,24 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;XPathExpression&gt; XPathExpression::createExpression(const String&amp; expression, XPathNSResolver* resolver, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;XPathExpression&gt; XPathExpression::createExpression(const String&amp; expression, XPathNSResolver* resolver, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     auto parsedExpression = Parser::parseStatement(expression, resolver, ec);
</span><span class="cx">     if (!parsedExpression)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><del>-    return adoptRef(new XPathExpression(WTF::move(parsedExpression)));
</del><ins>+    return adoptRef(*new XPathExpression(WTF::move(parsedExpression)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> XPathExpression::~XPathExpression()
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;XPathResult&gt; XPathExpression::evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;XPathResult&gt; XPathExpression::evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!isValidContextNode(contextNode)) {
</span><span class="cx">         ec = NOT_SUPPORTED_ERR;
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     EvaluationContext&amp; evaluationContext = Expression::evaluationContext();
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx">             return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return result;
</del><ins>+    return WTF::move(result);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXPathExpressionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XPathExpression.h (184708 => 184709)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XPathExpression.h        2015-05-21 07:26:50 UTC (rev 184708)
+++ trunk/Source/WebCore/xml/XPathExpression.h        2015-05-21 07:26:55 UTC (rev 184709)
</span><span class="lines">@@ -44,10 +44,10 @@
</span><span class="cx"> 
</span><span class="cx">     class XPathExpression : public RefCounted&lt;XPathExpression&gt; {
</span><span class="cx">     public:
</span><del>-        static PassRefPtr&lt;XPathExpression&gt; createExpression(const String&amp; expression, XPathNSResolver*, ExceptionCode&amp;);
</del><ins>+        static RefPtr&lt;XPathExpression&gt; createExpression(const String&amp; expression, XPathNSResolver*, ExceptionCode&amp;);
</ins><span class="cx">         ~XPathExpression();
</span><span class="cx">         
</span><del>-        PassRefPtr&lt;XPathResult&gt; evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionCode&amp;);
</del><ins>+        RefPtr&lt;XPathResult&gt; evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionCode&amp;);
</ins><span class="cx">             
</span><span class="cx">     private:
</span><span class="cx">         explicit XPathExpression(std::unique_ptr&lt;XPath::Expression&gt;);
</span></span></pre>
</div>
</div>

</body>
</html>