<!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>[164245] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/164245">164245</a></dd>
<dt>Author</dt> <dd>sergio.correia@openbossa.org</dd>
<dt>Date</dt> <dd>2014-02-17 12:35:05 -0800 (Mon, 17 Feb 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
https://bugs.webkit.org/show_bug.cgi?id=128681

Reviewed by Timothy Hatcher.

Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
WebCore/inspector/*. Besides files in there, a few other files in
JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
and WebCore/testing were touched.

Source/JavaScriptCore:

* inspector/ContentSearchUtilities.cpp:
* inspector/ContentSearchUtilities.h:
* inspector/agents/InspectorConsoleAgent.cpp:
* inspector/agents/InspectorConsoleAgent.h:

Source/WebCore:

No new tests; no new behavior.

* WebCore.exp.in:
* inspector/CommandLineAPIHost.cpp:
* inspector/CommandLineAPIHost.h:
* inspector/DOMEditor.cpp:
* inspector/DOMPatchSupport.cpp:
* inspector/DOMPatchSupport.h:
* inspector/InspectorApplicationCacheAgent.h:
* inspector/InspectorCSSAgent.cpp:
* inspector/InspectorCSSAgent.h:
* inspector/InspectorCanvasAgent.h:
* inspector/InspectorDOMAgent.cpp:
* inspector/InspectorDOMAgent.h:
* inspector/InspectorDOMDebuggerAgent.h:
* inspector/InspectorDOMStorageAgent.h:
* inspector/InspectorDatabaseAgent.h:
* inspector/InspectorFrontendClientLocal.cpp:
* inspector/InspectorFrontendClientLocal.h:
* inspector/InspectorHeapProfilerAgent.h:
* inspector/InspectorHistory.cpp:
* inspector/InspectorHistory.h:
* inspector/InspectorIndexedDBAgent.h:
* inspector/InspectorInputAgent.h:
* inspector/InspectorLayerTreeAgent.h:
* inspector/InspectorMemoryAgent.cpp:
* inspector/InspectorMemoryAgent.h:
* inspector/InspectorOverlay.cpp:
* inspector/InspectorOverlay.h:
* inspector/InspectorProfilerAgent.cpp:
* inspector/InspectorProfilerAgent.h:
* inspector/InspectorResourceAgent.cpp:
* inspector/InspectorResourceAgent.h:
* inspector/InspectorStyleSheet.cpp:
* inspector/InspectorStyleSheet.h:
* inspector/InspectorTimelineAgent.h:
* inspector/InspectorWorkerAgent.cpp:
* inspector/PageConsoleAgent.cpp:
* inspector/PageRuntimeAgent.h:
* inspector/WebConsoleAgent.cpp:
* inspector/WorkerRuntimeAgent.h:
* testing/Internals.cpp:

Source/WebKit:

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:

Source/WebKit/cf:

* WebCoreSupport/WebInspectorClientCF.cpp:

Source/WebKit/efl:

* WebCoreSupport/InspectorClientEfl.cpp:

Source/WebKit/gtk:

* WebCoreSupport/InspectorClientGtk.cpp:

Source/WebKit/ios:

* WebCoreSupport/WebInspectorClientIOS.mm:

Source/WebKit/mac:

* WebCoreSupport/WebInspectorClient.h:
* WebCoreSupport/WebInspectorClient.mm:

Source/WebKit/win:

* WebCoreSupport/WebInspectorClient.cpp:
* WebCoreSupport/WebInspectorClient.h:

Source/WebKit2:

* WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectorContentSearchUtilitiescpp">trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectorContentSearchUtilitiesh">trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorConsoleAgentcpp">trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorConsoleAgenth">trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCoreexpin">trunk/Source/WebCore/WebCore.exp.in</a></li>
<li><a href="#trunkSourceWebCoreinspectorCommandLineAPIHostcpp">trunk/Source/WebCore/inspector/CommandLineAPIHost.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorCommandLineAPIHosth">trunk/Source/WebCore/inspector/CommandLineAPIHost.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorDOMEditorcpp">trunk/Source/WebCore/inspector/DOMEditor.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorDOMPatchSupportcpp">trunk/Source/WebCore/inspector/DOMPatchSupport.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorDOMPatchSupporth">trunk/Source/WebCore/inspector/DOMPatchSupport.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorApplicationCacheAgenth">trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorCSSAgentcpp">trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorCSSAgenth">trunk/Source/WebCore/inspector/InspectorCSSAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorCanvasAgenth">trunk/Source/WebCore/inspector/InspectorCanvasAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMAgentcpp">trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMAgenth">trunk/Source/WebCore/inspector/InspectorDOMAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMDebuggerAgenth">trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMStorageAgenth">trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDatabaseAgenth">trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendClientLocalcpp">trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendClientLocalh">trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorHeapProfilerAgenth">trunk/Source/WebCore/inspector/InspectorHeapProfilerAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorHistorycpp">trunk/Source/WebCore/inspector/InspectorHistory.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorHistoryh">trunk/Source/WebCore/inspector/InspectorHistory.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorIndexedDBAgenth">trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorInputAgenth">trunk/Source/WebCore/inspector/InspectorInputAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorLayerTreeAgenth">trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorMemoryAgentcpp">trunk/Source/WebCore/inspector/InspectorMemoryAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorMemoryAgenth">trunk/Source/WebCore/inspector/InspectorMemoryAgent.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="#trunkSourceWebCoreinspectorInspectorProfilerAgentcpp">trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorProfilerAgenth">trunk/Source/WebCore/inspector/InspectorProfilerAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorResourceAgentcpp">trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorResourceAgenth">trunk/Source/WebCore/inspector/InspectorResourceAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorStyleSheetcpp">trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorStyleSheeth">trunk/Source/WebCore/inspector/InspectorStyleSheet.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorTimelineAgenth">trunk/Source/WebCore/inspector/InspectorTimelineAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorWorkerAgentcpp">trunk/Source/WebCore/inspector/InspectorWorkerAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorPageConsoleAgentcpp">trunk/Source/WebCore/inspector/PageConsoleAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorPageRuntimeAgenth">trunk/Source/WebCore/inspector/PageRuntimeAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorWebConsoleAgentcpp">trunk/Source/WebCore/inspector/WebConsoleAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorWorkerRuntimeAgenth">trunk/Source/WebCore/inspector/WorkerRuntimeAgent.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalscpp">trunk/Source/WebCore/testing/Internals.cpp</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebKitvcxprojWebKitExportGeneratorWebKitExportsdefin">trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in</a></li>
<li><a href="#trunkSourceWebKitcfChangeLog">trunk/Source/WebKit/cf/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitcfWebCoreSupportWebInspectorClientCFcpp">trunk/Source/WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp</a></li>
<li><a href="#trunkSourceWebKiteflChangeLog">trunk/Source/WebKit/efl/ChangeLog</a></li>
<li><a href="#trunkSourceWebKiteflWebCoreSupportInspectorClientEflcpp">trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.cpp</a></li>
<li><a href="#trunkSourceWebKitgtkChangeLog">trunk/Source/WebKit/gtk/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitgtkWebCoreSupportInspectorClientGtkcpp">trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp</a></li>
<li><a href="#trunkSourceWebKitiosChangeLog">trunk/Source/WebKit/ios/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitiosWebCoreSupportWebInspectorClientIOSmm">trunk/Source/WebKit/ios/WebCoreSupport/WebInspectorClientIOS.mm</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebInspectorClienth">trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.h</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebInspectorClientmm">trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm</a></li>
<li><a href="#trunkSourceWebKitwinChangeLog">trunk/Source/WebKit/win/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitwinWebCoreSupportWebInspectorClientcpp">trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp</a></li>
<li><a href="#trunkSourceWebKitwinWebCoreSupportWebInspectorClienth">trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.h</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportWebInspectorFrontendClientcpp">trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/JavaScriptCore/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+
+        * inspector/ContentSearchUtilities.cpp:
+        * inspector/ContentSearchUtilities.h:
+        * inspector/agents/InspectorConsoleAgent.cpp:
+        * inspector/agents/InspectorConsoleAgent.h:
+
</ins><span class="cx"> 2014-02-17  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         FTL should support ToPrimitive and the DFG should fold it correctly
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectorContentSearchUtilitiescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -82,7 +82,7 @@
</span><span class="cx">     if (text.isEmpty())
</span><span class="cx">         return result;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;Vector&lt;size_t&gt;&gt; endings(lineEndings(text));
</del><ins>+    std::unique_ptr&lt;Vector&lt;size_t&gt;&gt; endings(lineEndings(text));
</ins><span class="cx">     size_t size = endings-&gt;size();
</span><span class="cx">     unsigned start = 0;
</span><span class="cx">     for (size_t lineNumber = 0; lineNumber &lt; size; ++lineNumber) {
</span><span class="lines">@@ -100,9 +100,9 @@
</span><span class="cx">     return result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassOwnPtr&lt;Vector&lt;size_t&gt;&gt; lineEndings(const String&amp; text)
</del><ins>+std::unique_ptr&lt;Vector&lt;size_t&gt;&gt; lineEndings(const String&amp; text)
</ins><span class="cx"> {
</span><del>-    OwnPtr&lt;Vector&lt;size_t&gt;&gt; result(adoptPtr(new Vector&lt;size_t&gt;()));
</del><ins>+    auto result = std::make_unique&lt;Vector&lt;size_t&gt;&gt;();
</ins><span class="cx"> 
</span><span class="cx">     unsigned start = 0;
</span><span class="cx">     while (start &lt; text.length()) {
</span><span class="lines">@@ -115,7 +115,7 @@
</span><span class="cx">     }
</span><span class="cx">     result-&gt;append(text.length());
</span><span class="cx"> 
</span><del>-    return result.release();
</del><ins>+    return result;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static PassRefPtr&lt;Inspector::TypeBuilder::GenericTypes::SearchMatch&gt; buildObjectForSearchMatch(int lineNumber, const String&amp; lineContent)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectorContentSearchUtilitiesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/JavaScriptCore/inspector/ContentSearchUtilities.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> JS_EXPORT_PRIVATE int countRegularExpressionMatches(const JSC::Yarr::RegularExpression&amp;, const String&amp;);
</span><span class="cx"> JS_EXPORT_PRIVATE PassRefPtr&lt;Inspector::TypeBuilder::Array&lt;Inspector::TypeBuilder::GenericTypes::SearchMatch&gt;&gt; searchInTextByLines(const String&amp; text, const String&amp; query, const bool caseSensitive, const bool isRegex);
</span><span class="cx"> JS_EXPORT_PRIVATE TextPosition textPositionFromOffset(size_t offset, const Vector&lt;size_t&gt;&amp; lineEndings);
</span><del>-JS_EXPORT_PRIVATE PassOwnPtr&lt;Vector&lt;size_t&gt;&gt; lineEndings(const String&amp;);
</del><ins>+JS_EXPORT_PRIVATE std::unique_ptr&lt;Vector&lt;size_t&gt;&gt; lineEndings(const String&amp;);
</ins><span class="cx"> 
</span><span class="cx"> JS_EXPORT_PRIVATE String findScriptSourceURL(const String&amp; content);
</span><span class="cx"> JS_EXPORT_PRIVATE String findScriptSourceMapURL(const String&amp; content);
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorConsoleAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -36,8 +36,6 @@
</span><span class="cx"> #include &quot;ScriptCallStackFactory.h&quot;
</span><span class="cx"> #include &quot;ScriptObject.h&quot;
</span><span class="cx"> #include &lt;wtf/CurrentTime.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/StringBuilder.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -130,7 +128,7 @@
</span><span class="cx">         clearMessages(&amp;error);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    addConsoleMessage(adoptPtr(new ConsoleMessage(!isWorkerAgent(), source, type, level, message, callStack, requestIdentifier)));
</del><ins>+    addConsoleMessage(std::make_unique&lt;ConsoleMessage&gt;(!isWorkerAgent(), source, type, level, message, callStack, requestIdentifier));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void InspectorConsoleAgent::addMessageToConsole(MessageSource source, MessageType type, MessageLevel level, const String&amp; message, JSC::ExecState* state, PassRefPtr&lt;ScriptArguments&gt; arguments, unsigned long requestIdentifier)
</span><span class="lines">@@ -143,7 +141,7 @@
</span><span class="cx">         clearMessages(&amp;error);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    addConsoleMessage(adoptPtr(new ConsoleMessage(!isWorkerAgent(), source, type, level, message, arguments, state, requestIdentifier)));
</del><ins>+    addConsoleMessage(std::make_unique&lt;ConsoleMessage&gt;(!isWorkerAgent(), source, type, level, message, arguments, state, requestIdentifier));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void InspectorConsoleAgent::addMessageToConsole(MessageSource source, MessageType type, MessageLevel level, const String&amp; message, const String&amp; scriptID, unsigned lineNumber, unsigned columnNumber, JSC::ExecState* state, unsigned long requestIdentifier)
</span><span class="lines">@@ -157,7 +155,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     bool canGenerateCallStack = !isWorkerAgent() &amp;&amp; m_frontendDispatcher;
</span><del>-    addConsoleMessage(adoptPtr(new ConsoleMessage(canGenerateCallStack, source, type, level, message, scriptID, lineNumber, columnNumber, state, requestIdentifier)));
</del><ins>+    addConsoleMessage(std::make_unique&lt;ConsoleMessage&gt;(canGenerateCallStack, source, type, level, message, scriptID, lineNumber, columnNumber, state, requestIdentifier));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Vector&lt;unsigned&gt; InspectorConsoleAgent::consoleMessageArgumentCounts() const
</span><span class="lines">@@ -229,7 +227,7 @@
</span><span class="cx">         || type == MessageType::EndGroup;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void InspectorConsoleAgent::addConsoleMessage(PassOwnPtr&lt;ConsoleMessage&gt; consoleMessage)
</del><ins>+void InspectorConsoleAgent::addConsoleMessage(std::unique_ptr&lt;ConsoleMessage&gt; consoleMessage)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(m_injectedScriptManager-&gt;inspectorEnvironment().developerExtrasEnabled());
</span><span class="cx">     ASSERT_ARG(consoleMessage, consoleMessage);
</span><span class="lines">@@ -240,7 +238,7 @@
</span><span class="cx">             m_previousMessage-&gt;updateRepeatCountInConsole(m_frontendDispatcher.get());
</span><span class="cx">     } else {
</span><span class="cx">         m_previousMessage = consoleMessage.get();
</span><del>-        m_consoleMessages.append(consoleMessage);
</del><ins>+        m_consoleMessages.append(std::move(consoleMessage));
</ins><span class="cx">         if (m_frontendDispatcher &amp;&amp; m_enabled)
</span><span class="cx">             m_previousMessage-&gt;addToFrontend(m_frontendDispatcher.get(), m_injectedScriptManager, true);
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorConsoleAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -83,13 +83,13 @@
</span><span class="cx">     void count(JSC::ExecState*, PassRefPtr&lt;ScriptArguments&gt;);
</span><span class="cx"> 
</span><span class="cx"> protected:
</span><del>-    void addConsoleMessage(PassOwnPtr&lt;ConsoleMessage&gt;);
</del><ins>+    void addConsoleMessage(std::unique_ptr&lt;ConsoleMessage&gt;);
</ins><span class="cx"> 
</span><span class="cx">     InjectedScriptManager* m_injectedScriptManager;
</span><span class="cx">     std::unique_ptr&lt;InspectorConsoleFrontendDispatcher&gt; m_frontendDispatcher;
</span><span class="cx">     RefPtr&lt;InspectorConsoleBackendDispatcher&gt; m_backendDispatcher;
</span><span class="cx">     ConsoleMessage* m_previousMessage;
</span><del>-    Vector&lt;OwnPtr&lt;ConsoleMessage&gt;&gt; m_consoleMessages;
</del><ins>+    Vector&lt;std::unique_ptr&lt;ConsoleMessage&gt;&gt; m_consoleMessages;
</ins><span class="cx">     int m_expiredConsoleMessageCount;
</span><span class="cx">     HashMap&lt;String, unsigned&gt; m_counts;
</span><span class="cx">     HashMap&lt;String, double&gt; m_times;
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,58 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        No new tests; no new behavior.
+
+        * WebCore.exp.in:
+        * inspector/CommandLineAPIHost.cpp:
+        * inspector/CommandLineAPIHost.h:
+        * inspector/DOMEditor.cpp:
+        * inspector/DOMPatchSupport.cpp:
+        * inspector/DOMPatchSupport.h:
+        * inspector/InspectorApplicationCacheAgent.h:
+        * inspector/InspectorCSSAgent.cpp:
+        * inspector/InspectorCSSAgent.h:
+        * inspector/InspectorCanvasAgent.h:
+        * inspector/InspectorDOMAgent.cpp:
+        * inspector/InspectorDOMAgent.h:
+        * inspector/InspectorDOMDebuggerAgent.h:
+        * inspector/InspectorDOMStorageAgent.h:
+        * inspector/InspectorDatabaseAgent.h:
+        * inspector/InspectorFrontendClientLocal.cpp:
+        * inspector/InspectorFrontendClientLocal.h:
+        * inspector/InspectorHeapProfilerAgent.h:
+        * inspector/InspectorHistory.cpp:
+        * inspector/InspectorHistory.h:
+        * inspector/InspectorIndexedDBAgent.h:
+        * inspector/InspectorInputAgent.h:
+        * inspector/InspectorLayerTreeAgent.h:
+        * inspector/InspectorMemoryAgent.cpp:
+        * inspector/InspectorMemoryAgent.h:
+        * inspector/InspectorOverlay.cpp:
+        * inspector/InspectorOverlay.h:
+        * inspector/InspectorProfilerAgent.cpp:
+        * inspector/InspectorProfilerAgent.h:
+        * inspector/InspectorResourceAgent.cpp:
+        * inspector/InspectorResourceAgent.h:
+        * inspector/InspectorStyleSheet.cpp:
+        * inspector/InspectorStyleSheet.h:
+        * inspector/InspectorTimelineAgent.h:
+        * inspector/InspectorWorkerAgent.cpp:
+        * inspector/PageConsoleAgent.cpp:
+        * inspector/PageRuntimeAgent.h:
+        * inspector/WebConsoleAgent.cpp:
+        * inspector/WorkerRuntimeAgent.h:
+        * testing/Internals.cpp:
+
</ins><span class="cx"> 2014-02-17  Antti Koivisto  &lt;antti@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Rename Document::m_selfOnlyRefCount to m_referencingNodeCount
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCoreexpin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.exp.in (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.exp.in        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/WebCore.exp.in        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -2833,7 +2833,7 @@
</span><span class="cx"> __ZN7WebCore28InspectorFrontendClientLocal27setTimelineProfilingEnabledEb
</span><span class="cx"> __ZN7WebCore28InspectorFrontendClientLocal30constrainedAttachedWindowWidthEjj
</span><span class="cx"> __ZN7WebCore28InspectorFrontendClientLocal31constrainedAttachedWindowHeightEjj
</span><del>-__ZN7WebCore28InspectorFrontendClientLocalC2EPNS_19InspectorControllerEPNS_4PageEN3WTF10PassOwnPtrINS0_8SettingsEEE
</del><ins>+__ZN7WebCore28InspectorFrontendClientLocalC2EPNS_19InspectorControllerEPNS_4PageENSt3__110unique_ptrINS0_8SettingsENS5_14default_deleteIS7_EEEE
</ins><span class="cx"> __ZN7WebCore28InspectorFrontendClientLocalD2Ev
</span><span class="cx"> __ZN7WebCore4toJSEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEPNS_9DOMWindowE
</span><span class="cx"> __ZN7WebCore9DOMWindow4openERKN3WTF6StringERKNS1_12AtomicStringES4_RS0_S8_
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorCommandLineAPIHostcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/CommandLineAPIHost.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/CommandLineAPIHost.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/CommandLineAPIHost.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -74,7 +74,7 @@
</span><span class="cx">     , m_databaseAgent(nullptr)
</span><span class="cx"> #endif
</span><span class="cx"> {
</span><del>-    m_defaultInspectableObject = adoptPtr(new InspectableObject);
</del><ins>+    m_defaultInspectableObject = std::make_unique&lt;InspectableObject&gt;();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> CommandLineAPIHost::~CommandLineAPIHost()
</span><span class="lines">@@ -124,9 +124,9 @@
</span><span class="cx">     return Deprecated::ScriptValue();
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-void CommandLineAPIHost::addInspectedObject(PassOwnPtr&lt;CommandLineAPIHost::InspectableObject&gt; object)
</del><ins>+void CommandLineAPIHost::addInspectedObject(std::unique_ptr&lt;CommandLineAPIHost::InspectableObject&gt; object)
</ins><span class="cx"> {
</span><del>-    m_inspectedObjects.insert(0, object);
</del><ins>+    m_inspectedObjects.insert(0, std::move(object));
</ins><span class="cx">     while (m_inspectedObjects.size() &gt; 5)
</span><span class="cx">         m_inspectedObjects.removeLast();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorCommandLineAPIHosth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/CommandLineAPIHost.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/CommandLineAPIHost.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/CommandLineAPIHost.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx">         virtual Deprecated::ScriptValue get(JSC::ExecState*);
</span><span class="cx">         virtual ~InspectableObject() { }
</span><span class="cx">     };
</span><del>-    void addInspectedObject(PassOwnPtr&lt;InspectableObject&gt;);
</del><ins>+    void addInspectedObject(std::unique_ptr&lt;InspectableObject&gt;);
</ins><span class="cx">     void clearInspectedObjects();
</span><span class="cx">     InspectableObject* inspectedObject(unsigned index);
</span><span class="cx">     void inspectImpl(PassRefPtr&lt;Inspector::InspectorValue&gt; objectToInspect, PassRefPtr&lt;Inspector::InspectorValue&gt; hints);
</span><span class="lines">@@ -115,8 +115,8 @@
</span><span class="cx">     InspectorDatabaseAgent* m_databaseAgent;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    Vector&lt;OwnPtr&lt;InspectableObject&gt;&gt; m_inspectedObjects;
-    OwnPtr&lt;InspectableObject&gt; m_defaultInspectableObject;
</del><ins>+    Vector&lt;std::unique_ptr&lt;InspectableObject&gt;&gt; m_inspectedObjects;
+    std::unique_ptr&lt;InspectableObject&gt; m_defaultInspectableObject;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorDOMEditorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/DOMEditor.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/DOMEditor.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/DOMEditor.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx">     virtual bool perform(ExceptionCode&amp; ec) override
</span><span class="cx">     {
</span><span class="cx">         if (m_node-&gt;parentNode()) {
</span><del>-            m_removeChildAction = adoptPtr(new RemoveChildAction(m_node-&gt;parentNode(), m_node.get()));
</del><ins>+            m_removeChildAction = std::make_unique&lt;RemoveChildAction&gt;(m_node-&gt;parentNode(), m_node.get());
</ins><span class="cx">             if (!m_removeChildAction-&gt;perform(ec))
</span><span class="cx">                 return false;
</span><span class="cx">         }
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx">     RefPtr&lt;Node&gt; m_parentNode;
</span><span class="cx">     RefPtr&lt;Node&gt; m_node;
</span><span class="cx">     RefPtr&lt;Node&gt; m_anchorNode;
</span><del>-    OwnPtr&lt;RemoveChildAction&gt; m_removeChildAction;
</del><ins>+    std::unique_ptr&lt;RemoveChildAction&gt; m_removeChildAction;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> class DOMEditor::RemoveAttributeAction : public InspectorHistory::Action {
</span><span class="lines">@@ -208,8 +208,8 @@
</span><span class="cx">         , m_nextSibling(node.nextSibling())
</span><span class="cx">         , m_html(html)
</span><span class="cx">         , m_newNode(nullptr)
</span><del>-        , m_history(adoptPtr(new InspectorHistory()))
-        , m_domEditor(adoptPtr(new DOMEditor(m_history.get())))
</del><ins>+        , m_history(std::make_unique&lt;InspectorHistory&gt;())
+        , m_domEditor(std::make_unique&lt;DOMEditor&gt;(m_history.get()))
</ins><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -242,8 +242,8 @@
</span><span class="cx">     String m_html;
</span><span class="cx">     String m_oldHTML;
</span><span class="cx">     Node* m_newNode;
</span><del>-    OwnPtr&lt;InspectorHistory&gt; m_history;
-    OwnPtr&lt;DOMEditor&gt; m_domEditor;
</del><ins>+    std::unique_ptr&lt;InspectorHistory&gt; m_history;
+    std::unique_ptr&lt;DOMEditor&gt; m_domEditor;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> class DOMEditor::ReplaceWholeTextAction : public InspectorHistory::Action {
</span><span class="lines">@@ -352,29 +352,29 @@
</span><span class="cx"> 
</span><span class="cx"> bool DOMEditor::insertBefore(Node* parentNode, PassRefPtr&lt;Node&gt; node, Node* anchorNode, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    return m_history-&gt;perform(adoptPtr(new InsertBeforeAction(parentNode, node, anchorNode)), ec);
</del><ins>+    return m_history-&gt;perform(std::make_unique&lt;InsertBeforeAction&gt;(parentNode, node, anchorNode), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DOMEditor::removeChild(Node* parentNode, Node* node, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    return m_history-&gt;perform(adoptPtr(new RemoveChildAction(parentNode, node)), ec);
</del><ins>+    return m_history-&gt;perform(std::make_unique&lt;RemoveChildAction&gt;(parentNode, node), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DOMEditor::setAttribute(Element* element, const String&amp; name, const String&amp; value, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    return m_history-&gt;perform(adoptPtr(new SetAttributeAction(element, name, value)), ec);
</del><ins>+    return m_history-&gt;perform(std::make_unique&lt;SetAttributeAction&gt;(element, name, value), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DOMEditor::removeAttribute(Element* element, const String&amp; name, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    return m_history-&gt;perform(adoptPtr(new RemoveAttributeAction(element, name)), ec);
</del><ins>+    return m_history-&gt;perform(std::make_unique&lt;RemoveAttributeAction&gt;(element, name), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DOMEditor::setOuterHTML(Node&amp; node, const String&amp; html, Node** newNode, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    OwnPtr&lt;SetOuterHTMLAction&gt; action = adoptPtr(new SetOuterHTMLAction(node, html));
</del><ins>+    auto action = std::make_unique&lt;SetOuterHTMLAction&gt;(node, html);
</ins><span class="cx">     SetOuterHTMLAction* rawAction = action.get();
</span><del>-    bool result = m_history-&gt;perform(action.release(), ec);
</del><ins>+    bool result = m_history-&gt;perform(std::move(action), ec);
</ins><span class="cx">     if (result)
</span><span class="cx">         *newNode = rawAction-&gt;newNode();
</span><span class="cx">     return result;
</span><span class="lines">@@ -382,17 +382,17 @@
</span><span class="cx"> 
</span><span class="cx"> bool DOMEditor::replaceWholeText(Text* textNode, const String&amp; text, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    return m_history-&gt;perform(adoptPtr(new ReplaceWholeTextAction(textNode, text)), ec);
</del><ins>+    return m_history-&gt;perform(std::make_unique&lt;ReplaceWholeTextAction&gt;(textNode, text), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DOMEditor::replaceChild(Node* parentNode, PassRefPtr&lt;Node&gt; newNode, Node* oldNode, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    return m_history-&gt;perform(adoptPtr(new ReplaceChildNodeAction(parentNode, newNode, oldNode)), ec);
</del><ins>+    return m_history-&gt;perform(std::make_unique&lt;ReplaceChildNodeAction&gt;(parentNode, newNode, oldNode), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DOMEditor::setNodeValue(Node* node, const String&amp; value, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    return m_history-&gt;perform(adoptPtr(new SetNodeValueAction(node, value)), ec);
</del><ins>+    return m_history-&gt;perform(std::make_unique&lt;SetNodeValueAction&gt;(node, value), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static void populateErrorString(const ExceptionCode&amp; ec, ErrorString* errorString)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorDOMPatchSupportcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/DOMPatchSupport.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/DOMPatchSupport.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/DOMPatchSupport.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx">     String m_sha1;
</span><span class="cx">     String m_attrsSHA1;
</span><span class="cx">     Node* m_node;
</span><del>-    Vector&lt;OwnPtr&lt;Digest&gt;&gt; m_children;
</del><ins>+    Vector&lt;std::unique_ptr&lt;Digest&gt;&gt; m_children;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> void DOMPatchSupport::patchDocument(Document* document, const String&amp; markup)
</span><span class="lines">@@ -105,8 +105,8 @@
</span><span class="cx">     parser-&gt;finish();
</span><span class="cx">     parser-&gt;detach();
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;Digest&gt; oldInfo = createDigest(m_document-&gt;documentElement(), nullptr);
-    OwnPtr&lt;Digest&gt; newInfo = createDigest(newDocument-&gt;documentElement(), &amp;m_unusedNodesMap);
</del><ins>+    std::unique_ptr&lt;Digest&gt; oldInfo = createDigest(m_document-&gt;documentElement(), nullptr);
+    std::unique_ptr&lt;Digest&gt; newInfo = createDigest(newDocument-&gt;documentElement(), &amp;m_unusedNodesMap);
</ins><span class="cx"> 
</span><span class="cx">     if (!innerPatchNode(oldInfo.get(), newInfo.get(), IGNORE_EXCEPTION)) {
</span><span class="cx">         // Fall back to rewrite.
</span><span class="lines">@@ -133,13 +133,13 @@
</span><span class="cx"> 
</span><span class="cx">     // Compose the old list.
</span><span class="cx">     ContainerNode* parentNode = node.parentNode();
</span><del>-    Vector&lt;OwnPtr&lt;Digest&gt;&gt; oldList;
</del><ins>+    Vector&lt;std::unique_ptr&lt;Digest&gt;&gt; oldList;
</ins><span class="cx">     for (Node* child = parentNode-&gt;firstChild(); child; child = child-&gt;nextSibling())
</span><span class="cx">         oldList.append(createDigest(child, nullptr));
</span><span class="cx"> 
</span><span class="cx">     // Compose the new list.
</span><span class="cx">     String markupCopy = markup.lower();
</span><del>-    Vector&lt;OwnPtr&lt;Digest&gt;&gt; newList;
</del><ins>+    Vector&lt;std::unique_ptr&lt;Digest&gt;&gt; newList;
</ins><span class="cx">     for (Node* child = parentNode-&gt;firstChild(); child != &amp;node; child = child-&gt;nextSibling())
</span><span class="cx">         newList.append(createDigest(child, nullptr));
</span><span class="cx">     for (Node* child = fragment-&gt;firstChild(); child; child = child-&gt;nextSibling()) {
</span><span class="lines">@@ -208,7 +208,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> std::pair&lt;DOMPatchSupport::ResultMap, DOMPatchSupport::ResultMap&gt;
</span><del>-DOMPatchSupport::diff(const Vector&lt;OwnPtr&lt;Digest&gt;&gt;&amp; oldList, const Vector&lt;OwnPtr&lt;Digest&gt;&gt;&amp; newList)
</del><ins>+DOMPatchSupport::diff(const Vector&lt;std::unique_ptr&lt;Digest&gt;&gt;&amp; oldList, const Vector&lt;std::unique_ptr&lt;Digest&gt;&gt;&amp; newList)
</ins><span class="cx"> {
</span><span class="cx">     ResultMap newMap(newList.size());
</span><span class="cx">     ResultMap oldMap(oldList.size());
</span><span class="lines">@@ -295,7 +295,7 @@
</span><span class="cx">     return std::make_pair(oldMap, newMap);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool DOMPatchSupport::innerPatchChildren(ContainerNode* parentNode, const Vector&lt;OwnPtr&lt;Digest&gt;&gt;&amp; oldList, const Vector&lt;OwnPtr&lt;Digest&gt;&gt;&amp; newList, ExceptionCode&amp; ec)
</del><ins>+bool DOMPatchSupport::innerPatchChildren(ContainerNode* parentNode, const Vector&lt;std::unique_ptr&lt;Digest&gt;&gt;&amp; oldList, const Vector&lt;std::unique_ptr&lt;Digest&gt;&gt;&amp; newList, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     std::pair&lt;ResultMap, ResultMap&gt; resultMaps = diff(oldList, newList);
</span><span class="cx">     ResultMap&amp; oldMap = resultMaps.first;
</span><span class="lines">@@ -407,10 +407,9 @@
</span><span class="cx">     sha1.addBytes(reinterpret_cast&lt;const uint8_t*&gt;(cString.data()), cString.length());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassOwnPtr&lt;DOMPatchSupport::Digest&gt; DOMPatchSupport::createDigest(Node* node, UnusedNodesMap* unusedNodesMap)
</del><ins>+std::unique_ptr&lt;DOMPatchSupport::Digest&gt; DOMPatchSupport::createDigest(Node* node, UnusedNodesMap* unusedNodesMap)
</ins><span class="cx"> {
</span><del>-    Digest* digest = new Digest(node);
-
</del><ins>+    auto digest = std::make_unique&lt;Digest&gt;(node);
</ins><span class="cx">     SHA1 sha1;
</span><span class="cx"> 
</span><span class="cx">     Node::NodeType nodeType = node-&gt;nodeType();
</span><span class="lines">@@ -421,10 +420,10 @@
</span><span class="cx">     if (node-&gt;nodeType() == Node::ELEMENT_NODE) {
</span><span class="cx">         Node* child = node-&gt;firstChild();
</span><span class="cx">         while (child) {
</span><del>-            OwnPtr&lt;Digest&gt; childInfo = createDigest(child, unusedNodesMap);
</del><ins>+            std::unique_ptr&lt;Digest&gt; childInfo = createDigest(child, unusedNodesMap);
</ins><span class="cx">             addStringToSHA1(sha1, childInfo-&gt;m_sha1);
</span><span class="cx">             child = child-&gt;nextSibling();
</span><del>-            digest-&gt;m_children.append(childInfo.release());
</del><ins>+            digest-&gt;m_children.append(std::move(childInfo));
</ins><span class="cx">         }
</span><span class="cx">         Element* element = toElement(node);
</span><span class="cx"> 
</span><span class="lines">@@ -445,8 +444,9 @@
</span><span class="cx">     sha1.computeHash(hash);
</span><span class="cx">     digest-&gt;m_sha1 = base64Encode(hash.data(), 10);
</span><span class="cx">     if (unusedNodesMap)
</span><del>-        unusedNodesMap-&gt;add(digest-&gt;m_sha1, digest);
-    return adoptPtr(digest);
</del><ins>+        unusedNodesMap-&gt;add(digest-&gt;m_sha1, digest.get());
+
+    return digest;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool DOMPatchSupport::insertBeforeAndMarkAsUsed(ContainerNode* parentNode, Digest* digest, Node* anchor, ExceptionCode&amp; ec)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorDOMPatchSupporth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/DOMPatchSupport.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/DOMPatchSupport.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/DOMPatchSupport.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -34,8 +34,6 @@
</span><span class="cx"> #include &quot;ExceptionCode.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -65,9 +63,9 @@
</span><span class="cx">     typedef HashMap&lt;String, Digest*&gt; UnusedNodesMap;
</span><span class="cx"> 
</span><span class="cx">     bool innerPatchNode(Digest* oldNode, Digest* newNode, ExceptionCode&amp;);
</span><del>-    std::pair&lt;ResultMap, ResultMap&gt; diff(const Vector&lt;OwnPtr&lt;Digest&gt;&gt;&amp; oldChildren, const Vector&lt;OwnPtr&lt;Digest&gt;&gt;&amp; newChildren);
-    bool innerPatchChildren(ContainerNode*, const Vector&lt;OwnPtr&lt;Digest&gt;&gt;&amp; oldChildren, const Vector&lt;OwnPtr&lt;Digest&gt;&gt;&amp; newChildren, ExceptionCode&amp;);
-    PassOwnPtr&lt;Digest&gt; createDigest(Node*, UnusedNodesMap*);
</del><ins>+    std::pair&lt;ResultMap, ResultMap&gt; diff(const Vector&lt;std::unique_ptr&lt;Digest&gt;&gt;&amp; oldChildren, const Vector&lt;std::unique_ptr&lt;Digest&gt;&gt;&amp; newChildren);
+    bool innerPatchChildren(ContainerNode*, const Vector&lt;std::unique_ptr&lt;Digest&gt;&gt;&amp; oldChildren, const Vector&lt;std::unique_ptr&lt;Digest&gt;&gt;&amp; newChildren, ExceptionCode&amp;);
+    std::unique_ptr&lt;Digest&gt; createDigest(Node*, UnusedNodesMap*);
</ins><span class="cx">     bool insertBeforeAndMarkAsUsed(ContainerNode*, Digest*, Node* anchor, ExceptionCode&amp;);
</span><span class="cx">     bool removeChildAndMoveToNew(Digest*, ExceptionCode&amp;);
</span><span class="cx">     void markNodeAsUsed(Digest*);
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorApplicationCacheAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -32,7 +32,6 @@
</span><span class="cx"> #include &quot;InspectorWebBackendDispatchers.h&quot;
</span><span class="cx"> #include &quot;InspectorWebFrontendDispatchers.h&quot;
</span><span class="cx"> #include &lt;wtf/Noncopyable.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace Inspector {
</span><span class="cx"> class InspectorApplicationCacheFrontendDispatcher;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorCSSAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -165,7 +165,7 @@
</span><span class="cx">     if (!m_namedFlows.isEmpty() &amp;&amp; !m_timer.isActive())
</span><span class="cx">         m_timer.startOneShot(0);
</span><span class="cx"> }
</span><del>-    
</del><ins>+
</ins><span class="cx"> class ChangeRegionOversetTask {
</span><span class="cx"> public:
</span><span class="cx">     ChangeRegionOversetTask(InspectorCSSAgent*);
</span><span class="lines">@@ -173,7 +173,7 @@
</span><span class="cx">     void unschedule(WebKitNamedFlow*);
</span><span class="cx">     void reset();
</span><span class="cx">     void timerFired(Timer&lt;ChangeRegionOversetTask&gt;&amp;);
</span><del>-    
</del><ins>+
</ins><span class="cx"> private:
</span><span class="cx">     InspectorCSSAgent* m_cssAgent;
</span><span class="cx">     Timer&lt;ChangeRegionOversetTask&gt; m_timer;
</span><span class="lines">@@ -189,7 +189,7 @@
</span><span class="cx"> void ChangeRegionOversetTask::scheduleFor(WebKitNamedFlow* namedFlow, int documentNodeId)
</span><span class="cx"> {
</span><span class="cx">     m_namedFlows.add(namedFlow, documentNodeId);
</span><del>-    
</del><ins>+
</ins><span class="cx">     if (!m_timer.isActive())
</span><span class="cx">         m_timer.startOneShot(0);
</span><span class="cx"> }
</span><span class="lines">@@ -266,7 +266,7 @@
</span><span class="cx">         return String::format(&quot;SetStyleSheetText %s&quot;, m_styleSheet-&gt;id().utf8().data());
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    virtual void merge(PassOwnPtr&lt;Action&gt; action) override
</del><ins>+    virtual void merge(std::unique_ptr&lt;Action&gt; action) override
</ins><span class="cx">     {
</span><span class="cx">         ASSERT(action-&gt;mergeId() == mergeId());
</span><span class="cx"> 
</span><span class="lines">@@ -310,7 +310,7 @@
</span><span class="cx">         return String::format(&quot;SetStyleText %s:%u&quot;, m_styleSheet-&gt;id().utf8().data(), m_cssId.ordinal());
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    virtual void merge(PassOwnPtr&lt;Action&gt; action) override
</del><ins>+    virtual void merge(std::unique_ptr&lt;Action&gt; action) override
</ins><span class="cx">     {
</span><span class="cx">         ASSERT(action-&gt;mergeId() == mergeId());
</span><span class="cx"> 
</span><span class="lines">@@ -369,7 +369,7 @@
</span><span class="cx">         return String::format(&quot;SetPropertyText %s:%u:%s&quot;, m_styleSheet-&gt;id().utf8().data(), m_propertyIndex, m_overwrite ? &quot;true&quot; : &quot;false&quot;);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    virtual void merge(PassOwnPtr&lt;Action&gt; action) override
</del><ins>+    virtual void merge(std::unique_ptr&lt;Action&gt; action) override
</ins><span class="cx">     {
</span><span class="cx">         ASSERT(action-&gt;mergeId() == mergeId());
</span><span class="cx"> 
</span><span class="lines">@@ -582,7 +582,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_updateRegionLayoutTask)
</span><span class="cx">         m_updateRegionLayoutTask-&gt;unschedule(namedFlow);
</span><del>-    
</del><ins>+
</ins><span class="cx">     if (m_changeRegionOversetTask)
</span><span class="cx">         m_changeRegionOversetTask-&gt;unschedule(namedFlow);
</span><span class="cx"> 
</span><span class="lines">@@ -596,7 +596,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     if (!m_updateRegionLayoutTask)
</span><del>-        m_updateRegionLayoutTask = adoptPtr(new UpdateRegionLayoutTask(this));
</del><ins>+        m_updateRegionLayoutTask = std::make_unique&lt;UpdateRegionLayoutTask&gt;(this);
</ins><span class="cx">     m_updateRegionLayoutTask-&gt;scheduleFor(namedFlow, documentNodeId);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -616,9 +616,9 @@
</span><span class="cx">     int documentNodeId = documentNodeWithRequestedFlowsId(document);
</span><span class="cx">     if (!documentNodeId)
</span><span class="cx">         return;
</span><del>-    
</del><ins>+
</ins><span class="cx">     if (!m_changeRegionOversetTask)
</span><del>-        m_changeRegionOversetTask = adoptPtr(new ChangeRegionOversetTask(this));
</del><ins>+        m_changeRegionOversetTask = std::make_unique&lt;ChangeRegionOversetTask&gt;(this);
</ins><span class="cx">     m_changeRegionOversetTask-&gt;scheduleFor(namedFlow, documentNodeId);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -626,10 +626,10 @@
</span><span class="cx"> {
</span><span class="cx">     if (namedFlow-&gt;flowState() == WebKitNamedFlow::FlowStateNull)
</span><span class="cx">         return;
</span><del>-    
</del><ins>+
</ins><span class="cx">     ErrorString errorString;
</span><span class="cx">     Ref&lt;WebKitNamedFlow&gt; protect(*namedFlow);
</span><del>-    
</del><ins>+
</ins><span class="cx">     m_frontendDispatcher-&gt;regionOversetChanged(buildObjectForNamedFlow(&amp;errorString, namedFlow, documentNodeId));
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -803,7 +803,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    m_domAgent-&gt;history()-&gt;perform(adoptPtr(new SetStyleSheetTextAction(inspectorStyleSheet, text)), ec);
</del><ins>+    m_domAgent-&gt;history()-&gt;perform(std::make_unique&lt;SetStyleSheetTextAction&gt;(inspectorStyleSheet, text), ec);
</ins><span class="cx">     *errorString = InspectorDOMAgent::toErrorString(ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -817,7 +817,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    bool success = m_domAgent-&gt;history()-&gt;perform(adoptPtr(new SetStyleTextAction(inspectorStyleSheet, compoundId, text)), ec);
</del><ins>+    bool success = m_domAgent-&gt;history()-&gt;perform(std::make_unique&lt;SetStyleTextAction&gt;(inspectorStyleSheet, compoundId, text), ec);
</ins><span class="cx">     if (success)
</span><span class="cx">         result = inspectorStyleSheet-&gt;buildObjectForStyle(inspectorStyleSheet-&gt;styleForId(compoundId));
</span><span class="cx">     *errorString = InspectorDOMAgent::toErrorString(ec);
</span><span class="lines">@@ -833,7 +833,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    bool success = m_domAgent-&gt;history()-&gt;perform(adoptPtr(new SetPropertyTextAction(inspectorStyleSheet, compoundId, propertyIndex, text, overwrite)), ec);
</del><ins>+    bool success = m_domAgent-&gt;history()-&gt;perform(std::make_unique&lt;SetPropertyTextAction&gt;(inspectorStyleSheet, compoundId, propertyIndex, text, overwrite), ec);
</ins><span class="cx">     if (success)
</span><span class="cx">         result = inspectorStyleSheet-&gt;buildObjectForStyle(inspectorStyleSheet-&gt;styleForId(compoundId));
</span><span class="cx">     *errorString = InspectorDOMAgent::toErrorString(ec);
</span><span class="lines">@@ -849,7 +849,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    bool success = m_domAgent-&gt;history()-&gt;perform(adoptPtr(new TogglePropertyAction(inspectorStyleSheet, compoundId, propertyIndex, disable)), ec);
</del><ins>+    bool success = m_domAgent-&gt;history()-&gt;perform(std::make_unique&lt;TogglePropertyAction&gt;(inspectorStyleSheet, compoundId, propertyIndex, disable), ec);
</ins><span class="cx">     if (success)
</span><span class="cx">         result = inspectorStyleSheet-&gt;buildObjectForStyle(inspectorStyleSheet-&gt;styleForId(compoundId));
</span><span class="cx">     *errorString = InspectorDOMAgent::toErrorString(ec);
</span><span class="lines">@@ -865,7 +865,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    bool success = m_domAgent-&gt;history()-&gt;perform(adoptPtr(new SetRuleSelectorAction(inspectorStyleSheet, compoundId, selector)), ec);
</del><ins>+    bool success = m_domAgent-&gt;history()-&gt;perform(std::make_unique&lt;SetRuleSelectorAction&gt;(inspectorStyleSheet, compoundId, selector), ec);
</ins><span class="cx"> 
</span><span class="cx">     if (success)
</span><span class="cx">         result = inspectorStyleSheet-&gt;buildObjectForRule(inspectorStyleSheet-&gt;ruleForId(compoundId));
</span><span class="lines">@@ -885,9 +885,9 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    OwnPtr&lt;AddRuleAction&gt; action = adoptPtr(new AddRuleAction(inspectorStyleSheet, selector));
</del><ins>+    auto action = std::make_unique&lt;AddRuleAction&gt;(inspectorStyleSheet, selector);
</ins><span class="cx">     AddRuleAction* rawAction = action.get();
</span><del>-    bool success = m_domAgent-&gt;history()-&gt;perform(action.release(), ec);
</del><ins>+    bool success = m_domAgent-&gt;history()-&gt;perform(std::move(action), ec);
</ins><span class="cx">     if (!success) {
</span><span class="cx">         *errorString = InspectorDOMAgent::toErrorString(ec);
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorCSSAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorCSSAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -181,8 +181,8 @@
</span><span class="cx">     DocumentToViaInspectorStyleSheet m_documentToInspectorStyleSheet;
</span><span class="cx">     NodeIdToForcedPseudoState m_nodeIdToForcedPseudoState;
</span><span class="cx">     HashSet&lt;int&gt; m_namedFlowCollectionsRequested;
</span><del>-    OwnPtr&lt;UpdateRegionLayoutTask&gt; m_updateRegionLayoutTask;
-    OwnPtr&lt;ChangeRegionOversetTask&gt; m_changeRegionOversetTask;
</del><ins>+    std::unique_ptr&lt;UpdateRegionLayoutTask&gt; m_updateRegionLayoutTask;
+    std::unique_ptr&lt;ChangeRegionOversetTask&gt; m_changeRegionOversetTask;
</ins><span class="cx"> 
</span><span class="cx">     int m_lastStyleSheetId;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorCanvasAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorCanvasAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorCanvasAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorCanvasAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -39,7 +39,6 @@
</span><span class="cx"> #include &quot;InspectorWebTypeBuilders.h&quot;
</span><span class="cx"> #include &quot;ScriptState.h&quot;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -96,7 +96,6 @@
</span><span class="cx"> #include &lt;inspector/InjectedScriptManager.h&gt;
</span><span class="cx"> #include &lt;runtime/JSCInlines.h&gt;
</span><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/CString.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="lines">@@ -236,8 +235,8 @@
</span><span class="cx">     m_frontendDispatcher = std::make_unique&lt;InspectorDOMFrontendDispatcher&gt;(frontendChannel);
</span><span class="cx">     m_backendDispatcher = InspectorDOMBackendDispatcher::create(backendDispatcher, this);
</span><span class="cx"> 
</span><del>-    m_history = adoptPtr(new InspectorHistory());
-    m_domEditor = adoptPtr(new DOMEditor(m_history.get()));
</del><ins>+    m_history = std::make_unique&lt;InspectorHistory&gt;();
+    m_domEditor = std::make_unique&lt;DOMEditor&gt;(m_history.get());
</ins><span class="cx"> 
</span><span class="cx">     m_instrumentingAgents-&gt;setInspectorDOMAgent(this);
</span><span class="cx">     m_document = m_pageAgent-&gt;mainFrame()-&gt;document();
</span><span class="lines">@@ -251,8 +250,8 @@
</span><span class="cx">     m_frontendDispatcher = nullptr;
</span><span class="cx">     m_backendDispatcher.clear();
</span><span class="cx"> 
</span><del>-    m_history.clear();
-    m_domEditor.clear();
</del><ins>+    m_history.reset();
+    m_domEditor.reset();
</ins><span class="cx"> 
</span><span class="cx">     ErrorString error;
</span><span class="cx">     setSearchingForNode(&amp;error, false, 0);
</span><span class="lines">@@ -584,7 +583,7 @@
</span><span class="cx">         Node* parent = innerParentNode(node);
</span><span class="cx">         if (!parent) {
</span><span class="cx">             // Node being pushed is detached -&gt; push subtree root.
</span><del>-            OwnPtr&lt;NodeToIdMap&gt; newMap = adoptPtr(new NodeToIdMap);
</del><ins>+            auto newMap = std::make_unique&lt;NodeToIdMap&gt;();
</ins><span class="cx">             danglingMap = newMap.get();
</span><span class="cx">             m_danglingNodeToIdMaps.append(newMap.release());
</span><span class="cx">             RefPtr&lt;Inspector::TypeBuilder::Array&lt;Inspector::TypeBuilder::DOM::Node&gt;&gt; children = Inspector::TypeBuilder::Array&lt;Inspector::TypeBuilder::DOM::Node&gt;::create();
</span><span class="lines">@@ -1032,14 +1031,14 @@
</span><span class="cx">     m_overlay-&gt;didSetSearchingForNode(m_searchingForNode);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassOwnPtr&lt;HighlightConfig&gt; InspectorDOMAgent::highlightConfigFromInspectorObject(ErrorString* errorString, InspectorObject* highlightInspectorObject)
</del><ins>+std::unique_ptr&lt;HighlightConfig&gt; InspectorDOMAgent::highlightConfigFromInspectorObject(ErrorString* errorString, InspectorObject* highlightInspectorObject)
</ins><span class="cx"> {
</span><span class="cx">     if (!highlightInspectorObject) {
</span><span class="cx">         *errorString = &quot;Internal error: highlight configuration parameter is missing&quot;;
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;HighlightConfig&gt; highlightConfig = adoptPtr(new HighlightConfig());
</del><ins>+    auto highlightConfig = std::make_unique&lt;HighlightConfig&gt;();
</ins><span class="cx">     bool showInfo = false; // Default: false (do not show a tooltip).
</span><span class="cx">     highlightInspectorObject-&gt;getBoolean(&quot;showInfo&quot;, &amp;showInfo);
</span><span class="cx">     highlightConfig-&gt;showInfo = showInfo;
</span><span class="lines">@@ -1051,7 +1050,7 @@
</span><span class="cx">     highlightConfig-&gt;padding = parseConfigColor(&quot;paddingColor&quot;, highlightInspectorObject);
</span><span class="cx">     highlightConfig-&gt;border = parseConfigColor(&quot;borderColor&quot;, highlightInspectorObject);
</span><span class="cx">     highlightConfig-&gt;margin = parseConfigColor(&quot;marginColor&quot;, highlightInspectorObject);
</span><del>-    return highlightConfig.release();
</del><ins>+    return highlightConfig;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void InspectorDOMAgent::setInspectModeEnabled(ErrorString* errorString, bool enabled, const RefPtr&lt;InspectorObject&gt;* highlightConfig)
</span><span class="lines">@@ -1061,27 +1060,27 @@
</span><span class="cx"> 
</span><span class="cx"> void InspectorDOMAgent::highlightRect(ErrorString*, int x, int y, int width, int height, const RefPtr&lt;InspectorObject&gt;* color, const RefPtr&lt;InspectorObject&gt;* outlineColor, const bool* usePageCoordinates)
</span><span class="cx"> {
</span><del>-    OwnPtr&lt;FloatQuad&gt; quad = adoptPtr(new FloatQuad(FloatRect(x, y, width, height)));
-    innerHighlightQuad(quad.release(), color, outlineColor, usePageCoordinates);
</del><ins>+    auto quad = std::make_unique&lt;FloatQuad&gt;(FloatRect(x, y, width, height));
+    innerHighlightQuad(std::move(quad), color, outlineColor, usePageCoordinates);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void InspectorDOMAgent::highlightQuad(ErrorString* errorString, const RefPtr&lt;InspectorArray&gt;&amp; quadArray, const RefPtr&lt;InspectorObject&gt;* color, const RefPtr&lt;InspectorObject&gt;* outlineColor, const bool* usePageCoordinates)
</span><span class="cx"> {
</span><del>-    OwnPtr&lt;FloatQuad&gt; quad = adoptPtr(new FloatQuad());
</del><ins>+    auto quad = std::make_unique&lt;FloatQuad&gt;();
</ins><span class="cx">     if (!parseQuad(quadArray, quad.get())) {
</span><span class="cx">         *errorString = &quot;Invalid Quad format&quot;;
</span><span class="cx">         return;
</span><span class="cx">     }
</span><del>-    innerHighlightQuad(quad.release(), color, outlineColor, usePageCoordinates);
</del><ins>+    innerHighlightQuad(std::move(quad), color, outlineColor, usePageCoordinates);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-void InspectorDOMAgent::innerHighlightQuad(PassOwnPtr&lt;FloatQuad&gt; quad, const RefPtr&lt;InspectorObject&gt;* color, const RefPtr&lt;InspectorObject&gt;* outlineColor, const bool* usePageCoordinates)
</del><ins>+void InspectorDOMAgent::innerHighlightQuad(std::unique_ptr&lt;FloatQuad&gt; quad, const RefPtr&lt;InspectorObject&gt;* color, const RefPtr&lt;InspectorObject&gt;* outlineColor, const bool* usePageCoordinates)
</ins><span class="cx"> {
</span><del>-    OwnPtr&lt;HighlightConfig&gt; highlightConfig = adoptPtr(new HighlightConfig());
</del><ins>+    auto highlightConfig = std::make_unique&lt;HighlightConfig&gt;();
</ins><span class="cx">     highlightConfig-&gt;content = parseColor(color);
</span><span class="cx">     highlightConfig-&gt;contentOutline = parseColor(outlineColor);
</span><span class="cx">     highlightConfig-&gt;usePageCoordinates = usePageCoordinates ? *usePageCoordinates : false;
</span><del>-    m_overlay-&gt;highlightQuad(quad, *highlightConfig);
</del><ins>+    m_overlay-&gt;highlightQuad(std::move(quad), *highlightConfig);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void InspectorDOMAgent::highlightNode(ErrorString* errorString, const RefPtr&lt;InspectorObject&gt;&amp; highlightInspectorObject, const int* nodeId, const String* objectId)
</span><span class="lines">@@ -1099,7 +1098,7 @@
</span><span class="cx">     if (!node)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    OwnPtr&lt;HighlightConfig&gt; highlightConfig = highlightConfigFromInspectorObject(errorString, highlightInspectorObject.get());
</del><ins>+    std::unique_ptr&lt;HighlightConfig&gt; highlightConfig = highlightConfigFromInspectorObject(errorString, highlightInspectorObject.get());
</ins><span class="cx">     if (!highlightConfig)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -1114,7 +1113,7 @@
</span><span class="cx"> {
</span><span class="cx">     Frame* frame = m_pageAgent-&gt;frameForId(frameId);
</span><span class="cx">     if (frame &amp;&amp; frame-&gt;ownerElement()) {
</span><del>-        OwnPtr&lt;HighlightConfig&gt; highlightConfig = adoptPtr(new HighlightConfig());
</del><ins>+        auto highlightConfig = std::make_unique&lt;HighlightConfig&gt;();
</ins><span class="cx">         highlightConfig-&gt;showInfo = true; // Always show tooltips for frames.
</span><span class="cx">         highlightConfig-&gt;content = parseColor(color);
</span><span class="cx">         highlightConfig-&gt;contentOutline = parseColor(outlineColor);
</span><span class="lines">@@ -1642,7 +1641,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     if (!m_revalidateStyleAttrTask)
</span><del>-        m_revalidateStyleAttrTask = adoptPtr(new RevalidateStyleAttributeTask(this));
</del><ins>+        m_revalidateStyleAttrTask = std::make_unique&lt;RevalidateStyleAttributeTask&gt;(this);
</ins><span class="cx">     m_revalidateStyleAttrTask-&gt;scheduleFor(toElement(node));
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -41,8 +41,6 @@
</span><span class="cx"> #include &lt;wtf/Deque.h&gt;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/AtomicString.h&gt;
</span><span class="lines">@@ -213,7 +211,7 @@
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     void setSearchingForNode(ErrorString*, bool enabled, Inspector::InspectorObject* highlightConfig);
</span><del>-    PassOwnPtr&lt;HighlightConfig&gt; highlightConfigFromInspectorObject(ErrorString*, Inspector::InspectorObject* highlightInspectorObject);
</del><ins>+    std::unique_ptr&lt;HighlightConfig&gt; highlightConfigFromInspectorObject(ErrorString*, Inspector::InspectorObject* highlightInspectorObject);
</ins><span class="cx"> 
</span><span class="cx">     // Node-related methods.
</span><span class="cx">     typedef HashMap&lt;RefPtr&lt;Node&gt;, int&gt; NodeToIdMap;
</span><span class="lines">@@ -241,7 +239,7 @@
</span><span class="cx"> 
</span><span class="cx">     void discardBindings();
</span><span class="cx"> 
</span><del>-    void innerHighlightQuad(PassOwnPtr&lt;FloatQuad&gt;, const RefPtr&lt;Inspector::InspectorObject&gt;* color, const RefPtr&lt;Inspector::InspectorObject&gt;* outlineColor, const bool* usePageCoordinates);
</del><ins>+    void innerHighlightQuad(std::unique_ptr&lt;FloatQuad&gt;, const RefPtr&lt;Inspector::InspectorObject&gt;* color, const RefPtr&lt;Inspector::InspectorObject&gt;* outlineColor, const bool* usePageCoordinates);
</ins><span class="cx"> 
</span><span class="cx">     InspectorPageAgent* m_pageAgent;
</span><span class="cx">     Inspector::InjectedScriptManager* m_injectedScriptManager;
</span><span class="lines">@@ -253,7 +251,7 @@
</span><span class="cx">     typedef HashMap&lt;RefPtr&lt;Node&gt;, BackendNodeId&gt; NodeToBackendIdMap;
</span><span class="cx">     HashMap&lt;String, NodeToBackendIdMap&gt; m_nodeGroupToBackendIdMap;
</span><span class="cx">     // Owns node mappings for dangling nodes.
</span><del>-    Vector&lt;OwnPtr&lt;NodeToIdMap&gt;&gt; m_danglingNodeToIdMaps;
</del><ins>+    Vector&lt;std::unique_ptr&lt;NodeToIdMap&gt;&gt; m_danglingNodeToIdMaps;
</ins><span class="cx">     HashMap&lt;int, Node*&gt; m_idToNode;
</span><span class="cx">     HashMap&lt;int, NodeToIdMap*&gt; m_idToNodesMap;
</span><span class="cx">     HashSet&lt;int&gt; m_childrenRequested;
</span><span class="lines">@@ -263,12 +261,12 @@
</span><span class="cx">     RefPtr&lt;Document&gt; m_document;
</span><span class="cx">     typedef HashMap&lt;String, Vector&lt;RefPtr&lt;Node&gt;&gt;&gt; SearchResults;
</span><span class="cx">     SearchResults m_searchResults;
</span><del>-    OwnPtr&lt;RevalidateStyleAttributeTask&gt; m_revalidateStyleAttrTask;
</del><ins>+    std::unique_ptr&lt;RevalidateStyleAttributeTask&gt; m_revalidateStyleAttrTask;
</ins><span class="cx">     RefPtr&lt;Node&gt; m_nodeToFocus;
</span><span class="cx">     bool m_searchingForNode;
</span><del>-    OwnPtr&lt;HighlightConfig&gt; m_inspectModeHighlightConfig;
-    OwnPtr&lt;InspectorHistory&gt; m_history;
-    OwnPtr&lt;DOMEditor&gt; m_domEditor;
</del><ins>+    std::unique_ptr&lt;HighlightConfig&gt; m_inspectModeHighlightConfig;
+    std::unique_ptr&lt;InspectorHistory&gt; m_history;
+    std::unique_ptr&lt;DOMEditor&gt; m_domEditor;
</ins><span class="cx">     bool m_suppressAttributeModifiedEvent;
</span><span class="cx">     bool m_documentRequested;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMDebuggerAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -37,7 +37,6 @@
</span><span class="cx"> #include &quot;InspectorWebBackendDispatchers.h&quot;
</span><span class="cx"> #include &lt;inspector/agents/InspectorDebuggerAgent.h&gt;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMStorageAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> #include &quot;InspectorWebBackendDispatchers.h&quot;
</span><span class="cx"> #include &quot;StorageArea.h&quot;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace Inspector {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDatabaseAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -35,7 +35,6 @@
</span><span class="cx"> #include &quot;InspectorWebBackendDispatchers.h&quot;
</span><span class="cx"> #include &quot;InspectorWebFrontendDispatchers.h&quot;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace Inspector {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendClientLocalcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -116,15 +116,15 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-InspectorFrontendClientLocal::InspectorFrontendClientLocal(InspectorController* inspectorController, Page* frontendPage, PassOwnPtr&lt;Settings&gt; settings)
</del><ins>+InspectorFrontendClientLocal::InspectorFrontendClientLocal(InspectorController* inspectorController, Page* frontendPage, std::unique_ptr&lt;Settings&gt; settings)
</ins><span class="cx">     : m_inspectorController(inspectorController)
</span><span class="cx">     , m_frontendPage(frontendPage)
</span><del>-    , m_settings(settings)
</del><ins>+    , m_settings(std::move(settings))
</ins><span class="cx">     , m_frontendLoaded(false)
</span><span class="cx">     , m_dockSide(UNDOCKED)
</span><span class="cx"> {
</span><span class="cx">     m_frontendPage-&gt;settings().setAllowFileAccessFromFileURLs(true);
</span><del>-    m_dispatchTask = adoptPtr(new InspectorBackendDispatchTask(inspectorController));
</del><ins>+    m_dispatchTask = std::make_unique&lt;InspectorBackendDispatchTask&gt;(inspectorController);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> InspectorFrontendClientLocal::~InspectorFrontendClientLocal()
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendClientLocalh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -55,9 +55,9 @@
</span><span class="cx">         virtual void setProperty(const String&amp; name, const String&amp; value);
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    InspectorFrontendClientLocal(InspectorController*, Page*, PassOwnPtr&lt;Settings&gt;);
</del><ins>+    InspectorFrontendClientLocal(InspectorController*, Page*, std::unique_ptr&lt;Settings&gt;);
</ins><span class="cx">     virtual ~InspectorFrontendClientLocal();
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual void windowObjectCleared() override;
</span><span class="cx">     virtual void frontendLoaded() override;
</span><span class="cx"> 
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx">     void showConsole();
</span><span class="cx"> 
</span><span class="cx">     void showMainResourceForFrame(Frame*);
</span><del>-    
</del><ins>+
</ins><span class="cx">     void showResources();
</span><span class="cx"> 
</span><span class="cx">     void setAttachedWindow(DockSide);
</span><span class="lines">@@ -117,11 +117,11 @@
</span><span class="cx">     Page* m_frontendPage;
</span><span class="cx">     // TODO(yurys): this ref shouldn't be needed.
</span><span class="cx">     RefPtr&lt;InspectorFrontendHost&gt; m_frontendHost;
</span><del>-    OwnPtr&lt;InspectorFrontendClientLocal::Settings&gt; m_settings;
</del><ins>+    std::unique_ptr&lt;InspectorFrontendClientLocal::Settings&gt; m_settings;
</ins><span class="cx">     bool m_frontendLoaded;
</span><span class="cx">     DockSide m_dockSide;
</span><span class="cx">     Vector&lt;String&gt; m_evaluateOnLoad;
</span><del>-    OwnPtr&lt;InspectorBackendDispatchTask&gt; m_dispatchTask;
</del><ins>+    std::unique_ptr&lt;InspectorBackendDispatchTask&gt; m_dispatchTask;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorHeapProfilerAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorHeapProfilerAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorHeapProfilerAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorHeapProfilerAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -39,7 +39,6 @@
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><span class="cx"> #include &lt;wtf/Noncopyable.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorHistorycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorHistory.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorHistory.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorHistory.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx">     return &quot;&quot;;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void InspectorHistory::Action::merge(PassOwnPtr&lt;Action&gt;)
</del><ins>+void InspectorHistory::Action::merge(std::unique_ptr&lt;Action&gt;)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -87,16 +87,16 @@
</span><span class="cx"> 
</span><span class="cx"> InspectorHistory::~InspectorHistory() { }
</span><span class="cx"> 
</span><del>-bool InspectorHistory::perform(PassOwnPtr&lt;Action&gt; action, ExceptionCode&amp; ec)
</del><ins>+bool InspectorHistory::perform(std::unique_ptr&lt;Action&gt; action, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!action-&gt;perform(ec))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     if (!action-&gt;mergeId().isEmpty() &amp;&amp; m_afterLastActionIndex &gt; 0 &amp;&amp; action-&gt;mergeId() == m_history[m_afterLastActionIndex - 1]-&gt;mergeId())
</span><del>-        m_history[m_afterLastActionIndex - 1]-&gt;merge(action);
</del><ins>+        m_history[m_afterLastActionIndex - 1]-&gt;merge(std::move(action));
</ins><span class="cx">     else {
</span><span class="cx">         m_history.resize(m_afterLastActionIndex);
</span><del>-        m_history.append(action);
</del><ins>+        m_history.append(std::move(action));
</ins><span class="cx">         ++m_afterLastActionIndex;
</span><span class="cx">     }
</span><span class="cx">     return true;
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx"> 
</span><span class="cx"> void InspectorHistory::markUndoableState()
</span><span class="cx"> {
</span><del>-    perform(adoptPtr(new UndoableStateMark()), IGNORE_EXCEPTION);
</del><ins>+    perform(std::make_unique&lt;UndoableStateMark&gt;(), IGNORE_EXCEPTION);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool InspectorHistory::undo(ExceptionCode&amp; ec)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorHistoryh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorHistory.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorHistory.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorHistory.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -33,7 +33,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;ExceptionCode.h&quot;
</span><span class="cx"> 
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -56,7 +55,7 @@
</span><span class="cx">         virtual String toString();
</span><span class="cx"> 
</span><span class="cx">         virtual String mergeId();
</span><del>-        virtual void merge(PassOwnPtr&lt;Action&gt;);
</del><ins>+        virtual void merge(std::unique_ptr&lt;Action&gt;);
</ins><span class="cx"> 
</span><span class="cx">         virtual bool perform(ExceptionCode&amp;) = 0;
</span><span class="cx"> 
</span><span class="lines">@@ -71,7 +70,7 @@
</span><span class="cx">     InspectorHistory();
</span><span class="cx">     virtual ~InspectorHistory();
</span><span class="cx"> 
</span><del>-    bool perform(PassOwnPtr&lt;Action&gt;, ExceptionCode&amp;);
</del><ins>+    bool perform(std::unique_ptr&lt;Action&gt;, ExceptionCode&amp;);
</ins><span class="cx">     void markUndoableState();
</span><span class="cx"> 
</span><span class="cx">     bool undo(ExceptionCode&amp;);
</span><span class="lines">@@ -79,7 +78,7 @@
</span><span class="cx">     void reset();
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    Vector&lt;OwnPtr&lt;Action&gt;&gt; m_history;
</del><ins>+    Vector&lt;std::unique_ptr&lt;Action&gt;&gt; m_history;
</ins><span class="cx">     size_t m_afterLastActionIndex;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorIndexedDBAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -35,7 +35,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;InspectorWebAgentBase.h&quot;
</span><span class="cx"> #include &quot;InspectorWebBackendDispatchers.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace Inspector {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorInputAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorInputAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorInputAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorInputAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -36,7 +36,6 @@
</span><span class="cx"> #include &quot;InspectorWebAgentBase.h&quot;
</span><span class="cx"> #include &quot;InspectorWebBackendDispatchers.h&quot;
</span><span class="cx"> #include &lt;wtf/Noncopyable.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorLayerTreeAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -36,7 +36,6 @@
</span><span class="cx"> #include &quot;InspectorWebFrontendDispatchers.h&quot;
</span><span class="cx"> #include &quot;InspectorWebTypeBuilders.h&quot;
</span><span class="cx"> #include &quot;RenderLayer.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/PassRefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorMemoryAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorMemoryAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorMemoryAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorMemoryAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -49,8 +49,6 @@
</span><span class="cx"> #include &lt;inspector/InspectorValues.h&gt;
</span><span class="cx"> #include &lt;runtime/ArrayBufferView.h&gt;
</span><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/StringBuilder.h&gt;
</span><span class="cx"> #include &lt;wtf/text/StringImpl.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorMemoryAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorMemoryAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorMemoryAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorMemoryAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -35,7 +35,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;InspectorWebAgentBase.h&quot;
</span><span class="cx"> #include &quot;InspectorWebBackendDispatchers.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorOverlaycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorOverlay.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorOverlay.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorOverlay.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -280,7 +280,7 @@
</span><span class="cx"> void InspectorOverlay::hideHighlight()
</span><span class="cx"> {
</span><span class="cx">     m_highlightNode.clear();
</span><del>-    m_highlightQuad.clear();
</del><ins>+    m_highlightQuad.reset();
</ins><span class="cx">     update();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -291,13 +291,13 @@
</span><span class="cx">     update();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void InspectorOverlay::highlightQuad(PassOwnPtr&lt;FloatQuad&gt; quad, const HighlightConfig&amp; highlightConfig)
</del><ins>+void InspectorOverlay::highlightQuad(std::unique_ptr&lt;FloatQuad&gt; quad, const HighlightConfig&amp; highlightConfig)
</ins><span class="cx"> {
</span><span class="cx">     if (m_quadHighlightConfig.usePageCoordinates)
</span><span class="cx">         *quad -= m_page.mainFrame().view()-&gt;scrollOffset();
</span><span class="cx"> 
</span><span class="cx">     m_quadHighlightConfig = highlightConfig;
</span><del>-    m_highlightQuad = quad;
</del><ins>+    m_highlightQuad = std::move(quad);
</ins><span class="cx">     update();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -748,7 +748,7 @@
</span><span class="cx"> 
</span><span class="cx">     Page::PageClients pageClients;
</span><span class="cx">     fillWithEmptyClients(pageClients);
</span><del>-    m_overlayPage = adoptPtr(new Page(pageClients));
</del><ins>+    m_overlayPage = std::make_unique&lt;Page&gt;(pageClients);
</ins><span class="cx"> 
</span><span class="cx">     Settings&amp; settings = m_page.settings();
</span><span class="cx">     Settings&amp; overlaySettings = m_overlayPage-&gt;settings();
</span><span class="lines">@@ -815,7 +815,7 @@
</span><span class="cx"> 
</span><span class="cx"> void InspectorOverlay::freePage()
</span><span class="cx"> {
</span><del>-    m_overlayPage.clear();
</del><ins>+    m_overlayPage.reset();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorOverlayh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorOverlay.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorOverlay.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorOverlay.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -32,8 +32,6 @@
</span><span class="cx"> #include &quot;Color.h&quot;
</span><span class="cx"> #include &quot;FloatQuad.h&quot;
</span><span class="cx"> #include &quot;LayoutRect.h&quot;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="lines">@@ -117,7 +115,7 @@
</span><span class="cx"> 
</span><span class="cx">     void hideHighlight();
</span><span class="cx">     void highlightNode(Node*, const HighlightConfig&amp;);
</span><del>-    void highlightQuad(PassOwnPtr&lt;FloatQuad&gt;, const HighlightConfig&amp;);
</del><ins>+    void highlightQuad(std::unique_ptr&lt;FloatQuad&gt;, const HighlightConfig&amp;);
</ins><span class="cx"> 
</span><span class="cx">     Node* highlightedNode() const;
</span><span class="cx"> 
</span><span class="lines">@@ -141,8 +139,8 @@
</span><span class="cx">     String m_pausedInDebuggerMessage;
</span><span class="cx">     RefPtr&lt;Node&gt; m_highlightNode;
</span><span class="cx">     HighlightConfig m_nodeHighlightConfig;
</span><del>-    OwnPtr&lt;FloatQuad&gt; m_highlightQuad;
-    OwnPtr&lt;Page&gt; m_overlayPage;
</del><ins>+    std::unique_ptr&lt;FloatQuad&gt; m_highlightQuad;
+    std::unique_ptr&lt;Page&gt; m_overlayPage;
</ins><span class="cx">     HighlightConfig m_quadHighlightConfig;
</span><span class="cx">     IntSize m_size;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorProfilerAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -50,7 +50,6 @@
</span><span class="cx"> #include &lt;inspector/InspectorValues.h&gt;
</span><span class="cx"> #include &lt;inspector/agents/InspectorConsoleAgent.h&gt;
</span><span class="cx"> #include &lt;wtf/CurrentTime.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/StringConcatenate.h&gt;
</span><span class="cx"> 
</span><span class="cx"> using namespace Inspector;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorProfilerAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorProfilerAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorProfilerAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorProfilerAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -38,7 +38,6 @@
</span><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><span class="cx"> #include &lt;wtf/Noncopyable.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace Inspector {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorResourceAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -643,7 +643,7 @@
</span><span class="cx">     : InspectorAgentBase(ASCIILiteral(&quot;Network&quot;), instrumentingAgents)
</span><span class="cx">     , m_pageAgent(pageAgent)
</span><span class="cx">     , m_client(client)
</span><del>-    , m_resourcesData(adoptPtr(new NetworkResourcesData()))
</del><ins>+    , m_resourcesData(std::make_unique&lt;NetworkResourcesData&gt;())
</ins><span class="cx">     , m_enabled(false)
</span><span class="cx">     , m_cacheDisabled(false)
</span><span class="cx">     , m_loadingXHRSynchronously(false)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorResourceAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorResourceAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorResourceAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorResourceAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -34,7 +34,6 @@
</span><span class="cx"> #include &quot;InspectorWebAgentBase.h&quot;
</span><span class="cx"> #include &quot;InspectorWebBackendDispatchers.h&quot;
</span><span class="cx"> #include &quot;InspectorWebFrontendDispatchers.h&quot;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="lines">@@ -145,7 +144,7 @@
</span><span class="cx">     InspectorClient* m_client;
</span><span class="cx">     std::unique_ptr&lt;Inspector::InspectorNetworkFrontendDispatcher&gt; m_frontendDispatcher;
</span><span class="cx">     RefPtr&lt;Inspector::InspectorNetworkBackendDispatcher&gt; m_backendDispatcher;
</span><del>-    OwnPtr&lt;NetworkResourcesData&gt; m_resourcesData;
</del><ins>+    std::unique_ptr&lt;NetworkResourcesData&gt; m_resourcesData;
</ins><span class="cx">     bool m_enabled;
</span><span class="cx">     bool m_cacheDisabled;
</span><span class="cx">     bool m_loadingXHRSynchronously;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorStyleSheetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -58,8 +58,6 @@
</span><span class="cx"> #include &quot;WebKitCSSKeyframesRule.h&quot;
</span><span class="cx"> #include &lt;inspector/ContentSearchUtilities.h&gt;
</span><span class="cx"> #include &lt;inspector/InspectorValues.h&gt;
</span><del>-#include &lt;wtf/OwnPtr.h&gt;
-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/text/StringBuilder.h&gt;
</span><span class="cx"> #include &lt;yarr/RegularExpression.h&gt;
</span><span class="lines">@@ -77,15 +75,15 @@
</span><span class="cx">     void setText(const String&amp; text);
</span><span class="cx">     bool hasText() const { return m_hasText; }
</span><span class="cx">     RuleSourceDataList* sourceData() const { return m_sourceData.get(); }
</span><del>-    void setSourceData(PassOwnPtr&lt;RuleSourceDataList&gt;);
-    bool hasSourceData() const { return m_sourceData; }
</del><ins>+    void setSourceData(std::unique_ptr&lt;RuleSourceDataList&gt;);
+    bool hasSourceData() const { return m_sourceData != nullptr; }
</ins><span class="cx">     PassRefPtr&lt;WebCore::CSSRuleSourceData&gt; ruleSourceDataAt(unsigned) const;
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx"> 
</span><span class="cx">     String m_text;
</span><span class="cx">     bool m_hasText;
</span><del>-    OwnPtr&lt;RuleSourceDataList&gt; m_sourceData;
</del><ins>+    std::unique_ptr&lt;RuleSourceDataList&gt; m_sourceData;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> ParsedStyleSheet::ParsedStyleSheet()
</span><span class="lines">@@ -115,14 +113,14 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void ParsedStyleSheet::setSourceData(PassOwnPtr&lt;RuleSourceDataList&gt; sourceData)
</del><ins>+void ParsedStyleSheet::setSourceData(std::unique_ptr&lt;RuleSourceDataList&gt; sourceData)
</ins><span class="cx"> {
</span><span class="cx">     if (!sourceData) {
</span><del>-        m_sourceData.clear();
</del><ins>+        m_sourceData.reset();
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    m_sourceData = adoptPtr(new RuleSourceDataList());
</del><ins>+    m_sourceData = std::make_unique&lt;RuleSourceDataList&gt;();
</ins><span class="cx"> 
</span><span class="cx">     // FIXME: This is a temporary solution to retain the original flat sourceData structure
</span><span class="cx">     // containing only style rules, even though CSSParser now provides the full rule source data tree.
</span><span class="lines">@@ -284,9 +282,9 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static PassOwnPtr&lt;CSSParser&gt; createCSSParser(Document* document)
</del><ins>+static std::unique_ptr&lt;CSSParser&gt; createCSSParser(Document* document)
</ins><span class="cx"> {
</span><del>-    return adoptPtr(new CSSParser(document ? CSSParserContext(*document) : strictCSSParserContext()));
</del><ins>+    return std::make_unique&lt;CSSParser&gt;(document ? CSSParserContext(*document) : strictCSSParserContext());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> PassRefPtr&lt;InspectorStyle&gt; InspectorStyle::create(const InspectorCSSId&amp; styleId, PassRefPtr&lt;CSSStyleDeclaration&gt; style, InspectorStyleSheet* parentStyleSheet)
</span><span class="lines">@@ -521,7 +519,7 @@
</span><span class="cx">     HashSet&lt;String&gt; foundShorthands;
</span><span class="cx">     String previousPriority;
</span><span class="cx">     String previousStatus;
</span><del>-    OwnPtr&lt;Vector&lt;size_t&gt;&gt; lineEndings(m_parentStyleSheet ? m_parentStyleSheet-&gt;lineEndings() : PassOwnPtr&lt;Vector&lt;size_t&gt;&gt;());
</del><ins>+    std::unique_ptr&lt;Vector&lt;size_t&gt;&gt; lineEndings(m_parentStyleSheet ? m_parentStyleSheet-&gt;lineEndings() : nullptr);
</ins><span class="cx">     RefPtr&lt;CSSRuleSourceData&gt; sourceData = extractSourceData();
</span><span class="cx">     unsigned ruleBodyRangeStart = sourceData ? sourceData-&gt;ruleBodyRange.start : 0;
</span><span class="cx"> 
</span><span class="lines">@@ -1211,10 +1209,10 @@
</span><span class="cx">     return m_parsedStyleSheet-&gt;ruleSourceDataAt(ruleIndexByStyle(style));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassOwnPtr&lt;Vector&lt;size_t&gt;&gt; InspectorStyleSheet::lineEndings() const
</del><ins>+std::unique_ptr&lt;Vector&lt;size_t&gt;&gt; InspectorStyleSheet::lineEndings() const
</ins><span class="cx"> {
</span><span class="cx">     if (!m_parsedStyleSheet-&gt;hasText())
</span><del>-        return PassOwnPtr&lt;Vector&lt;size_t&gt;&gt;();
</del><ins>+        return nullptr;
</ins><span class="cx">     return ContentSearchUtilities::lineEndings(m_parsedStyleSheet-&gt;text());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1270,9 +1268,9 @@
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;StyleSheetContents&gt; newStyleSheet = StyleSheetContents::create();
</span><del>-    OwnPtr&lt;RuleSourceDataList&gt; ruleSourceDataResult = adoptPtr(new RuleSourceDataList());
</del><ins>+    auto ruleSourceDataResult = std::make_unique&lt;RuleSourceDataList&gt;();
</ins><span class="cx">     createCSSParser(m_pageStyleSheet-&gt;ownerDocument())-&gt;parseSheet(newStyleSheet.get(), m_parsedStyleSheet-&gt;text(), 0, ruleSourceDataResult.get());
</span><del>-    m_parsedStyleSheet-&gt;setSourceData(ruleSourceDataResult.release());
</del><ins>+    m_parsedStyleSheet-&gt;setSourceData(std::move(ruleSourceDataResult));
</ins><span class="cx">     return m_parsedStyleSheet-&gt;hasSourceData();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1476,7 +1474,7 @@
</span><span class="cx">     return !ec;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassOwnPtr&lt;Vector&lt;size_t&gt;&gt; InspectorStyleSheetForInlineStyle::lineEndings() const
</del><ins>+std::unique_ptr&lt;Vector&lt;size_t&gt;&gt; InspectorStyleSheetForInlineStyle::lineEndings() const
</ins><span class="cx"> {
</span><span class="cx">     return ContentSearchUtilities::lineEndings(elementStyleText());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorStyleSheeth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorStyleSheet.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorStyleSheet.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorStyleSheet.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -226,7 +226,7 @@
</span><span class="cx"> 
</span><span class="cx">     // Also accessed by friend class InspectorStyle.
</span><span class="cx">     virtual bool setStyleText(CSSStyleDeclaration*, const String&amp;, ExceptionCode&amp;);
</span><del>-    virtual PassOwnPtr&lt;Vector&lt;size_t&gt;&gt; lineEndings() const;
</del><ins>+    virtual std::unique_ptr&lt;Vector&lt;size_t&gt;&gt; lineEndings() const;
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     typedef Vector&lt;RefPtr&lt;CSSStyleRule&gt;&gt; CSSStyleRuleVector;
</span><span class="lines">@@ -278,7 +278,7 @@
</span><span class="cx"> 
</span><span class="cx">     // Also accessed by friend class InspectorStyle.
</span><span class="cx">     virtual bool setStyleText(CSSStyleDeclaration*, const String&amp;, ExceptionCode&amp;) override;
</span><del>-    virtual PassOwnPtr&lt;Vector&lt;size_t&gt;&gt; lineEndings() const override;
</del><ins>+    virtual std::unique_ptr&lt;Vector&lt;size_t&gt;&gt; lineEndings() const override;
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     CSSStyleDeclaration* inlineStyle() const;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorTimelineAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorTimelineAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorTimelineAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorTimelineAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -38,7 +38,6 @@
</span><span class="cx"> #include &quot;InspectorWebFrontendDispatchers.h&quot;
</span><span class="cx"> #include &quot;LayoutRect.h&quot;
</span><span class="cx"> #include &lt;inspector/InspectorValues.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> #include &lt;wtf/WeakPtr.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorWorkerAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorWorkerAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorWorkerAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/InspectorWorkerAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -40,7 +40,6 @@
</span><span class="cx"> #include &quot;URL.h&quot;
</span><span class="cx"> #include &quot;WorkerGlobalScopeProxy.h&quot;
</span><span class="cx"> #include &lt;inspector/InspectorValues.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><span class="cx"> using namespace Inspector;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorPageConsoleAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/PageConsoleAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/PageConsoleAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/PageConsoleAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -75,7 +75,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     if (CommandLineAPIHost* commandLineAPIHost = static_cast&lt;WebInjectedScriptManager*&gt;(m_injectedScriptManager)-&gt;commandLineAPIHost())
</span><del>-        commandLineAPIHost-&gt;addInspectedObject(adoptPtr(new InspectableNode(node)));
</del><ins>+        commandLineAPIHost-&gt;addInspectedObject(std::make_unique&lt;InspectableNode&gt;(node));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorPageRuntimeAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/PageRuntimeAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/PageRuntimeAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/PageRuntimeAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -35,7 +35,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &lt;inspector/InspectorJSFrontendDispatchers.h&gt;
</span><span class="cx"> #include &lt;inspector/agents/InspectorRuntimeAgent.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> class ExecState;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorWebConsoleAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/WebConsoleAgent.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/WebConsoleAgent.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/WebConsoleAgent.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -131,7 +131,7 @@
</span><span class="cx"> void WebConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId)
</span><span class="cx"> {
</span><span class="cx">     if (CommandLineAPIHost* commandLineAPIHost = static_cast&lt;WebInjectedScriptManager*&gt;(m_injectedScriptManager)-&gt;commandLineAPIHost())
</span><del>-        commandLineAPIHost-&gt;addInspectedObject(adoptPtr(new InspectableHeapObject(inspectedHeapObjectId)));
</del><ins>+        commandLineAPIHost-&gt;addInspectedObject(std::make_unique&lt;InspectableHeapObject&gt;(inspectedHeapObjectId));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorWorkerRuntimeAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/WorkerRuntimeAgent.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/WorkerRuntimeAgent.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/inspector/WorkerRuntimeAgent.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -34,7 +34,6 @@
</span><span class="cx"> #if ENABLE(INSPECTOR)
</span><span class="cx"> 
</span><span class="cx"> #include &lt;inspector/agents/InspectorRuntimeAgent.h&gt;
</span><del>-#include &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebCore/testing/Internals.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -194,7 +194,7 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> InspectorFrontendClientDummy::InspectorFrontendClientDummy(InspectorController* controller, Page* page)
</span><del>-    : InspectorFrontendClientLocal(controller, page, adoptPtr(new InspectorFrontendClientLocal::Settings()))
</del><ins>+    : InspectorFrontendClientLocal(controller, page, std::make_unique&lt;InspectorFrontendClientLocal::Settings&gt;())
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
+
</ins><span class="cx"> 2014-02-15  Alexey Proskuryakov  &lt;ap@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Mac] Remove WebSerializedJSValue SPI
</span></span></pre></div>
<a id="trunkSourceWebKitWebKitvcxprojWebKitExportGeneratorWebKitExportsdefin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -216,7 +216,7 @@
</span><span class="cx">         symbolWithPointer(?instrumentingAgentsForPage@InspectorInstrumentation@WebCore@@CAPAVInstrumentingAgents@2@PAVPage@2@@Z, ?instrumentingAgentsForPage@InspectorInstrumentation@WebCore@@CAPEAVInstrumentingAgents@2@PEAVPage@2@@Z)
</span><span class="cx">         ?s_frontendCounter@InspectorInstrumentation@WebCore@@0HA
</span><span class="cx">         symbolWithPointer(?isUnderTest@InspectorFrontendClientLocal@WebCore@@UAE_NXZ, ?isUnderTest@InspectorFrontendClientLocal@WebCore@@UEAA_NXZ)
</span><del>-        symbolWithPointer(??0InspectorFrontendClientLocal@WebCore@@QAE@PAVInspectorController@1@PAVPage@1@V?$PassOwnPtr@VSettings@InspectorFrontendClientLocal@WebCore@@@WTF@@@Z, ??0InspectorFrontendClientLocal@WebCore@@QEAA@PEAVInspectorController@1@PEAVPage@1@V?$PassOwnPtr@VSettings@InspectorFrontendClientLocal@WebCore@@@WTF@@@Z)
</del><ins>+        symbolWithPointer(??0InspectorFrontendClientLocal@WebCore@@QAE@PAVInspectorController@1@PAVPage@1@V?$unique_ptr@VSettings@InspectorFrontendClientLocal@WebCore@@U?$default_delete@VSettings@InspectorFrontendClientLocal@WebCore@@@std@@@std@@@Z, ??0InspectorFrontendClientLocal@WebCore@@QEAA@PEAVInspectorController@1@PEAVPage@1@V?$unique_ptr@VSettings@InspectorFrontendClientLocal@WebCore@@U?$default_delete@VSettings@InspectorFrontendClientLocal@WebCore@@@std@@@std@@@Z)
</ins><span class="cx">         symbolWithPointer(??1InspectorFrontendClientLocal@WebCore@@UAE@XZ, ??1InspectorFrontendClientLocal@WebCore@@UEAA@XZ)
</span><span class="cx">         symbolWithPointer(?changeAttachedWindowHeight@InspectorFrontendClientLocal@WebCore@@UAEXI@Z, ?changeAttachedWindowHeight@InspectorFrontendClientLocal@WebCore@@UEAAXI@Z)
</span><span class="cx">         symbolWithPointer(?changeAttachedWindowWidth@InspectorFrontendClientLocal@WebCore@@UAEXI@Z, ?changeAttachedWindowWidth@InspectorFrontendClientLocal@WebCore@@UEAAXI@Z)
</span></span></pre></div>
<a id="trunkSourceWebKitcfChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/cf/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/cf/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/cf/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        * WebCoreSupport/WebInspectorClientCF.cpp:
+
</ins><span class="cx"> 2013-12-03  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
</span></span></pre></div>
<a id="trunkSourceWebKitcfWebCoreSupportWebInspectorClientCFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -25,8 +25,8 @@
</span><span class="cx"> 
</span><span class="cx"> // FIXME: On Windows, we require all WebKit source files to include config.h
</span><span class="cx"> // before including any other files. Failing to include config.h will leave
</span><del>-// WTF_USE_CF undefined, causing build failures in this 
-// file. But Mac doesn't have a config.h for WebKit, so we can't include the 
</del><ins>+// WTF_USE_CF undefined, causing build failures in this
+// file. But Mac doesn't have a config.h for WebKit, so we can't include the
</ins><span class="cx"> // Windows one here. For now we can just define WTF_USE_CF and
</span><span class="cx"> // WTF_USE_CFNETWORK manually, but we need a better long-term solution.
</span><span class="cx"> #ifndef WTF_USE_CF
</span><span class="lines">@@ -124,7 +124,7 @@
</span><span class="cx">     storeSetting(inspectorStartsAttachedSetting, attached ? &quot;true&quot; : &quot;false&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassOwnPtr&lt;WebCore::InspectorFrontendClientLocal::Settings&gt; WebInspectorClient::createFrontendSettings()
</del><ins>+std::unique_ptr&lt;WebCore::InspectorFrontendClientLocal::Settings&gt; WebInspectorClient::createFrontendSettings()
</ins><span class="cx"> {
</span><span class="cx">     class InspectorFrontendSettingsCF : public WebCore::InspectorFrontendClientLocal::Settings {
</span><span class="cx">     public:
</span><span class="lines">@@ -141,5 +141,5 @@
</span><span class="cx">             storeSetting(name, value);
</span><span class="cx">         }
</span><span class="cx">     };
</span><del>-    return adoptPtr&lt;WebCore::InspectorFrontendClientLocal::Settings&gt;(new InspectorFrontendSettingsCF());
</del><ins>+    return std::make_unique&lt;InspectorFrontendSettingsCF&gt;();
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKiteflChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/efl/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/efl/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/efl/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        * WebCoreSupport/InspectorClientEfl.cpp:
+
</ins><span class="cx"> 2014-02-15  Ryuan Choi  &lt;ryuan.choi@samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [EFL][WK1] Do not include cairo header in the public headers
</span></span></pre></div>
<a id="trunkSourceWebKiteflWebCoreSupportInspectorClientEflcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -148,7 +148,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> InspectorFrontendClientEfl::InspectorFrontendClientEfl(Evas_Object* inspectedView, Evas_Object* inspectorView, InspectorClientEfl* inspectorClient)
</span><del>-    : InspectorFrontendClientLocal(&amp;EWKPrivate::corePage(inspectedView)-&gt;inspectorController(), EWKPrivate::corePage(inspectorView), adoptPtr(new InspectorFrontendSettingsEfl()))
</del><ins>+    : InspectorFrontendClientLocal(&amp;EWKPrivate::corePage(inspectedView)-&gt;inspectorController(), EWKPrivate::corePage(inspectorView), std::make_unique&lt;InspectorFrontendSettingsEfl&gt;())
</ins><span class="cx">     , m_inspectedView(inspectedView)
</span><span class="cx">     , m_inspectorView(inspectorView)
</span><span class="cx">     , m_inspectorClient(inspectorClient)
</span></span></pre></div>
<a id="trunkSourceWebKitgtkChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/gtk/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/gtk/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/gtk/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        * WebCoreSupport/InspectorClientGtk.cpp:
+
</ins><span class="cx"> 2014-02-17  Anders Carlsson  &lt;andersca@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         WebKitGTK+ should stop calling functions to set the view source mode
</span></span></pre></div>
<a id="trunkSourceWebKitgtkWebCoreSupportInspectorClientGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -157,7 +157,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> InspectorFrontendClient::InspectorFrontendClient(WebKitWebView* inspectedWebView, WebKitWebView* inspectorWebView, WebKitWebInspector* webInspector, Page* inspectorPage, InspectorClient* inspectorClient)
</span><del>-    : InspectorFrontendClientLocal(&amp;core(inspectedWebView)-&gt;inspectorController(), inspectorPage, adoptPtr(new InspectorFrontendSettingsGtk()))
</del><ins>+    : InspectorFrontendClientLocal(&amp;core(inspectedWebView)-&gt;inspectorController(), inspectorPage, std::make_unique&lt;InspectorFrontendSettingsGtk&gt;())
</ins><span class="cx">     , m_inspectorWebView(inspectorWebView)
</span><span class="cx">     , m_inspectedWebView(inspectedWebView)
</span><span class="cx">     , m_webInspector(webInspector)
</span></span></pre></div>
<a id="trunkSourceWebKitiosChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/ios/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        * WebCoreSupport/WebInspectorClientIOS.mm:
+
</ins><span class="cx"> 2014-02-12  Benjamin Poulain  &lt;bpoulain@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [WK2][iOS] Add back the special viewport for the old xhtml mobile doctype
</span></span></pre></div>
<a id="trunkSourceWebKitiosWebCoreSupportWebInspectorClientIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/WebCoreSupport/WebInspectorClientIOS.mm (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/WebCoreSupport/WebInspectorClientIOS.mm        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/ios/WebCoreSupport/WebInspectorClientIOS.mm        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -39,7 +39,6 @@
</span><span class="cx"> #import &lt;WebCore/Page.h&gt;
</span><span class="cx"> #import &lt;WebCore/Settings.h&gt;
</span><span class="cx"> #import &lt;WebCore/WebCoreThread.h&gt;
</span><del>-#import &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span><span class="cx"> 
</span><span class="lines">@@ -110,8 +109,8 @@
</span><span class="cx"> #pragma mark -
</span><span class="cx"> #pragma mark WebInspectorFrontendClient Implementation
</span><span class="cx"> 
</span><del>-WebInspectorFrontendClient::WebInspectorFrontendClient(WebView* inspectedWebView, WebInspectorWindowController* windowController, InspectorController* inspectorController, Page* frontendPage, WTF::PassOwnPtr&lt;Settings&gt; settings)
-    : InspectorFrontendClientLocal(inspectorController,  frontendPage, settings)
</del><ins>+WebInspectorFrontendClient::WebInspectorFrontendClient(WebView* inspectedWebView, WebInspectorWindowController* windowController, InspectorController* inspectorController, Page* frontendPage, std::unique_ptr&lt;Settings&gt; settings)
+    : InspectorFrontendClientLocal(inspectorController,  frontendPage, std::move(settings))
</ins><span class="cx"> {
</span><span class="cx">     // iOS does not have a local inspector, this should not be reached.
</span><span class="cx">     notImplemented();
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/mac/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        * WebCoreSupport/WebInspectorClient.h:
+        * WebCoreSupport/WebInspectorClient.mm:
+
</ins><span class="cx"> 2014-02-15  Alexey Proskuryakov  &lt;ap@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Mac] Remove WebSerializedJSValue SPI
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebInspectorClienth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -6,13 +6,13 @@
</span><span class="cx">  * are met:
</span><span class="cx">  *
</span><span class="cx">  * 1.  Redistributions of source code must retain the above copyright
</span><del>- *     notice, this list of conditions and the following disclaimer. 
</del><ins>+ *     notice, this list of conditions and the following disclaimer.
</ins><span class="cx">  * 2.  Redistributions in binary form must reproduce the above copyright
</span><span class="cx">  *     notice, this list of conditions and the following disclaimer in the
</span><del>- *     documentation and/or other materials provided with the distribution. 
</del><ins>+ *     documentation and/or other materials provided with the distribution.
</ins><span class="cx">  * 3.  Neither the name of Apple Computer, Inc. (&quot;Apple&quot;) nor the names of
</span><span class="cx">  *     its contributors may be used to endorse or promote products derived
</span><del>- *     from this software without specific prior written permission. 
</del><ins>+ *     from this software without specific prior written permission.
</ins><span class="cx">  *
</span><span class="cx">  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
</span><span class="cx">  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
</span><span class="lines">@@ -89,7 +89,7 @@
</span><span class="cx">     void releaseFrontend();
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    PassOwnPtr&lt;WebCore::InspectorFrontendClientLocal::Settings&gt; createFrontendSettings();
</del><ins>+    std::unique_ptr&lt;WebCore::InspectorFrontendClientLocal::Settings&gt; createFrontendSettings();
</ins><span class="cx"> 
</span><span class="cx">     WebView *m_webView;
</span><span class="cx">     RetainPtr&lt;WebNodeHighlighter&gt; m_highlighter;
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx"> 
</span><span class="cx"> class WebInspectorFrontendClient : public WebCore::InspectorFrontendClientLocal {
</span><span class="cx"> public:
</span><del>-    WebInspectorFrontendClient(WebView*, WebInspectorWindowController*, WebCore::InspectorController*, WebCore::Page*, PassOwnPtr&lt;Settings&gt;);
</del><ins>+    WebInspectorFrontendClient(WebView*, WebInspectorWindowController*, WebCore::InspectorController*, WebCore::Page*, std::unique_ptr&lt;Settings&gt;);
</ins><span class="cx"> 
</span><span class="cx">     void attachAvailabilityChanged(bool);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebInspectorClientmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -6,13 +6,13 @@
</span><span class="cx">  * are met:
</span><span class="cx">  *
</span><span class="cx">  * 1.  Redistributions of source code must retain the above copyright
</span><del>- *     notice, this list of conditions and the following disclaimer. 
</del><ins>+ *     notice, this list of conditions and the following disclaimer.
</ins><span class="cx">  * 2.  Redistributions in binary form must reproduce the above copyright
</span><span class="cx">  *     notice, this list of conditions and the following disclaimer in the
</span><del>- *     documentation and/or other materials provided with the distribution. 
</del><ins>+ *     documentation and/or other materials provided with the distribution.
</ins><span class="cx">  * 3.  Neither the name of Apple Computer, Inc. (&quot;Apple&quot;) nor the names of
</span><span class="cx">  *     its contributors may be used to endorse or promote products derived
</span><del>- *     from this software without specific prior written permission. 
</del><ins>+ *     from this software without specific prior written permission.
</ins><span class="cx">  *
</span><span class="cx">  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
</span><span class="cx">  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
</span><span class="lines">@@ -53,7 +53,6 @@
</span><span class="cx"> #import &lt;WebCore/SoftLinking.h&gt;
</span><span class="cx"> #import &lt;WebKit/DOMExtensions.h&gt;
</span><span class="cx"> #import &lt;WebKitSystemInterface.h&gt;
</span><del>-#import &lt;wtf/PassOwnPtr.h&gt;
</del><span class="cx"> #import &lt;wtf/text/Base64.h&gt;
</span><span class="cx"> 
</span><span class="cx"> SOFT_LINK_STAGED_FRAMEWORK(WebInspectorUI, PrivateFrameworks, A)
</span><span class="lines">@@ -210,8 +209,8 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-WebInspectorFrontendClient::WebInspectorFrontendClient(WebView* inspectedWebView, WebInspectorWindowController* windowController, InspectorController* inspectorController, Page* frontendPage, WTF::PassOwnPtr&lt;Settings&gt; settings)
-    : InspectorFrontendClientLocal(inspectorController,  frontendPage, settings)
</del><ins>+WebInspectorFrontendClient::WebInspectorFrontendClient(WebView* inspectedWebView, WebInspectorWindowController* windowController, InspectorController* inspectorController, Page* frontendPage, std::unique_ptr&lt;Settings&gt; settings)
+    : InspectorFrontendClientLocal(inspectorController,  frontendPage, std::move(settings))
</ins><span class="cx">     , m_inspectedWebView(inspectedWebView)
</span><span class="cx">     , m_windowController(windowController)
</span><span class="cx"> {
</span><span class="lines">@@ -233,7 +232,7 @@
</span><span class="cx">     InspectorFrontendClientLocal::frontendLoaded();
</span><span class="cx"> 
</span><span class="cx">     WebFrame *frame = [m_inspectedWebView mainFrame];
</span><del>-    
</del><ins>+
</ins><span class="cx">     WebFrameLoadDelegateImplementationCache* implementations = WebViewGetFrameLoadDelegateImplementations(m_inspectedWebView);
</span><span class="cx">     if (implementations-&gt;didClearInspectorWindowObjectForFrameFunc)
</span><span class="cx">         CallFrameLoadDelegate(implementations-&gt;didClearInspectorWindowObjectForFrameFunc, m_inspectedWebView,
</span><span class="lines">@@ -319,14 +318,14 @@
</span><span class="cx"> void WebInspectorFrontendClient::save(const String&amp; suggestedURL, const String&amp; content, bool base64Encoded, bool forceSaveDialog)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(!suggestedURL.isEmpty());
</span><del>-    
</del><ins>+
</ins><span class="cx">     NSURL *platformURL = m_suggestedToActualURLMap.get(suggestedURL).get();
</span><span class="cx">     if (!platformURL) {
</span><span class="cx">         platformURL = [NSURL URLWithString:suggestedURL];
</span><span class="cx">         // The user must confirm new filenames before we can save to them.
</span><span class="cx">         forceSaveDialog = true;
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     ASSERT(platformURL);
</span><span class="cx">     if (!platformURL)
</span><span class="cx">         return;
</span><span class="lines">@@ -337,7 +336,7 @@
</span><span class="cx"> 
</span><span class="cx">     auto saveToURL = ^(NSURL *actualURL) {
</span><span class="cx">         ASSERT(actualURL);
</span><del>-        
</del><ins>+
</ins><span class="cx">         m_suggestedToActualURLMap.set(suggestedURLCopy, actualURL);
</span><span class="cx"> 
</span><span class="cx">         if (base64Encoded) {
</span><span class="lines">@@ -356,7 +355,7 @@
</span><span class="cx">         saveToURL(platformURL);
</span><span class="cx">         return;
</span><span class="cx">     }
</span><del>-    
</del><ins>+
</ins><span class="cx">     NSSavePanel *panel = [NSSavePanel savePanel];
</span><span class="cx">     panel.nameFieldStringValue = platformURL.lastPathComponent;
</span><span class="cx">     panel.directoryURL = [platformURL URLByDeletingLastPathComponent];
</span><span class="lines">@@ -372,7 +371,7 @@
</span><span class="cx"> void WebInspectorFrontendClient::append(const String&amp; suggestedURL, const String&amp; content)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(!suggestedURL.isEmpty());
</span><del>-    
</del><ins>+
</ins><span class="cx">     RetainPtr&lt;NSURL&gt; actualURL = m_suggestedToActualURLMap.get(suggestedURL);
</span><span class="cx">     // do not append unless the user has already confirmed this filename in save().
</span><span class="cx">     if (!actualURL)
</span><span class="lines">@@ -582,7 +581,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     _visible = YES;
</span><del>-    
</del><ins>+
</ins><span class="cx">     _shouldAttach = _inspectorClient-&gt;inspectorStartsAttached() &amp;&amp; _frontendClient-&gt;canAttachWindow() &amp;&amp; !_inspectorClient-&gt;inspectorAttachDisabled();
</span><span class="cx"> 
</span><span class="cx">     if (_shouldAttach) {
</span></span></pre></div>
<a id="trunkSourceWebKitwinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/win/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        * WebCoreSupport/WebInspectorClient.cpp:
+        * WebCoreSupport/WebInspectorClient.h:
+
</ins><span class="cx"> 2014-02-14  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Win] Make tests more consistent with Mac platform
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebCoreSupportWebInspectorClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -6,13 +6,13 @@
</span><span class="cx">  * are met:
</span><span class="cx">  *
</span><span class="cx">  * 1.  Redistributions of source code must retain the above copyright
</span><del>- *     notice, this list of conditions and the following disclaimer. 
</del><ins>+ *     notice, this list of conditions and the following disclaimer.
</ins><span class="cx">  * 2.  Redistributions in binary form must reproduce the above copyright
</span><span class="cx">  *     notice, this list of conditions and the following disclaimer in the
</span><del>- *     documentation and/or other materials provided with the distribution. 
</del><ins>+ *     documentation and/or other materials provided with the distribution.
</ins><span class="cx">  * 3.  Neither the name of Apple Computer, Inc. (&quot;Apple&quot;) nor the names of
</span><span class="cx">  *     its contributors may be used to endorse or promote products derived
</span><del>- *     from this software without specific prior written permission. 
</del><ins>+ *     from this software without specific prior written permission.
</ins><span class="cx">  *
</span><span class="cx">  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
</span><span class="cx">  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
</span><span class="lines">@@ -224,8 +224,8 @@
</span><span class="cx">     m_frontendHandle = 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-WebInspectorFrontendClient::WebInspectorFrontendClient(WebView* inspectedWebView, HWND inspectedWebViewHwnd, HWND frontendHwnd, const COMPtr&lt;WebView&gt;&amp; frontendWebView, HWND frontendWebViewHwnd, WebInspectorClient* inspectorClient, PassOwnPtr&lt;Settings&gt; settings)
-    : InspectorFrontendClientLocal(&amp;inspectedWebView-&gt;page()-&gt;inspectorController(),  core(frontendWebView.get()), settings)
</del><ins>+WebInspectorFrontendClient::WebInspectorFrontendClient(WebView* inspectedWebView, HWND inspectedWebViewHwnd, HWND frontendHwnd, const COMPtr&lt;WebView&gt;&amp; frontendWebView, HWND frontendWebViewHwnd, WebInspectorClient* inspectorClient, std::unique_ptr&lt;Settings&gt; settings)
+    : InspectorFrontendClientLocal(&amp;inspectedWebView-&gt;page()-&gt;inspectorController(),  core(frontendWebView.get()), std::move(settings))
</ins><span class="cx">     , m_inspectedWebView(inspectedWebView)
</span><span class="cx">     , m_inspectedWebViewHwnd(inspectedWebViewHwnd)
</span><span class="cx">     , m_inspectorClient(inspectorClient)
</span><span class="lines">@@ -288,7 +288,7 @@
</span><span class="cx"> 
</span><span class="cx">     closeWindowWithoutNotifications();
</span><span class="cx">     // We need to set the attached window's height before we actually attach the window.
</span><del>-    // Make sure that m_attached is true so that calling setAttachedWindowHeight from restoreAttachedWindowHeight doesn't return early. 
</del><ins>+    // Make sure that m_attached is true so that calling setAttachedWindowHeight from restoreAttachedWindowHeight doesn't return early.
</ins><span class="cx">     m_attached = true;
</span><span class="cx">     // Immediately after calling showWindowWithoutNotifications(), the parent frameview's visibleHeight incorrectly returns 0 always (Windows only).
</span><span class="cx">     // We are expecting this value to be just the height of the parent window when we call restoreAttachedWindowHeight, which it is before
</span><span class="lines">@@ -332,7 +332,7 @@
</span><span class="cx">     // of the inspected web view happens in onWebViewWindowPosChanging, not here.
</span><span class="cx">     SetWindowPos(m_inspectedWebViewHwnd, 0, 0, 0, webViewWidth, totalHeight, SWP_NOZORDER);
</span><span class="cx"> 
</span><del>-    RedrawWindow(m_frontendWebViewHwnd, 0, 0, RDW_INVALIDATE | RDW_ALLCHILDREN | RDW_UPDATENOW); 
</del><ins>+    RedrawWindow(m_frontendWebViewHwnd, 0, 0, RDW_INVALIDATE | RDW_ALLCHILDREN | RDW_UPDATENOW);
</ins><span class="cx">     RedrawWindow(m_inspectedWebViewHwnd, 0, 0, RDW_INVALIDATE | RDW_ALLCHILDREN | RDW_UPDATENOW);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebCoreSupportWebInspectorClienth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.h (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.h        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.h        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -6,13 +6,13 @@
</span><span class="cx">  * are met:
</span><span class="cx">  *
</span><span class="cx">  * 1.  Redistributions of source code must retain the above copyright
</span><del>- *     notice, this list of conditions and the following disclaimer. 
</del><ins>+ *     notice, this list of conditions and the following disclaimer.
</ins><span class="cx">  * 2.  Redistributions in binary form must reproduce the above copyright
</span><span class="cx">  *     notice, this list of conditions and the following disclaimer in the
</span><del>- *     documentation and/or other materials provided with the distribution. 
</del><ins>+ *     documentation and/or other materials provided with the distribution.
</ins><span class="cx">  * 3.  Neither the name of Apple Computer, Inc. (&quot;Apple&quot;) nor the names of
</span><span class="cx">  *     its contributors may be used to endorse or promote products derived
</span><del>- *     from this software without specific prior written permission. 
</del><ins>+ *     from this software without specific prior written permission.
</ins><span class="cx">  *
</span><span class="cx">  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
</span><span class="cx">  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     virtual ~WebInspectorClient();
</span><del>-    WTF::PassOwnPtr&lt;WebCore::InspectorFrontendClientLocal::Settings&gt; createFrontendSettings();
</del><ins>+    std::unique_ptr&lt;WebCore::InspectorFrontendClientLocal::Settings&gt; createFrontendSettings();
</ins><span class="cx"> 
</span><span class="cx">     WebView* m_inspectedWebView;
</span><span class="cx">     WebCore::Page* m_frontendPage;
</span><span class="lines">@@ -94,19 +94,19 @@
</span><span class="cx"> 
</span><span class="cx"> class WebInspectorFrontendClient : public WebCore::InspectorFrontendClientLocal, WebCore::WindowMessageListener {
</span><span class="cx"> public:
</span><del>-    WebInspectorFrontendClient(WebView* inspectedWebView, HWND inspectedWebViewHwnd, HWND frontendHwnd, const COMPtr&lt;WebView&gt;&amp; frotnendWebView, HWND frontendWebViewHwnd, WebInspectorClient*, WTF::PassOwnPtr&lt;Settings&gt;);
</del><ins>+    WebInspectorFrontendClient(WebView* inspectedWebView, HWND inspectedWebViewHwnd, HWND frontendHwnd, const COMPtr&lt;WebView&gt;&amp; frotnendWebView, HWND frontendWebViewHwnd, WebInspectorClient*, std::unique_ptr&lt;Settings&gt;);
</ins><span class="cx">     virtual ~WebInspectorFrontendClient();
</span><span class="cx"> 
</span><span class="cx">     virtual void frontendLoaded();
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual WTF::String localizedStringsURL();
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual void bringToFront();
</span><span class="cx">     virtual void closeWindow();
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual void attachWindow(DockSide);
</span><span class="cx">     virtual void detachWindow();
</span><del>-    
</del><ins>+
</ins><span class="cx">     virtual void setAttachedWindowHeight(unsigned height);
</span><span class="cx">     virtual void setAttachedWindowWidth(unsigned);
</span><span class="cx">     virtual void setToolbarHeight(unsigned) override;
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit2/ChangeLog        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-02-17  Sergio Correia  &lt;sergio.correia@openbossa.org&gt;
+
+        Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
+        https://bugs.webkit.org/show_bug.cgi?id=128681
+
+        Reviewed by Timothy Hatcher.
+
+        Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
+        WebCore/inspector/*. Besides files in there, a few other files in
+        JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
+        and WebCore/testing were touched.
+
+        * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
+
</ins><span class="cx"> 2014-02-17  Michał Pakuła vel Rutka  &lt;m.pakula@samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed EFL build fix attempt
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportWebInspectorFrontendClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp (164244 => 164245)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp        2014-02-17 20:25:04 UTC (rev 164244)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp        2014-02-17 20:35:05 UTC (rev 164245)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> WebInspectorFrontendClient::WebInspectorFrontendClient(WebPage* page, WebPage* inspectorPage)
</span><del>-    : InspectorFrontendClientLocal(&amp;page-&gt;corePage()-&gt;inspectorController(), inspectorPage-&gt;corePage(), adoptPtr(new Settings()))
</del><ins>+    : InspectorFrontendClientLocal(&amp;page-&gt;corePage()-&gt;inspectorController(), inspectorPage-&gt;corePage(), std::make_unique&lt;Settings&gt;())
</ins><span class="cx">     , m_page(page)
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>