<!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>[208330] trunk/Source/WebKit2</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/208330">208330</a></dd>
<dt>Author</dt> <dd>achristensen@apple.com</dd>
<dt>Date</dt> <dd>2016-11-03 10:47:37 -0700 (Thu, 03 Nov 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Reduce PassRefPtr use in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=164360

Reviewed by Tim Horton.

* Shared/API/APISecurityOrigin.h:
(API::SecurityOrigin::SecurityOrigin):
* Shared/API/APISerializedScriptValue.h:
(API::SerializedScriptValue::create):
(API::SerializedScriptValue::SerializedScriptValue):
* Shared/API/c/WKSharedAPICast.h:
(WebKit::ProxyingRefPtr::ProxyingRefPtr):
(WebKit::toAPI):
* Shared/APIWebArchive.h:
* Shared/APIWebArchive.mm:
(API::WebArchive::create):
(API::WebArchive::WebArchive):
* UIProcess/API/APIHitTestResult.cpp:
(API::HitTestResult::create):
* UIProcess/API/APIHitTestResult.h:
* UIProcess/API/APIUIClient.h:
(API::UIClient::createNewPage):
* UIProcess/API/C/WKPage.cpp:
(WebKit::RunBeforeUnloadConfirmPanelResultListener::create):
(WebKit::RunBeforeUnloadConfirmPanelResultListener::RunBeforeUnloadConfirmPanelResultListener):
(WebKit::RunJavaScriptAlertResultListener::create):
(WebKit::RunJavaScriptAlertResultListener::RunJavaScriptAlertResultListener):
(WebKit::RunJavaScriptConfirmResultListener::create):
(WebKit::RunJavaScriptConfirmResultListener::RunJavaScriptConfirmResultListener):
(WebKit::RunJavaScriptPromptResultListener::create):
(WebKit::RunJavaScriptPromptResultListener::RunJavaScriptPromptResultListener):
(WKPageSetPageUIClient):
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _takeViewSnapshot]):
* UIProcess/API/Cocoa/WKWebViewInternal.h:
* UIProcess/Cocoa/UIDelegate.h:
* UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::UIClient::createNewPage):
* UIProcess/ios/WKGeolocationProviderIOS.mm:
(-[WKWebAllowDenyPolicyListener initWithPermissionRequestProxy:]):
* UIProcess/mac/WKImmediateActionController.mm:
(-[WKImmediateActionController _webHitTestResult]):
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(contextMenuItems):
(WKBundlePageCopyContextMenuItems):
(WKBundlePageCopyContextMenuAtPointInWindow):
* WebProcess/UserContent/WebUserContentController.cpp:
(WebKit::WebUserMessageHandlerDescriptorProxy::create):
* WebProcess/WebPage/WebUndoStep.cpp:
(WebKit::WebUndoStep::create):
* WebProcess/WebPage/WebUndoStep.h:
(WebKit::WebUndoStep::WebUndoStep):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIAPISecurityOriginh">trunk/Source/WebKit2/Shared/API/APISecurityOrigin.h</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIAPISerializedScriptValueh">trunk/Source/WebKit2/Shared/API/APISerializedScriptValue.h</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKSharedAPICasth">trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIWebArchiveh">trunk/Source/WebKit2/Shared/APIWebArchive.h</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIWebArchivemm">trunk/Source/WebKit2/Shared/APIWebArchive.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIAPIHitTestResultcpp">trunk/Source/WebKit2/UIProcess/API/APIHitTestResult.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIAPIHitTestResulth">trunk/Source/WebKit2/UIProcess/API/APIHitTestResult.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIAPIUIClienth">trunk/Source/WebKit2/UIProcess/API/APIUIClient.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPagecpp">trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKWebViewmm">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKWebViewInternalh">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewInternal.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitUIClientcpp">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitUIClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaUIDelegateh">trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaUIDelegatemm">trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessiosWKGeolocationProviderIOSmm">trunk/Source/WebKit2/UIProcess/ios/WKGeolocationProviderIOS.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWKImmediateActionControllermm">trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlePagecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessUserContentWebUserContentControllercpp">trunk/Source/WebKit2/WebProcess/UserContent/WebUserContentController.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebUndoStepcpp">trunk/Source/WebKit2/WebProcess/WebPage/WebUndoStep.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebUndoSteph">trunk/Source/WebKit2/WebProcess/WebPage/WebUndoStep.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/ChangeLog        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -1,3 +1,58 @@
</span><ins>+2016-11-02  Alex Christensen  &lt;achristensen@webkit.org&gt;
+
+        Reduce PassRefPtr use in WebKit2
+        https://bugs.webkit.org/show_bug.cgi?id=164360
+
+        Reviewed by Tim Horton.
+
+        * Shared/API/APISecurityOrigin.h:
+        (API::SecurityOrigin::SecurityOrigin):
+        * Shared/API/APISerializedScriptValue.h:
+        (API::SerializedScriptValue::create):
+        (API::SerializedScriptValue::SerializedScriptValue):
+        * Shared/API/c/WKSharedAPICast.h:
+        (WebKit::ProxyingRefPtr::ProxyingRefPtr):
+        (WebKit::toAPI):
+        * Shared/APIWebArchive.h:
+        * Shared/APIWebArchive.mm:
+        (API::WebArchive::create):
+        (API::WebArchive::WebArchive):
+        * UIProcess/API/APIHitTestResult.cpp:
+        (API::HitTestResult::create):
+        * UIProcess/API/APIHitTestResult.h:
+        * UIProcess/API/APIUIClient.h:
+        (API::UIClient::createNewPage):
+        * UIProcess/API/C/WKPage.cpp:
+        (WebKit::RunBeforeUnloadConfirmPanelResultListener::create):
+        (WebKit::RunBeforeUnloadConfirmPanelResultListener::RunBeforeUnloadConfirmPanelResultListener):
+        (WebKit::RunJavaScriptAlertResultListener::create):
+        (WebKit::RunJavaScriptAlertResultListener::RunJavaScriptAlertResultListener):
+        (WebKit::RunJavaScriptConfirmResultListener::create):
+        (WebKit::RunJavaScriptConfirmResultListener::RunJavaScriptConfirmResultListener):
+        (WebKit::RunJavaScriptPromptResultListener::create):
+        (WebKit::RunJavaScriptPromptResultListener::RunJavaScriptPromptResultListener):
+        (WKPageSetPageUIClient):
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _takeViewSnapshot]):
+        * UIProcess/API/Cocoa/WKWebViewInternal.h:
+        * UIProcess/Cocoa/UIDelegate.h:
+        * UIProcess/Cocoa/UIDelegate.mm:
+        (WebKit::UIDelegate::UIClient::createNewPage):
+        * UIProcess/ios/WKGeolocationProviderIOS.mm:
+        (-[WKWebAllowDenyPolicyListener initWithPermissionRequestProxy:]):
+        * UIProcess/mac/WKImmediateActionController.mm:
+        (-[WKImmediateActionController _webHitTestResult]):
+        * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
+        (contextMenuItems):
+        (WKBundlePageCopyContextMenuItems):
+        (WKBundlePageCopyContextMenuAtPointInWindow):
+        * WebProcess/UserContent/WebUserContentController.cpp:
+        (WebKit::WebUserMessageHandlerDescriptorProxy::create):
+        * WebProcess/WebPage/WebUndoStep.cpp:
+        (WebKit::WebUndoStep::create):
+        * WebProcess/WebPage/WebUndoStep.h:
+        (WebKit::WebUndoStep::WebUndoStep):
+
</ins><span class="cx"> 2016-11-01  Gavin Barraclough  &lt;barraclough@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove PageThrottler &amp; all related code
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIAPISecurityOriginh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/APISecurityOrigin.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/APISecurityOrigin.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/Shared/API/APISecurityOrigin.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -27,7 +27,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIObject.h&quot;
</span><span class="cx"> #include &lt;WebCore/SecurityOrigin.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace API {
</span><span class="cx"> 
</span><span class="lines">@@ -51,8 +50,8 @@
</span><span class="cx">     WebCore::SecurityOrigin&amp; securityOrigin() const { return *m_securityOrigin; }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    SecurityOrigin(PassRefPtr&lt;WebCore::SecurityOrigin&gt; securityOrigin)
-        : m_securityOrigin(securityOrigin)
</del><ins>+    SecurityOrigin(RefPtr&lt;WebCore::SecurityOrigin&gt;&amp;&amp; securityOrigin)
+        : m_securityOrigin(WTFMove(securityOrigin))
</ins><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIAPISerializedScriptValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/APISerializedScriptValue.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/APISerializedScriptValue.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/Shared/API/APISerializedScriptValue.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -36,9 +36,9 @@
</span><span class="cx"> 
</span><span class="cx"> class SerializedScriptValue : public API::ObjectImpl&lt;API::Object::Type::SerializedScriptValue&gt; {
</span><span class="cx"> public:
</span><del>-    static Ref&lt;SerializedScriptValue&gt; create(PassRefPtr&lt;WebCore::SerializedScriptValue&gt; serializedValue)
</del><ins>+    static Ref&lt;SerializedScriptValue&gt; create(RefPtr&lt;WebCore::SerializedScriptValue&gt;&amp;&amp; serializedValue)
</ins><span class="cx">     {
</span><del>-        return adoptRef(*new SerializedScriptValue(serializedValue));
</del><ins>+        return adoptRef(*new SerializedScriptValue(WTFMove(serializedValue)));
</ins><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     static RefPtr&lt;SerializedScriptValue&gt; create(JSContextRef context, JSValueRef value, JSValueRef* exception)
</span><span class="lines">@@ -68,8 +68,8 @@
</span><span class="cx">     WebCore::SerializedScriptValue* internalRepresentation() { return m_serializedScriptValue.get(); }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    explicit SerializedScriptValue(PassRefPtr&lt;WebCore::SerializedScriptValue&gt; serializedScriptValue)
-        : m_serializedScriptValue(serializedScriptValue)
</del><ins>+    explicit SerializedScriptValue(RefPtr&lt;WebCore::SerializedScriptValue&gt;&amp;&amp; serializedScriptValue)
+        : m_serializedScriptValue(WTFMove(serializedScriptValue))
</ins><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKSharedAPICasth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -23,9 +23,9 @@
</span><span class="cx">  * THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#ifndef WKSharedAPICast_h
-#define WKSharedAPICast_h
</del><ins>+#pragma once
</ins><span class="cx"> 
</span><ins>+#include &quot;APIArray.h&quot;
</ins><span class="cx"> #include &quot;APIError.h&quot;
</span><span class="cx"> #include &quot;APINumber.h&quot;
</span><span class="cx"> #include &quot;APISecurityOrigin.h&quot;
</span><span class="lines">@@ -136,8 +136,8 @@
</span><span class="cx"> template&lt;typename ImplType, typename APIType = typename ImplTypeInfo&lt;ImplType&gt;::APIType&gt;
</span><span class="cx"> class ProxyingRefPtr {
</span><span class="cx"> public:
</span><del>-    ProxyingRefPtr(PassRefPtr&lt;ImplType&gt; impl)
-        : m_impl(impl)
</del><ins>+    ProxyingRefPtr(RefPtr&lt;ImplType&gt;&amp;&amp; impl)
+        : m_impl(WTFMove(impl))
</ins><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -154,6 +154,11 @@
</span><span class="cx"> 
</span><span class="cx"> /* Special cases. */
</span><span class="cx"> 
</span><ins>+inline ProxyingRefPtr&lt;API::Array&gt; toAPI(Ref&lt;API::Array&gt;&amp;&amp; array)
+{
+    return ProxyingRefPtr&lt;API::Array&gt;(WTFMove(array));
+}
+
</ins><span class="cx"> inline ProxyingRefPtr&lt;API::String&gt; toAPI(StringImpl* string)
</span><span class="cx"> {
</span><span class="cx">     return ProxyingRefPtr&lt;API::String&gt;(API::String::create(string));
</span><span class="lines">@@ -996,5 +1001,3 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebKit
</span><del>-
-#endif // WKSharedAPICast_h
</del></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIWebArchiveh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/APIWebArchive.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/APIWebArchive.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/Shared/APIWebArchive.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -23,13 +23,12 @@
</span><span class="cx">  * THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#ifndef WebArchive_h
-#define WebArchive_h
</del><ins>+#pragma once
</ins><span class="cx"> 
</span><span class="cx"> #if PLATFORM(COCOA)
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIObject.h&quot;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><ins>+#include &lt;wtf/Ref.h&gt;
</ins><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace API {
</span><span class="lines">@@ -50,9 +49,9 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~WebArchive();
</span><span class="cx"> 
</span><del>-    static Ref&lt;WebArchive&gt; create(WebArchiveResource* mainResource, PassRefPtr&lt;API::Array&gt; subresources, PassRefPtr&lt;API::Array&gt; subframeArchives);
</del><ins>+    static Ref&lt;WebArchive&gt; create(WebArchiveResource* mainResource, RefPtr&lt;API::Array&gt;&amp;&amp; subresources, RefPtr&lt;API::Array&gt;&amp;&amp; subframeArchives);
</ins><span class="cx">     static Ref&lt;WebArchive&gt; create(API::Data*);
</span><del>-    static Ref&lt;WebArchive&gt; create(PassRefPtr&lt;WebCore::LegacyWebArchive&gt;);
</del><ins>+    static Ref&lt;WebArchive&gt; create(RefPtr&lt;WebCore::LegacyWebArchive&gt;&amp;&amp;);
</ins><span class="cx">     static Ref&lt;WebArchive&gt; create(WebCore::Range*);
</span><span class="cx"> 
</span><span class="cx">     WebArchiveResource* mainResource();
</span><span class="lines">@@ -64,9 +63,9 @@
</span><span class="cx">     WebCore::LegacyWebArchive* coreLegacyWebArchive();
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    WebArchive(WebArchiveResource* mainResource, PassRefPtr&lt;API::Array&gt; subresources, PassRefPtr&lt;API::Array&gt; subframeArchives);
</del><ins>+    WebArchive(WebArchiveResource* mainResource, RefPtr&lt;API::Array&gt;&amp;&amp; subresources, RefPtr&lt;API::Array&gt;&amp;&amp; subframeArchives);
</ins><span class="cx">     WebArchive(API::Data*);
</span><del>-    WebArchive(PassRefPtr&lt;WebCore::LegacyWebArchive&gt;);
</del><ins>+    WebArchive(RefPtr&lt;WebCore::LegacyWebArchive&gt;&amp;&amp;);
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;WebCore::LegacyWebArchive&gt; m_legacyWebArchive;
</span><span class="cx">     RefPtr&lt;WebArchiveResource&gt; m_cachedMainResource;
</span><span class="lines">@@ -77,5 +76,3 @@
</span><span class="cx"> } // namespace API
</span><span class="cx"> 
</span><span class="cx"> #endif // PLATFORM(COCOA)
</span><del>-
-#endif // WebArchive_h
</del></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIWebArchivemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/APIWebArchive.mm (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/APIWebArchive.mm        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/Shared/APIWebArchive.mm        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -38,9 +38,9 @@
</span><span class="cx"> 
</span><span class="cx"> namespace API {
</span><span class="cx"> 
</span><del>-Ref&lt;WebArchive&gt; WebArchive::create(WebArchiveResource* mainResource, PassRefPtr&lt;API::Array&gt; subresources, PassRefPtr&lt;API::Array&gt; subframeArchives)
</del><ins>+Ref&lt;WebArchive&gt; WebArchive::create(WebArchiveResource* mainResource, RefPtr&lt;API::Array&gt;&amp;&amp; subresources, RefPtr&lt;API::Array&gt;&amp;&amp; subframeArchives)
</ins><span class="cx"> {
</span><del>-    return adoptRef(*new WebArchive(mainResource, subresources, subframeArchives));
</del><ins>+    return adoptRef(*new WebArchive(mainResource, WTFMove(subresources), WTFMove(subframeArchives)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Ref&lt;WebArchive&gt; WebArchive::create(API::Data* data)
</span><span class="lines">@@ -48,9 +48,9 @@
</span><span class="cx">     return adoptRef(*new WebArchive(data));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Ref&lt;WebArchive&gt; WebArchive::create(PassRefPtr&lt;LegacyWebArchive&gt; legacyWebArchive)
</del><ins>+Ref&lt;WebArchive&gt; WebArchive::create(RefPtr&lt;LegacyWebArchive&gt;&amp;&amp; legacyWebArchive)
</ins><span class="cx"> {
</span><del>-    return adoptRef(*new WebArchive(legacyWebArchive));
</del><ins>+    return adoptRef(*new WebArchive(WTFMove(legacyWebArchive)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Ref&lt;WebArchive&gt; WebArchive::create(Range* range)
</span><span class="lines">@@ -58,10 +58,10 @@
</span><span class="cx">     return adoptRef(*new WebArchive(LegacyWebArchive::create(range)));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-WebArchive::WebArchive(WebArchiveResource* mainResource, PassRefPtr&lt;API::Array&gt; subresources, PassRefPtr&lt;API::Array&gt; subframeArchives)
</del><ins>+WebArchive::WebArchive(WebArchiveResource* mainResource, RefPtr&lt;API::Array&gt;&amp;&amp; subresources, RefPtr&lt;API::Array&gt;&amp;&amp; subframeArchives)
</ins><span class="cx">     : m_cachedMainResource(mainResource)
</span><del>-    , m_cachedSubresources(subresources)
-    , m_cachedSubframeArchives(subframeArchives)
</del><ins>+    , m_cachedSubresources(WTFMove(subresources))
+    , m_cachedSubframeArchives(WTFMove(subframeArchives))
</ins><span class="cx"> {
</span><span class="cx">     RefPtr&lt;ArchiveResource&gt; coreMainResource = m_cachedMainResource-&gt;coreArchiveResource();
</span><span class="cx"> 
</span><span class="lines">@@ -90,8 +90,8 @@
</span><span class="cx">     m_legacyWebArchive = LegacyWebArchive::create(SharedBuffer::create(data-&gt;bytes(), data-&gt;size()).get());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-WebArchive::WebArchive(PassRefPtr&lt;LegacyWebArchive&gt; legacyWebArchive)
-    : m_legacyWebArchive(legacyWebArchive)
</del><ins>+WebArchive::WebArchive(RefPtr&lt;LegacyWebArchive&gt;&amp;&amp; legacyWebArchive)
+    : m_legacyWebArchive(WTFMove(legacyWebArchive))
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIAPIHitTestResultcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/APIHitTestResult.cpp (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/APIHitTestResult.cpp        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/API/APIHitTestResult.cpp        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -24,9 +24,9 @@
</span><span class="cx"> 
</span><span class="cx"> namespace API {
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;HitTestResult&gt; HitTestResult::create(const WebKit::WebHitTestResultData&amp; hitTestResultData)
</del><ins>+Ref&lt;HitTestResult&gt; HitTestResult::create(const WebKit::WebHitTestResultData&amp; hitTestResultData)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new HitTestResult(hitTestResultData));
</del><ins>+    return adoptRef(*new HitTestResult(hitTestResultData));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace API
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIAPIHitTestResulth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/APIHitTestResult.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/APIHitTestResult.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/API/APIHitTestResult.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -17,8 +17,7 @@
</span><span class="cx">  * Boston, MA 02110-1301, USA.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#ifndef APIHitTestResult_h
-#define APIHitTestResult_h
</del><ins>+#pragma once
</ins><span class="cx"> 
</span><span class="cx"> #include &quot;APIObject.h&quot;
</span><span class="cx"> #include &quot;SharedMemory.h&quot;
</span><span class="lines">@@ -28,7 +27,7 @@
</span><span class="cx"> #include &lt;WebCore/IntRect.h&gt;
</span><span class="cx"> #include &lt;WebCore/PageOverlay.h&gt;
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><ins>+#include &lt;wtf/Ref.h&gt;
</ins><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -49,7 +48,7 @@
</span><span class="cx"> 
</span><span class="cx"> class HitTestResult : public API::ObjectImpl&lt;API::Object::Type::HitTestResult&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;HitTestResult&gt; create(const WebKit::WebHitTestResultData&amp;);
</del><ins>+    static Ref&lt;HitTestResult&gt; create(const WebKit::WebHitTestResultData&amp;);
</ins><span class="cx"> 
</span><span class="cx">     WTF::String absoluteImageURL() const { return m_data.absoluteImageURL; }
</span><span class="cx">     WTF::String absolutePDFURL() const { return m_data.absolutePDFURL; }
</span><span class="lines">@@ -86,5 +85,3 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace API
</span><del>-
-#endif // APIHitTestResult_h
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIAPIUIClienth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/APIUIClient.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/APIUIClient.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/API/APIUIClient.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -23,8 +23,7 @@
</span><span class="cx">  * THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#ifndef APIUIClient_h
-#define APIUIClient_h
</del><ins>+#pragma once
</ins><span class="cx"> 
</span><span class="cx"> #include &quot;WKPage.h&quot;
</span><span class="cx"> #include &quot;WebEvent.h&quot;
</span><span class="lines">@@ -32,7 +31,6 @@
</span><span class="cx"> #include &quot;WebPageProxy.h&quot;
</span><span class="cx"> #include &lt;WebCore/FloatRect.h&gt;
</span><span class="cx"> #include &lt;functional&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> OBJC_CLASS NSArray;
</span><span class="lines">@@ -75,7 +73,7 @@
</span><span class="cx"> public:
</span><span class="cx">     virtual ~UIClient() { }
</span><span class="cx"> 
</span><del>-    virtual PassRefPtr&lt;WebKit::WebPageProxy&gt; createNewPage(WebKit::WebPageProxy*, WebKit::WebFrameProxy*, const WebCore::SecurityOriginData&amp;, const WebCore::ResourceRequest&amp;, const WebCore::WindowFeatures&amp;, const WebKit::NavigationActionData&amp;) { return nullptr; }
</del><ins>+    virtual RefPtr&lt;WebKit::WebPageProxy&gt; createNewPage(WebKit::WebPageProxy*, WebKit::WebFrameProxy*, const WebCore::SecurityOriginData&amp;, const WebCore::ResourceRequest&amp;, const WebCore::WindowFeatures&amp;, const WebKit::NavigationActionData&amp;) { return nullptr; }
</ins><span class="cx">     virtual void showPage(WebKit::WebPageProxy*) { }
</span><span class="cx">     virtual void fullscreenMayReturnToInline(WebKit::WebPageProxy*) { }
</span><span class="cx">     virtual void didEnterFullscreen(WebKit::WebPageProxy*) { }
</span><span class="lines">@@ -173,5 +171,3 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace API
</span><del>-
-#endif // APIUIClient_h
</del></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -1541,9 +1541,9 @@
</span><span class="cx"> 
</span><span class="cx"> class RunBeforeUnloadConfirmPanelResultListener : public API::ObjectImpl&lt;API::Object::Type::RunBeforeUnloadConfirmPanelResultListener&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;RunBeforeUnloadConfirmPanelResultListener&gt; create(Function&lt;void (bool)&gt;&amp;&amp; completionHandler)
</del><ins>+    static Ref&lt;RunBeforeUnloadConfirmPanelResultListener&gt; create(Function&lt;void(bool)&gt;&amp;&amp; completionHandler)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new RunBeforeUnloadConfirmPanelResultListener(WTFMove(completionHandler)));
</del><ins>+        return adoptRef(*new RunBeforeUnloadConfirmPanelResultListener(WTFMove(completionHandler)));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~RunBeforeUnloadConfirmPanelResultListener()
</span><span class="lines">@@ -1556,7 +1556,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    explicit RunBeforeUnloadConfirmPanelResultListener(Function&lt;void (bool)&gt;&amp;&amp; completionHandler)
</del><ins>+    explicit RunBeforeUnloadConfirmPanelResultListener(Function&lt;void(bool)&gt;&amp;&amp; completionHandler)
</ins><span class="cx">         : m_completionHandler(WTFMove(completionHandler))
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="lines">@@ -1566,9 +1566,9 @@
</span><span class="cx"> 
</span><span class="cx"> class RunJavaScriptAlertResultListener : public API::ObjectImpl&lt;API::Object::Type::RunJavaScriptAlertResultListener&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;RunJavaScriptAlertResultListener&gt; create(Function&lt;void ()&gt;&amp;&amp; completionHandler)
</del><ins>+    static Ref&lt;RunJavaScriptAlertResultListener&gt; create(Function&lt;void()&gt;&amp;&amp; completionHandler)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new RunJavaScriptAlertResultListener(WTFMove(completionHandler)));
</del><ins>+        return adoptRef(*new RunJavaScriptAlertResultListener(WTFMove(completionHandler)));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~RunJavaScriptAlertResultListener()
</span><span class="lines">@@ -1581,7 +1581,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    explicit RunJavaScriptAlertResultListener(Function&lt;void ()&gt;&amp;&amp; completionHandler)
</del><ins>+    explicit RunJavaScriptAlertResultListener(Function&lt;void()&gt;&amp;&amp; completionHandler)
</ins><span class="cx">         : m_completionHandler(WTFMove(completionHandler))
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="lines">@@ -1591,9 +1591,9 @@
</span><span class="cx"> 
</span><span class="cx"> class RunJavaScriptConfirmResultListener : public API::ObjectImpl&lt;API::Object::Type::RunJavaScriptConfirmResultListener&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;RunJavaScriptConfirmResultListener&gt; create(Function&lt;void (bool)&gt;&amp;&amp; completionHandler)
</del><ins>+    static Ref&lt;RunJavaScriptConfirmResultListener&gt; create(Function&lt;void(bool)&gt;&amp;&amp; completionHandler)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new RunJavaScriptConfirmResultListener(WTFMove(completionHandler)));
</del><ins>+        return adoptRef(*new RunJavaScriptConfirmResultListener(WTFMove(completionHandler)));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~RunJavaScriptConfirmResultListener()
</span><span class="lines">@@ -1606,7 +1606,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    explicit RunJavaScriptConfirmResultListener(Function&lt;void (bool)&gt;&amp;&amp; completionHandler)
</del><ins>+    explicit RunJavaScriptConfirmResultListener(Function&lt;void(bool)&gt;&amp;&amp; completionHandler)
</ins><span class="cx">         : m_completionHandler(WTFMove(completionHandler))
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="lines">@@ -1616,9 +1616,9 @@
</span><span class="cx"> 
</span><span class="cx"> class RunJavaScriptPromptResultListener : public API::ObjectImpl&lt;API::Object::Type::RunJavaScriptPromptResultListener&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;RunJavaScriptPromptResultListener&gt; create(Function&lt;void (const String&amp;)&gt;&amp;&amp; completionHandler)
</del><ins>+    static Ref&lt;RunJavaScriptPromptResultListener&gt; create(Function&lt;void(const String&amp;)&gt;&amp;&amp; completionHandler)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new RunJavaScriptPromptResultListener(WTFMove(completionHandler)));
</del><ins>+        return adoptRef(*new RunJavaScriptPromptResultListener(WTFMove(completionHandler)));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~RunJavaScriptPromptResultListener()
</span><span class="lines">@@ -1631,7 +1631,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    explicit RunJavaScriptPromptResultListener(Function&lt;void (const String&amp;)&gt;&amp;&amp; completionHandler)
</del><ins>+    explicit RunJavaScriptPromptResultListener(Function&lt;void(const String&amp;)&gt;&amp;&amp; completionHandler)
</ins><span class="cx">         : m_completionHandler(WTFMove(completionHandler))
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="lines">@@ -1703,7 +1703,7 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">     private:
</span><del>-        PassRefPtr&lt;WebPageProxy&gt; createNewPage(WebPageProxy* page, WebFrameProxy* initiatingFrame, const SecurityOriginData&amp; securityOriginData, const ResourceRequest&amp; resourceRequest, const WindowFeatures&amp; windowFeatures, const NavigationActionData&amp; navigationActionData) override
</del><ins>+        RefPtr&lt;WebPageProxy&gt; createNewPage(WebPageProxy* page, WebFrameProxy* initiatingFrame, const SecurityOriginData&amp; securityOriginData, const ResourceRequest&amp; resourceRequest, const WindowFeatures&amp; windowFeatures, const NavigationActionData&amp; navigationActionData) override
</ins><span class="cx">         {
</span><span class="cx">             if (m_client.createNewPage) {
</span><span class="cx">                 auto configuration = page-&gt;configuration().copy();
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -1385,7 +1385,7 @@
</span><span class="cx">     _scaleToRestore = scale;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (PassRefPtr&lt;WebKit::ViewSnapshot&gt;)_takeViewSnapshot
</del><ins>+- (RefPtr&lt;WebKit::ViewSnapshot&gt;)_takeViewSnapshot
</ins><span class="cx"> {
</span><span class="cx">     float deviceScale = WebCore::screenScaleFactor();
</span><span class="cx">     WebCore::FloatSize snapshotSize(self.bounds.size);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKWebViewInternalh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewInternal.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewInternal.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewInternal.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx"> - (void)_restorePageScrollPosition:(WebCore::FloatPoint)scrollPosition scrollOrigin:(WebCore::FloatPoint)scrollOrigin previousObscuredInset:(WebCore::FloatSize)topInset scale:(double)scale;
</span><span class="cx"> - (void)_restorePageStateToUnobscuredCenter:(WebCore::FloatPoint)center scale:(double)scale; // FIXME: needs scroll origin?
</span><span class="cx"> 
</span><del>-- (PassRefPtr&lt;WebKit::ViewSnapshot&gt;)_takeViewSnapshot;
</del><ins>+- (RefPtr&lt;WebKit::ViewSnapshot&gt;)_takeViewSnapshot;
</ins><span class="cx"> 
</span><span class="cx"> - (void)_scrollToContentScrollPosition:(WebCore::FloatPoint)scrollPosition scrollOrigin:(WebCore::IntPoint)scrollOrigin;
</span><span class="cx"> - (BOOL)_scrollToRect:(WebCore::FloatRect)targetRect origin:(WebCore::FloatPoint)origin minimumScrollDistance:(float)minimumScrollDistance;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitUIClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitUIClient.cpp (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitUIClient.cpp        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitUIClient.cpp        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    PassRefPtr&lt;WebPageProxy&gt; createNewPage(WebPageProxy*, WebFrameProxy*, const WebCore::SecurityOriginData&amp;, const WebCore::ResourceRequest&amp; resourceRequest, const WebCore::WindowFeatures&amp; windowFeatures, const NavigationActionData&amp; navigationActionData) override
</del><ins>+    RefPtr&lt;WebPageProxy&gt; createNewPage(WebPageProxy*, WebFrameProxy*, const WebCore::SecurityOriginData&amp;, const WebCore::ResourceRequest&amp; resourceRequest, const WebCore::WindowFeatures&amp; windowFeatures, const NavigationActionData&amp; navigationActionData) override
</ins><span class="cx">     {
</span><span class="cx">         GRefPtr&lt;WebKitURIRequest&gt; request = adoptGRef(webkitURIRequestCreateForResourceRequest(resourceRequest));
</span><span class="cx">         WebKitNavigationAction navigationAction(request.get(), navigationActionData);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaUIDelegateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx"> 
</span><span class="cx">     private:
</span><span class="cx">         // API::UIClient
</span><del>-        PassRefPtr&lt;WebKit::WebPageProxy&gt; createNewPage(WebKit::WebPageProxy*, WebKit::WebFrameProxy*, const WebCore::SecurityOriginData&amp;, const WebCore::ResourceRequest&amp;, const WebCore::WindowFeatures&amp;, const WebKit::NavigationActionData&amp;) override;
</del><ins>+        RefPtr&lt;WebKit::WebPageProxy&gt; createNewPage(WebKit::WebPageProxy*, WebKit::WebFrameProxy*, const WebCore::SecurityOriginData&amp;, const WebCore::ResourceRequest&amp;, const WebCore::WindowFeatures&amp;, const WebKit::NavigationActionData&amp;) override;
</ins><span class="cx">         void close(WebKit::WebPageProxy*) override;
</span><span class="cx">         void fullscreenMayReturnToInline(WebKit::WebPageProxy*) override;
</span><span class="cx">         void didEnterFullscreen(WebKit::WebPageProxy*) override;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaUIDelegatemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -149,7 +149,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebKit::WebPageProxy&gt; UIDelegate::UIClient::createNewPage(WebKit::WebPageProxy* page, WebKit::WebFrameProxy* initiatingFrame, const WebCore::SecurityOriginData&amp; securityOriginData, const WebCore::ResourceRequest&amp; request, const WebCore::WindowFeatures&amp; windowFeatures, const WebKit::NavigationActionData&amp; navigationActionData)
</del><ins>+RefPtr&lt;WebKit::WebPageProxy&gt; UIDelegate::UIClient::createNewPage(WebKit::WebPageProxy* page, WebKit::WebFrameProxy* initiatingFrame, const WebCore::SecurityOriginData&amp; securityOriginData, const WebCore::ResourceRequest&amp; request, const WebCore::WindowFeatures&amp; windowFeatures, const WebKit::NavigationActionData&amp; navigationActionData)
</ins><span class="cx"> {
</span><span class="cx">     if (!m_uiDelegate.m_delegateMethods.webViewCreateWebViewWithConfigurationForNavigationActionWindowFeatures)
</span><span class="cx">         return nullptr;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessiosWKGeolocationProviderIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/ios/WKGeolocationProviderIOS.mm (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/ios/WKGeolocationProviderIOS.mm        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/ios/WKGeolocationProviderIOS.mm        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -39,7 +39,6 @@
</span><span class="cx"> #import &lt;WebGeolocationPosition.h&gt;
</span><span class="cx"> #import &lt;wtf/Assertions.h&gt;
</span><span class="cx"> #import &lt;wtf/HashSet.h&gt;
</span><del>-#import &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #import &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #import &lt;wtf/RetainPtr.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -57,7 +56,7 @@
</span><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> @interface WKWebAllowDenyPolicyListener : NSObject&lt;WebAllowDenyPolicyListener&gt;
</span><del>-- (id)initWithPermissionRequestProxy:(PassRefPtr&lt;GeolocationPermissionRequestProxy&gt;)permissionRequestProxy;
</del><ins>+- (id)initWithPermissionRequestProxy:(RefPtr&lt;GeolocationPermissionRequestProxy&gt;)permissionRequestProxy;
</ins><span class="cx"> - (void)denyOnlyThisRequest NO_RETURN_DUE_TO_ASSERT;
</span><span class="cx"> @end
</span><span class="cx"> 
</span><span class="lines">@@ -226,7 +225,7 @@
</span><span class="cx">     RefPtr&lt;GeolocationPermissionRequestProxy&gt; _permissionRequestProxy;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (id)initWithPermissionRequestProxy:(PassRefPtr&lt;GeolocationPermissionRequestProxy&gt;)permissionRequestProxy
</del><ins>+- (id)initWithPermissionRequestProxy:(RefPtr&lt;GeolocationPermissionRequestProxy&gt;)permissionRequestProxy
</ins><span class="cx"> {
</span><span class="cx">     self = [super init];
</span><span class="cx">     if (!self)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKImmediateActionControllermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -254,7 +254,7 @@
</span><span class="cx">     _page-&gt;setTextIndicatorAnimationProgress(1);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-- (PassRefPtr&lt;API::HitTestResult&gt;)_webHitTestResult
</del><ins>+- (RefPtr&lt;API::HitTestResult&gt;)_webHitTestResult
</ins><span class="cx"> {
</span><span class="cx">     RefPtr&lt;API::HitTestResult&gt; hitTestResult;
</span><span class="cx">     if (_state == ImmediateActionState::Ready)
</span><span class="lines">@@ -262,7 +262,7 @@
</span><span class="cx">     else
</span><span class="cx">         hitTestResult = _page-&gt;lastMouseMoveHitTestResult();
</span><span class="cx"> 
</span><del>-    return WTFMove(hitTestResult);
</del><ins>+    return hitTestResult;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #pragma mark Immediate actions
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlePagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -182,7 +182,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CONTEXT_MENUS)
</span><del>-static PassRefPtr&lt;API::Array&gt; contextMenuItems(const WebContextMenu&amp; contextMenu)
</del><ins>+static Ref&lt;API::Array&gt; contextMenuItems(const WebContextMenu&amp; contextMenu)
</ins><span class="cx"> {
</span><span class="cx">     auto items = contextMenu.items();
</span><span class="cx"> 
</span><span class="lines">@@ -201,7 +201,7 @@
</span><span class="cx"> #if ENABLE(CONTEXT_MENUS)
</span><span class="cx">     WebContextMenu* contextMenu = toImpl(pageRef)-&gt;contextMenu();
</span><span class="cx"> 
</span><del>-    return toAPI(contextMenuItems(*contextMenu).leakRef());
</del><ins>+    return toAPI(contextMenuItems(*contextMenu));
</ins><span class="cx"> #else
</span><span class="cx">     UNUSED_PARAM(pageRef);
</span><span class="cx">     return nullptr;
</span><span class="lines">@@ -215,7 +215,7 @@
</span><span class="cx">     if (!contextMenu)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><del>-    return toAPI(contextMenuItems(*contextMenu).leakRef());
</del><ins>+    return toAPI(contextMenuItems(*contextMenu));
</ins><span class="cx"> #else
</span><span class="cx">     UNUSED_PARAM(pageRef);
</span><span class="cx">     UNUSED_PARAM(point);
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessUserContentWebUserContentControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/UserContent/WebUserContentController.cpp (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/UserContent/WebUserContentController.cpp        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/WebProcess/UserContent/WebUserContentController.cpp        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -208,9 +208,9 @@
</span><span class="cx"> #if ENABLE(USER_MESSAGE_HANDLERS)
</span><span class="cx"> class WebUserMessageHandlerDescriptorProxy : public WebCore::UserMessageHandlerDescriptor {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;WebUserMessageHandlerDescriptorProxy&gt; create(WebUserContentController* controller, const String&amp; name, InjectedBundleScriptWorld&amp; world, uint64_t identifier)
</del><ins>+    static Ref&lt;WebUserMessageHandlerDescriptorProxy&gt; create(WebUserContentController* controller, const String&amp; name, InjectedBundleScriptWorld&amp; world, uint64_t identifier)
</ins><span class="cx">     {
</span><del>-        return adoptRef(new WebUserMessageHandlerDescriptorProxy(controller, name, world, identifier));
</del><ins>+        return adoptRef(*new WebUserMessageHandlerDescriptorProxy(controller, name, world, identifier));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     virtual ~WebUserMessageHandlerDescriptorProxy()
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebUndoStepcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebUndoStep.cpp (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebUndoStep.cpp        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebUndoStep.cpp        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -34,9 +34,9 @@
</span><span class="cx">     return uniqueEntryID++;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Ref&lt;WebUndoStep&gt; WebUndoStep::create(PassRefPtr&lt;WebCore::UndoStep&gt; step)
</del><ins>+Ref&lt;WebUndoStep&gt; WebUndoStep::create(RefPtr&lt;WebCore::UndoStep&gt;&amp;&amp; step)
</ins><span class="cx"> {
</span><del>-    return adoptRef(*new WebUndoStep(step, generateUndoStep()));
</del><ins>+    return adoptRef(*new WebUndoStep(WTFMove(step), generateUndoStep()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WebUndoStep::~WebUndoStep()
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebUndoSteph"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebUndoStep.h (208329 => 208330)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebUndoStep.h        2016-11-03 16:34:33 UTC (rev 208329)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebUndoStep.h        2016-11-03 17:47:37 UTC (rev 208330)
</span><span class="lines">@@ -23,11 +23,9 @@
</span><span class="cx">  * THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#ifndef WebUndoStep_h
-#define WebUndoStep_h
</del><ins>+#pragma once
</ins><span class="cx"> 
</span><span class="cx"> #include &lt;WebCore/UndoStep.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="lines">@@ -34,7 +32,7 @@
</span><span class="cx"> 
</span><span class="cx"> class WebUndoStep : public RefCounted&lt;WebUndoStep&gt; {
</span><span class="cx"> public:
</span><del>-    static Ref&lt;WebUndoStep&gt; create(PassRefPtr&lt;WebCore::UndoStep&gt;);
</del><ins>+    static Ref&lt;WebUndoStep&gt; create(RefPtr&lt;WebCore::UndoStep&gt;&amp;&amp;);
</ins><span class="cx">     ~WebUndoStep();
</span><span class="cx"> 
</span><span class="cx">     WebCore::UndoStep* step() const { return m_step.get(); }
</span><span class="lines">@@ -41,8 +39,8 @@
</span><span class="cx">     uint64_t stepID() const { return m_stepID; }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    WebUndoStep(PassRefPtr&lt;WebCore::UndoStep&gt; step, uint64_t stepID)
-        : m_step(step)
</del><ins>+    WebUndoStep(RefPtr&lt;WebCore::UndoStep&gt;&amp;&amp; step, uint64_t stepID)
+        : m_step(WTFMove(step))
</ins><span class="cx">         , m_stepID(stepID)
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="lines">@@ -52,5 +50,3 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebKit
</span><del>-
-#endif // WebEditCommand_h
</del></span></pre>
</div>
</div>

</body>
</html>