<!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>[189905] 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/189905">189905</a></dd>
<dt>Author</dt> <dd>gyuyoung.kim@webkit.org</dd>
<dt>Date</dt> <dd>2015-09-16 22:40:02 -0700 (Wed, 16 Sep 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>Remove all uses of PassRefPtr in WebCore/inspector
https://bugs.webkit.org/show_bug.cgi?id=149156
Reviewed by Darin Adler.
* inspector/DOMEditor.cpp:
(WebCore::DOMEditor::InsertBeforeAction::InsertBeforeAction):
(WebCore::DOMEditor::ReplaceChildNodeAction::ReplaceChildNodeAction):
(WebCore::DOMEditor::insertBefore):
(WebCore::DOMEditor::replaceChild):
* inspector/DOMEditor.h:
* inspector/DOMPatchSupport.cpp:
(WebCore::DOMPatchSupport::removeChildAndMoveToNew):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::highlightSelector):
* inspector/InspectorDatabaseAgent.cpp:
(WebCore::InspectorDatabaseAgent::didOpenDatabase):
* inspector/InspectorDatabaseAgent.h:
* inspector/InspectorDatabaseInstrumentation.h:
* inspector/InspectorDatabaseResource.h:
(WebCore::InspectorDatabaseResource::setDatabase):
* inspector/InspectorFrontendHost.cpp:
(WebCore::FrontendMenuProvider::create):
* inspector/InspectorInstrumentation.cpp:
(WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
* inspector/InspectorLayerTreeAgent.h:
* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::highlightNodeList):
* inspector/InspectorOverlay.h:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::sharedBufferContent):
* inspector/InspectorPageAgent.h:
* inspector/InspectorResourceAgent.cpp:
* inspector/InspectorTimelineAgent.cpp:
(WebCore::startProfiling):
(WebCore::stopProfiling):
(WebCore::InspectorTimelineAgent::stopFromConsole):
* inspector/InspectorTimelineAgent.h:
* inspector/InspectorWorkerResource.h:
(WebCore::InspectorWorkerResource::create):
* inspector/InstrumentingAgents.h:
* inspector/NetworkResourcesData.cpp:
(WebCore::createOtherResourceTextDecoder):
(WebCore::NetworkResourcesData::addResourceSharedBuffer):
* inspector/NetworkResourcesData.h:
* inspector/TimelineRecordFactory.cpp:
(WebCore::createQuad):
* inspector/WebInjectedScriptHost.h:
* inspector/WebInjectedScriptManager.cpp:
(WebCore::WebInjectedScriptManager::WebInjectedScriptManager):
* inspector/WebInjectedScriptManager.h:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreinspectorDOMEditorcpp">trunk/Source/WebCore/inspector/DOMEditor.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorDOMEditorh">trunk/Source/WebCore/inspector/DOMEditor.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorDOMPatchSupportcpp">trunk/Source/WebCore/inspector/DOMPatchSupport.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMAgentcpp">trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDatabaseAgentcpp">trunk/Source/WebCore/inspector/InspectorDatabaseAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDatabaseAgenth">trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDatabaseInstrumentationh">trunk/Source/WebCore/inspector/InspectorDatabaseInstrumentation.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDatabaseResourceh">trunk/Source/WebCore/inspector/InspectorDatabaseResource.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendHostcpp">trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorInstrumentationcpp">trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorLayerTreeAgenth">trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorOverlaycpp">trunk/Source/WebCore/inspector/InspectorOverlay.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorOverlayh">trunk/Source/WebCore/inspector/InspectorOverlay.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorPageAgentcpp">trunk/Source/WebCore/inspector/InspectorPageAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorPageAgenth">trunk/Source/WebCore/inspector/InspectorPageAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorResourceAgentcpp">trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorTimelineAgentcpp">trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorTimelineAgenth">trunk/Source/WebCore/inspector/InspectorTimelineAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorWorkerResourceh">trunk/Source/WebCore/inspector/InspectorWorkerResource.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInstrumentingAgentsh">trunk/Source/WebCore/inspector/InstrumentingAgents.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorNetworkResourcesDatacpp">trunk/Source/WebCore/inspector/NetworkResourcesData.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorNetworkResourcesDatah">trunk/Source/WebCore/inspector/NetworkResourcesData.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorTimelineRecordFactorycpp">trunk/Source/WebCore/inspector/TimelineRecordFactory.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorWebInjectedScriptHosth">trunk/Source/WebCore/inspector/WebInjectedScriptHost.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorWebInjectedScriptManagercpp">trunk/Source/WebCore/inspector/WebInjectedScriptManager.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorWebInjectedScriptManagerh">trunk/Source/WebCore/inspector/WebInjectedScriptManager.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/ChangeLog        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -1,3 +1,57 @@
</span><ins>+2015-09-16 Gyuyoung Kim <gyuyoung.kim@webkit.org>
+
+ Remove all uses of PassRefPtr in WebCore/inspector
+ https://bugs.webkit.org/show_bug.cgi?id=149156
+
+ Reviewed by Darin Adler.
+
+ * inspector/DOMEditor.cpp:
+ (WebCore::DOMEditor::InsertBeforeAction::InsertBeforeAction):
+ (WebCore::DOMEditor::ReplaceChildNodeAction::ReplaceChildNodeAction):
+ (WebCore::DOMEditor::insertBefore):
+ (WebCore::DOMEditor::replaceChild):
+ * inspector/DOMEditor.h:
+ * inspector/DOMPatchSupport.cpp:
+ (WebCore::DOMPatchSupport::removeChildAndMoveToNew):
+ * inspector/InspectorDOMAgent.cpp:
+ (WebCore::InspectorDOMAgent::highlightSelector):
+ * inspector/InspectorDatabaseAgent.cpp:
+ (WebCore::InspectorDatabaseAgent::didOpenDatabase):
+ * inspector/InspectorDatabaseAgent.h:
+ * inspector/InspectorDatabaseInstrumentation.h:
+ * inspector/InspectorDatabaseResource.h:
+ (WebCore::InspectorDatabaseResource::setDatabase):
+ * inspector/InspectorFrontendHost.cpp:
+ (WebCore::FrontendMenuProvider::create):
+ * inspector/InspectorInstrumentation.cpp:
+ (WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
+ * inspector/InspectorLayerTreeAgent.h:
+ * inspector/InspectorOverlay.cpp:
+ (WebCore::InspectorOverlay::highlightNodeList):
+ * inspector/InspectorOverlay.h:
+ * inspector/InspectorPageAgent.cpp:
+ (WebCore::InspectorPageAgent::sharedBufferContent):
+ * inspector/InspectorPageAgent.h:
+ * inspector/InspectorResourceAgent.cpp:
+ * inspector/InspectorTimelineAgent.cpp:
+ (WebCore::startProfiling):
+ (WebCore::stopProfiling):
+ (WebCore::InspectorTimelineAgent::stopFromConsole):
+ * inspector/InspectorTimelineAgent.h:
+ * inspector/InspectorWorkerResource.h:
+ (WebCore::InspectorWorkerResource::create):
+ * inspector/InstrumentingAgents.h:
+ * inspector/NetworkResourcesData.cpp:
+ (WebCore::createOtherResourceTextDecoder):
+ (WebCore::NetworkResourcesData::addResourceSharedBuffer):
+ * inspector/NetworkResourcesData.h:
+ * inspector/TimelineRecordFactory.cpp:
+ (WebCore::createQuad):
+ * inspector/WebInjectedScriptHost.h:
+ * inspector/WebInjectedScriptManager.cpp:
+ (WebCore::WebInjectedScriptManager::WebInjectedScriptManager):
+ * inspector/WebInjectedScriptManager.h:
+
</ins><span class="cx"> 2015-09-16 Brady Eidson <beidson@apple.com>
</span><span class="cx">
</span><span class="cx"> Have window.indexedDB.open return an IDBOpenDBRequest.
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorDOMEditorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/DOMEditor.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/DOMEditor.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/DOMEditor.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -79,10 +79,10 @@
</span><span class="cx"> class DOMEditor::InsertBeforeAction : public InspectorHistory::Action {
</span><span class="cx"> WTF_MAKE_NONCOPYABLE(InsertBeforeAction);
</span><span class="cx"> public:
</span><del>- InsertBeforeAction(Node* parentNode, PassRefPtr<Node> node, Node* anchorNode)
</del><ins>+ InsertBeforeAction(Node* parentNode, RefPtr<Node>&& node, Node* anchorNode)
</ins><span class="cx"> : InspectorHistory::Action("InsertBefore")
</span><span class="cx"> , m_parentNode(parentNode)
</span><del>- , m_node(node)
</del><ins>+ , m_node(WTF::move(node))
</ins><span class="cx"> , m_anchorNode(anchorNode)
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="lines">@@ -281,10 +281,10 @@
</span><span class="cx"> class DOMEditor::ReplaceChildNodeAction : public InspectorHistory::Action {
</span><span class="cx"> WTF_MAKE_NONCOPYABLE(ReplaceChildNodeAction);
</span><span class="cx"> public:
</span><del>- ReplaceChildNodeAction(Node* parentNode, PassRefPtr<Node> newNode, Node* oldNode)
</del><ins>+ ReplaceChildNodeAction(Node* parentNode, RefPtr<Node>&& newNode, Node* oldNode)
</ins><span class="cx"> : InspectorHistory::Action("ReplaceChildNode")
</span><span class="cx"> , m_parentNode(parentNode)
</span><del>- , m_newNode(newNode)
</del><ins>+ , m_newNode(WTF::move(newNode))
</ins><span class="cx"> , m_oldNode(oldNode)
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="lines">@@ -348,9 +348,9 @@
</span><span class="cx">
</span><span class="cx"> DOMEditor::~DOMEditor() { }
</span><span class="cx">
</span><del>-bool DOMEditor::insertBefore(Node* parentNode, PassRefPtr<Node> node, Node* anchorNode, ExceptionCode& ec)
</del><ins>+bool DOMEditor::insertBefore(Node* parentNode, RefPtr<Node>&& node, Node* anchorNode, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- return m_history->perform(std::make_unique<InsertBeforeAction>(parentNode, node, anchorNode), ec);
</del><ins>+ return m_history->perform(std::make_unique<InsertBeforeAction>(parentNode, WTF::move(node), anchorNode), ec);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool DOMEditor::removeChild(Node* parentNode, Node* node, ExceptionCode& ec)
</span><span class="lines">@@ -383,9 +383,9 @@
</span><span class="cx"> return m_history->perform(std::make_unique<ReplaceWholeTextAction>(textNode, text), ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool DOMEditor::replaceChild(Node* parentNode, PassRefPtr<Node> newNode, Node* oldNode, ExceptionCode& ec)
</del><ins>+bool DOMEditor::replaceChild(Node* parentNode, RefPtr<Node>&& newNode, Node* oldNode, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- return m_history->perform(std::make_unique<ReplaceChildNodeAction>(parentNode, newNode, oldNode), ec);
</del><ins>+ return m_history->perform(std::make_unique<ReplaceChildNodeAction>(parentNode, WTF::move(newNode), oldNode), ec);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool DOMEditor::setNodeValue(Node* node, const String& value, ExceptionCode& ec)
</span><span class="lines">@@ -401,10 +401,10 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>-bool DOMEditor::insertBefore(Node* parentNode, PassRefPtr<Node> node, Node* anchorNode, ErrorString& errorString)
</del><ins>+bool DOMEditor::insertBefore(Node* parentNode, RefPtr<Node>&& node, Node* anchorNode, ErrorString& errorString)
</ins><span class="cx"> {
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- bool result = insertBefore(parentNode, node, anchorNode, ec);
</del><ins>+ bool result = insertBefore(parentNode, WTF::move(node), anchorNode, ec);
</ins><span class="cx"> populateErrorString(ec, errorString);
</span><span class="cx"> return result;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorDOMEditorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/DOMEditor.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/DOMEditor.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/DOMEditor.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -50,16 +50,16 @@
</span><span class="cx"> explicit DOMEditor(InspectorHistory*);
</span><span class="cx"> ~DOMEditor();
</span><span class="cx">
</span><del>- bool insertBefore(Node* parentNode, PassRefPtr<Node>, Node* anchorNode, ExceptionCode&);
</del><ins>+ bool insertBefore(Node* parentNode, RefPtr<Node>&&, Node* anchorNode, ExceptionCode&);
</ins><span class="cx"> bool removeChild(Node* parentNode, Node*, ExceptionCode&);
</span><span class="cx"> bool setAttribute(Element*, const String& name, const String& value, ExceptionCode&);
</span><span class="cx"> bool removeAttribute(Element*, const String& name, ExceptionCode&);
</span><span class="cx"> bool setOuterHTML(Node&, const String& html, Node** newNode, ExceptionCode&);
</span><span class="cx"> bool replaceWholeText(Text*, const String& text, ExceptionCode&);
</span><del>- bool replaceChild(Node* parentNode, PassRefPtr<Node> newNode, Node* oldNode, ExceptionCode&);
</del><ins>+ bool replaceChild(Node* parentNode, RefPtr<Node>&& newNode, Node* oldNode, ExceptionCode&);
</ins><span class="cx"> bool setNodeValue(Node* parentNode, const String& value, ExceptionCode&);
</span><span class="cx">
</span><del>- bool insertBefore(Node* parentNode, PassRefPtr<Node>, Node* anchorNode, ErrorString&);
</del><ins>+ bool insertBefore(Node* parentNode, RefPtr<Node>&&, Node* anchorNode, ErrorString&);
</ins><span class="cx"> bool removeChild(Node* parentNode, Node*, ErrorString&);
</span><span class="cx"> bool setAttribute(Element*, const String& name, const String& value, ErrorString&);
</span><span class="cx"> bool removeAttribute(Element*, const String& name, ErrorString&);
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorDOMPatchSupportcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/DOMPatchSupport.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/DOMPatchSupport.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/DOMPatchSupport.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -468,7 +468,7 @@
</span><span class="cx"> if (it != m_unusedNodesMap.end()) {
</span><span class="cx"> Digest* newDigest = it->value;
</span><span class="cx"> Node* newNode = newDigest->m_node;
</span><del>- if (!m_domEditor->replaceChild(newNode->parentNode(), oldNode, newNode, ec))
</del><ins>+ if (!m_domEditor->replaceChild(newNode->parentNode(), WTF::move(oldNode), newNode, ec))
</ins><span class="cx"> return false;
</span><span class="cx"> newDigest->m_node = oldNode.get();
</span><span class="cx"> markNodeAsUsed(newDigest);
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -1112,7 +1112,7 @@
</span><span class="cx"> if (!highlightConfig)
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- m_overlay->highlightNodeList(nodes, *highlightConfig);
</del><ins>+ m_overlay->highlightNodeList(WTF::move(nodes), *highlightConfig);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void InspectorDOMAgent::highlightNode(ErrorString& errorString, const InspectorObject& highlightInspectorObject, const int* nodeId, const String* objectId)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDatabaseAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDatabaseAgent.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDatabaseAgent.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorDatabaseAgent.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -193,14 +193,14 @@
</span><span class="cx">
</span><span class="cx"> } // namespace
</span><span class="cx">
</span><del>-void InspectorDatabaseAgent::didOpenDatabase(PassRefPtr<Database> database, const String& domain, const String& name, const String& version)
</del><ins>+void InspectorDatabaseAgent::didOpenDatabase(RefPtr<Database>&& database, const String& domain, const String& name, const String& version)
</ins><span class="cx"> {
</span><span class="cx"> if (InspectorDatabaseResource* resource = findByFileName(database->fileName())) {
</span><del>- resource->setDatabase(database);
</del><ins>+ resource->setDatabase(WTF::move(database));
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<InspectorDatabaseResource> resource = InspectorDatabaseResource::create(database, domain, name, version);
</del><ins>+ RefPtr<InspectorDatabaseResource> resource = InspectorDatabaseResource::create(WTF::move(database), domain, name, version);
</ins><span class="cx"> m_resources.set(resource->id(), resource);
</span><span class="cx"> // Resources are only bound while visible.
</span><span class="cx"> if (m_enabled)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDatabaseAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> // Called from the injected script.
</span><span class="cx"> String databaseId(Database*);
</span><span class="cx">
</span><del>- void didOpenDatabase(PassRefPtr<Database>, const String& domain, const String& name, const String& version);
</del><ins>+ void didOpenDatabase(RefPtr<Database>&&, const String& domain, const String& name, const String& version);
</ins><span class="cx"> private:
</span><span class="cx"> Database* databaseForId(const String& databaseId);
</span><span class="cx"> InspectorDatabaseResource* findByFileName(const String& fileName);
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDatabaseInstrumentationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDatabaseInstrumentation.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDatabaseInstrumentation.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorDatabaseInstrumentation.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx">
</span><span class="cx"> #include "Database.h"
</span><span class="cx"> #include "InspectorInstrumentation.h"
</span><del>-#include <wtf/PassRefPtr.h>
</del><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDatabaseResourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDatabaseResource.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDatabaseResource.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorDatabaseResource.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">
</span><span class="cx"> void bind(Inspector::DatabaseFrontendDispatcher*);
</span><span class="cx"> Database* database() { return m_database.get(); }
</span><del>- void setDatabase(RefPtr<Database>&& database) { m_database = database; }
</del><ins>+ void setDatabase(RefPtr<Database>&& database) { m_database = WTF::move(database); }
</ins><span class="cx"> String id() const { return m_id; }
</span><span class="cx">
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendHostcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -59,9 +59,9 @@
</span><span class="cx"> #if ENABLE(CONTEXT_MENUS)
</span><span class="cx"> class FrontendMenuProvider : public ContextMenuProvider {
</span><span class="cx"> public:
</span><del>- static PassRefPtr<FrontendMenuProvider> create(InspectorFrontendHost* frontendHost, Deprecated::ScriptObject frontendApiObject, const Vector<ContextMenuItem>& items)
</del><ins>+ static Ref<FrontendMenuProvider> create(InspectorFrontendHost* frontendHost, Deprecated::ScriptObject frontendApiObject, const Vector<ContextMenuItem>& items)
</ins><span class="cx"> {
</span><del>- return adoptRef(new FrontendMenuProvider(frontendHost, frontendApiObject, items));
</del><ins>+ return adoptRef(*new FrontendMenuProvider(frontendHost, frontendApiObject, items));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void disconnect()
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorInstrumentationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -973,7 +973,7 @@
</span><span class="cx"> if (!instrumentingAgents.inspectorEnvironment().developerExtrasEnabled())
</span><span class="cx"> return;
</span><span class="cx"> if (InspectorDatabaseAgent* dbAgent = instrumentingAgents.inspectorDatabaseAgent())
</span><del>- dbAgent->didOpenDatabase(database, domain, name, version);
</del><ins>+ dbAgent->didOpenDatabase(WTF::move(database), domain, name, version);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void InspectorInstrumentation::didDispatchDOMStorageEventImpl(InstrumentingAgents& instrumentingAgents, const String& key, const String& oldValue, const String& newValue, StorageType storageType, SecurityOrigin* securityOrigin, Page* page)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorLayerTreeAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -34,7 +34,6 @@
</span><span class="cx"> #include <inspector/InspectorFrontendDispatchers.h>
</span><span class="cx"> #include <inspector/InspectorProtocolObjects.h>
</span><span class="cx"> #include "RenderLayer.h"
</span><del>-#include <wtf/PassRefPtr.h>
</del><span class="cx"> #include <wtf/Vector.h>
</span><span class="cx"> #include <wtf/text/WTFString.h>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorOverlaycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorOverlay.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorOverlay.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorOverlay.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -259,10 +259,10 @@
</span><span class="cx"> update();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void InspectorOverlay::highlightNodeList(PassRefPtr<NodeList> nodes, const HighlightConfig& highlightConfig)
</del><ins>+void InspectorOverlay::highlightNodeList(RefPtr<NodeList>&& nodes, const HighlightConfig& highlightConfig)
</ins><span class="cx"> {
</span><span class="cx"> m_nodeHighlightConfig = highlightConfig;
</span><del>- m_highlightNodeList = nodes;
</del><ins>+ m_highlightNodeList = WTF::move(nodes);
</ins><span class="cx"> m_highlightNode = nullptr;
</span><span class="cx"> update();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorOverlayh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorOverlay.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorOverlay.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorOverlay.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx"> void setPausedInDebuggerMessage(const String*);
</span><span class="cx">
</span><span class="cx"> void hideHighlight();
</span><del>- void highlightNodeList(PassRefPtr<NodeList>, const HighlightConfig&);
</del><ins>+ void highlightNodeList(RefPtr<NodeList>&&, const HighlightConfig&);
</ins><span class="cx"> void highlightNode(Node*, const HighlightConfig&);
</span><span class="cx"> void highlightQuad(std::unique_ptr<FloatQuad>, const HighlightConfig&);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorPageAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorPageAgent.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -191,7 +191,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // static
</span><del>-bool InspectorPageAgent::sharedBufferContent(PassRefPtr<SharedBuffer> buffer, const String& textEncodingName, bool withBase64Encode, String* result)
</del><ins>+bool InspectorPageAgent::sharedBufferContent(RefPtr<SharedBuffer>&& buffer, const String& textEncodingName, bool withBase64Encode, String* result)
</ins><span class="cx"> {
</span><span class="cx"> return dataContent(buffer ? buffer->data() : nullptr, buffer ? buffer->size() : 0, textEncodingName, withBase64Encode, result);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorPageAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorPageAgent.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> static bool cachedResourceContent(CachedResource*, String* result, bool* base64Encoded);
</span><del>- static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& textEncodingName, bool withBase64Encode, String* result);
</del><ins>+ static bool sharedBufferContent(RefPtr<SharedBuffer>&&, const String& textEncodingName, bool withBase64Encode, String* result);
</ins><span class="cx"> static void resourceContent(ErrorString&, Frame*, const URL&, String* result, bool* base64Encoded);
</span><span class="cx"> static String sourceMapURLForResource(CachedResource*);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorResourceAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -81,8 +81,8 @@
</span><span class="cx"> class InspectorThreadableLoaderClient final : public ThreadableLoaderClient {
</span><span class="cx"> WTF_MAKE_NONCOPYABLE(InspectorThreadableLoaderClient);
</span><span class="cx"> public:
</span><del>- InspectorThreadableLoaderClient(PassRefPtr<LoadResourceCallback> callback)
- : m_callback(callback) { }
</del><ins>+ InspectorThreadableLoaderClient(RefPtr<LoadResourceCallback>&& callback)
+ : m_callback(WTF::move(callback)) { }
</ins><span class="cx">
</span><span class="cx"> virtual ~InspectorThreadableLoaderClient() { }
</span><span class="cx">
</span><span class="lines">@@ -140,9 +140,9 @@
</span><span class="cx"> dispose();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- void setLoader(PassRefPtr<ThreadableLoader> loader)
</del><ins>+ void setLoader(RefPtr<ThreadableLoader>&& loader)
</ins><span class="cx"> {
</span><del>- m_loader = loader;
</del><ins>+ m_loader = WTF::move(loader);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorTimelineAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -223,19 +223,19 @@
</span><span class="cx"> m_scriptDebugServer = scriptDebugServer;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static inline void startProfiling(JSC::ExecState* exec, const String& title, PassRefPtr<Stopwatch> stopwatch)
</del><ins>+static inline void startProfiling(JSC::ExecState* exec, const String& title, RefPtr<Stopwatch>&& stopwatch)
</ins><span class="cx"> {
</span><del>- JSC::LegacyProfiler::profiler()->startProfiling(exec, title, stopwatch);
</del><ins>+ JSC::LegacyProfiler::profiler()->startProfiling(exec, title, WTF::move(stopwatch));
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-static inline PassRefPtr<JSC::Profile> stopProfiling(JSC::ExecState* exec, const String& title)
</del><ins>+static inline RefPtr<JSC::Profile> stopProfiling(JSC::ExecState* exec, const String& title)
</ins><span class="cx"> {
</span><span class="cx"> return JSC::LegacyProfiler::profiler()->stopProfiling(exec, title);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static inline void startProfiling(Frame* frame, const String& title, PassRefPtr<Stopwatch> stopwatch)
</del><ins>+static inline void startProfiling(Frame* frame, const String& title, RefPtr<Stopwatch>&& stopwatch)
</ins><span class="cx"> {
</span><del>- startProfiling(toJSDOMWindow(frame, debuggerWorld())->globalExec(), title, stopwatch);
</del><ins>+ startProfiling(toJSDOMWindow(frame, debuggerWorld())->globalExec(), title, WTF::move(stopwatch));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static inline PassRefPtr<JSC::Profile> stopProfiling(Frame* frame, const String& title)
</span><span class="lines">@@ -264,7 +264,7 @@
</span><span class="cx"> m_pendingConsoleProfileRecords.append(createRecordEntry(TimelineRecordFactory::createConsoleProfileData(title), TimelineRecordType::ConsoleProfile, true, frameFromExecState(exec)));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<JSC::Profile> InspectorTimelineAgent::stopFromConsole(JSC::ExecState* exec, const String& title)
</del><ins>+RefPtr<JSC::Profile> InspectorTimelineAgent::stopFromConsole(JSC::ExecState* exec, const String& title)
</ins><span class="cx"> {
</span><span class="cx"> // Stop profiles in reverse order. If the title is empty, then stop the last profile.
</span><span class="cx"> // Otherwise, match the title of the profile to stop.
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorTimelineAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorTimelineAgent.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorTimelineAgent.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorTimelineAgent.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -134,7 +134,7 @@
</span><span class="cx">
</span><span class="cx"> // Methods called from WebCore.
</span><span class="cx"> void startFromConsole(JSC::ExecState*, const String &title);
</span><del>- PassRefPtr<JSC::Profile> stopFromConsole(JSC::ExecState*, const String& title);
</del><ins>+ RefPtr<JSC::Profile> stopFromConsole(JSC::ExecState*, const String& title);
</ins><span class="cx">
</span><span class="cx"> // InspectorInstrumentation callbacks.
</span><span class="cx"> void didInstallTimer(int timerId, int timeout, bool singleShot, Frame*);
</span><span class="lines">@@ -198,8 +198,11 @@
</span><span class="cx"> struct TimelineRecordEntry {
</span><span class="cx"> TimelineRecordEntry()
</span><span class="cx"> : type(TimelineRecordType::EventDispatch) { }
</span><del>- TimelineRecordEntry(PassRefPtr<Inspector::InspectorObject> record, PassRefPtr<Inspector::InspectorObject> data, PassRefPtr<Inspector::InspectorArray> children, TimelineRecordType type)
- : record(record), data(data), children(children), type(type)
</del><ins>+ TimelineRecordEntry(RefPtr<Inspector::InspectorObject>&& record, RefPtr<Inspector::InspectorObject>&& data, RefPtr<Inspector::InspectorArray>&& children, TimelineRecordType type)
+ : record(WTF::move(record))
+ , data(WTF::move(data))
+ , children(WTF::move(children))
+ , type(type)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorWorkerResourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorWorkerResource.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorWorkerResource.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InspectorWorkerResource.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -31,7 +31,6 @@
</span><span class="cx"> #ifndef InspectorWorkerResource_h
</span><span class="cx"> #define InspectorWorkerResource_h
</span><span class="cx">
</span><del>-#include <wtf/PassRefPtr.h>
</del><span class="cx"> #include <wtf/RefCounted.h>
</span><span class="cx"> #include <wtf/RefPtr.h>
</span><span class="cx"> #include <wtf/text/WTFString.h>
</span><span class="lines">@@ -40,9 +39,9 @@
</span><span class="cx">
</span><span class="cx"> class InspectorWorkerResource : public RefCounted<InspectorWorkerResource> {
</span><span class="cx"> public:
</span><del>- static PassRefPtr<InspectorWorkerResource> create(intptr_t id, const String& url, bool isSharedWorker)
</del><ins>+ static Ref<InspectorWorkerResource> create(intptr_t id, const String& url, bool isSharedWorker)
</ins><span class="cx"> {
</span><del>- return adoptRef(new InspectorWorkerResource(id, url, isSharedWorker));
</del><ins>+ return adoptRef(*new InspectorWorkerResource(id, url, isSharedWorker));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> intptr_t id() const { return m_id; }
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInstrumentingAgentsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InstrumentingAgents.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InstrumentingAgents.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/InstrumentingAgents.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -35,7 +35,6 @@
</span><span class="cx"> #include <inspector/InspectorEnvironment.h>
</span><span class="cx"> #include <wtf/FastMalloc.h>
</span><span class="cx"> #include <wtf/Noncopyable.h>
</span><del>-#include <wtf/PassRefPtr.h>
</del><span class="cx"> #include <wtf/RefCounted.h>
</span><span class="cx">
</span><span class="cx"> namespace Inspector {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorNetworkResourcesDatacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/NetworkResourcesData.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/NetworkResourcesData.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/NetworkResourcesData.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -136,7 +136,7 @@
</span><span class="cx"> m_requestIdToResourceDataMap.set(requestId, new ResourceData(requestId, loaderId));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<TextResourceDecoder> createOtherResourceTextDecoder(const String& mimeType, const String& textEncodingName)
</del><ins>+static RefPtr<TextResourceDecoder> createOtherResourceTextDecoder(const String& mimeType, const String& textEncodingName)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<TextResourceDecoder> decoder;
</span><span class="cx"> if (!textEncodingName.isEmpty())
</span><span class="lines">@@ -237,12 +237,12 @@
</span><span class="cx"> resourceData->setCachedResource(cachedResource);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void NetworkResourcesData::addResourceSharedBuffer(const String& requestId, PassRefPtr<SharedBuffer> buffer, const String& textEncodingName)
</del><ins>+void NetworkResourcesData::addResourceSharedBuffer(const String& requestId, RefPtr<SharedBuffer>&& buffer, const String& textEncodingName)
</ins><span class="cx"> {
</span><span class="cx"> ResourceData* resourceData = resourceDataForRequestId(requestId);
</span><span class="cx"> if (!resourceData)
</span><span class="cx"> return;
</span><del>- resourceData->setBuffer(buffer);
</del><ins>+ resourceData->setBuffer(WTF::move(buffer));
</ins><span class="cx"> resourceData->setTextEncodingName(textEncodingName);
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorNetworkResourcesDatah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/NetworkResourcesData.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/NetworkResourcesData.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/NetworkResourcesData.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -129,7 +129,7 @@
</span><span class="cx"> void maybeAddResourceData(const String& requestId, const char* data, size_t dataLength);
</span><span class="cx"> void maybeDecodeDataToContent(const String& requestId);
</span><span class="cx"> void addCachedResource(const String& requestId, CachedResource*);
</span><del>- void addResourceSharedBuffer(const String& requestId, PassRefPtr<SharedBuffer>, const String& textEncodingName);
</del><ins>+ void addResourceSharedBuffer(const String& requestId, RefPtr<SharedBuffer>&&, const String& textEncodingName);
</ins><span class="cx"> ResourceData const* data(const String& requestId);
</span><span class="cx"> Vector<String> removeCachedResource(CachedResource*);
</span><span class="cx"> void clear(const String& preservedLoaderId = String());
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorTimelineRecordFactorycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/TimelineRecordFactory.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/TimelineRecordFactory.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/TimelineRecordFactory.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -183,9 +183,9 @@
</span><span class="cx"> return WTF::move(data);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static PassRefPtr<InspectorArray> createQuad(const FloatQuad& quad)
</del><ins>+static Ref<InspectorArray> createQuad(const FloatQuad& quad)
</ins><span class="cx"> {
</span><del>- RefPtr<InspectorArray> array = InspectorArray::create();
</del><ins>+ Ref<InspectorArray> array = InspectorArray::create();
</ins><span class="cx"> array->pushDouble(quad.p1().x());
</span><span class="cx"> array->pushDouble(quad.p1().y());
</span><span class="cx"> array->pushDouble(quad.p2().x());
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorWebInjectedScriptHosth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/WebInjectedScriptHost.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/WebInjectedScriptHost.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/WebInjectedScriptHost.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx">
</span><span class="cx"> class WebInjectedScriptHost final : public Inspector::InjectedScriptHost {
</span><span class="cx"> public:
</span><del>- static PassRefPtr<WebInjectedScriptHost> create() { return adoptRef(new WebInjectedScriptHost); }
</del><ins>+ static Ref<WebInjectedScriptHost> create() { return adoptRef(*new WebInjectedScriptHost); }
</ins><span class="cx">
</span><span class="cx"> virtual JSC::JSValue subtype(JSC::ExecState*, JSC::JSValue) override;
</span><span class="cx"> virtual bool isHTMLAllCollection(JSC::JSValue) override;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorWebInjectedScriptManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/WebInjectedScriptManager.cpp (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/WebInjectedScriptManager.cpp        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/WebInjectedScriptManager.cpp        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -33,8 +33,8 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-WebInjectedScriptManager::WebInjectedScriptManager(InspectorEnvironment& environment, PassRefPtr<InjectedScriptHost> host)
- : InjectedScriptManager(environment, host)
</del><ins>+WebInjectedScriptManager::WebInjectedScriptManager(InspectorEnvironment& environment, RefPtr<InjectedScriptHost>&& host)
+ : InjectedScriptManager(environment, WTF::move(host))
</ins><span class="cx"> , m_commandLineAPIHost(CommandLineAPIHost::create())
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorWebInjectedScriptManagerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/WebInjectedScriptManager.h (189904 => 189905)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/WebInjectedScriptManager.h        2015-09-17 05:22:41 UTC (rev 189904)
+++ trunk/Source/WebCore/inspector/WebInjectedScriptManager.h        2015-09-17 05:40:02 UTC (rev 189905)
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx">
</span><span class="cx"> class WebInjectedScriptManager final : public Inspector::InjectedScriptManager {
</span><span class="cx"> public:
</span><del>- WebInjectedScriptManager(Inspector::InspectorEnvironment&, PassRefPtr<Inspector::InjectedScriptHost>);
</del><ins>+ WebInjectedScriptManager(Inspector::InspectorEnvironment&, RefPtr<Inspector::InjectedScriptHost>&&);
</ins><span class="cx"> virtual ~WebInjectedScriptManager() { }
</span><span class="cx">
</span><span class="cx"> CommandLineAPIHost* commandLineAPIHost() const { return m_commandLineAPIHost.get(); }
</span></span></pre>
</div>
</div>
</body>
</html>