<!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>[210042] 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/210042">210042</a></dd>
<dt>Author</dt> <dd>bfulgham@apple.com</dd>
<dt>Date</dt> <dd>2016-12-20 15:32:58 -0800 (Tue, 20 Dec 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Address some style problems found by static analysis
https://bugs.webkit.org/show_bug.cgi?id=165975

Reviewed by Alex Christensen.

Source/JavaScriptCore:

Correct the const-correctness of functions that are implemented using stricter
const declarations.

* inspector/agents/InspectorDebuggerAgent.h:
* inspector/agents/InspectorHeapAgent.cpp:
* inspector/agents/InspectorHeapAgent.h:
* inspector/agents/InspectorRuntimeAgent.h:
* inspector/agents/InspectorScriptProfilerAgent.cpp:
* inspector/agents/InspectorScriptProfilerAgent.h:
* inspector/scripts/codegen/cpp_generator.py:
(cpp_type_for_unchecked_formal_in_parameter): Update to match const declarations of
implementation files.
* inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result:
Rebaselined results for &quot;const Ptr* const&quot; syntax.

Source/WebCore:

Correct the const-correctness of functions that are implemented using stricter
const declarations.

Avoid passing large ANGLE data structures through the ANGLEWebKitBridge methods.

* inspector/InspectorCSSAgent.h: Declare the method overrides properly to match
the stricter const declarations in the implementation files.
* inspector/InspectorDOMAgent.h: Ditto.
* inspector/InspectorPageAgent.h: Ditto.
* inspector/InspectorTimelineAgent.h: Ditto.
* inspector/PageDebuggerAgent.h: Ditto.
* platform/graphics/ANGLEWebKitBridge.cpp:
(WebCore::ANGLEWebKitBridge::setResources): Pass by const reference.
* platform/graphics/ANGLEWebKitBridge.h:
(WebCore::ANGLEWebKitBridge::getResources): Return a const reference.
* platform/mediastream/RealtimeMediaSource.cpp:
(WebCore::RealtimeMediaSource::selectSettings): Use a lambda that takes
a const reference, rather than copying the maps while searching.

Source/WebKit2:

Avoid passing large ANGLE data structures through the ANGLEWebKitBridge methods.

* Shared/WebBackForwardListItem.cpp:
(WebKit::WebBackForwardListItem::create):
(WebKit::WebBackForwardListItem::WebBackForwardListItem):
* Shared/WebBackForwardListItem.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorDebuggerAgenth">trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorHeapAgentcpp">trunk/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorHeapAgenth">trunk/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorRuntimeAgenth">trunk/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorScriptProfilerAgentcpp">trunk/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorScriptProfilerAgenth">trunk/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectorscriptscodegencpp_generatorpy">trunk/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectorscriptstestsexpectedcommandswithoptionalcallreturnparametersjsonresult">trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorCSSAgenth">trunk/Source/WebCore/inspector/InspectorCSSAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMAgenth">trunk/Source/WebCore/inspector/InspectorDOMAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorPageAgenth">trunk/Source/WebCore/inspector/InspectorPageAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorTimelineAgenth">trunk/Source/WebCore/inspector/InspectorTimelineAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorPageDebuggerAgenth">trunk/Source/WebCore/inspector/PageDebuggerAgent.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsANGLEWebKitBridgecpp">trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsANGLEWebKitBridgeh">trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamRealtimeMediaSourcecpp">trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedWebBackForwardListItemcpp">trunk/Source/WebKit2/Shared/WebBackForwardListItem.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedWebBackForwardListItemh">trunk/Source/WebKit2/Shared/WebBackForwardListItem.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/ChangeLog        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2016-12-20  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        Address some style problems found by static analysis
+        https://bugs.webkit.org/show_bug.cgi?id=165975
+
+        Reviewed by Alex Christensen.
+
+        Correct the const-correctness of functions that are implemented using stricter
+        const declarations.
+
+        * inspector/agents/InspectorDebuggerAgent.h:
+        * inspector/agents/InspectorHeapAgent.cpp:
+        * inspector/agents/InspectorHeapAgent.h:
+        * inspector/agents/InspectorRuntimeAgent.h:
+        * inspector/agents/InspectorScriptProfilerAgent.cpp:
+        * inspector/agents/InspectorScriptProfilerAgent.h:
+        * inspector/scripts/codegen/cpp_generator.py:
+        (cpp_type_for_unchecked_formal_in_parameter): Update to match const declarations of
+        implementation files.
+        * inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result:
+        Rebaselined results for &quot;const Ptr* const&quot; syntax.
+
</ins><span class="cx"> 2016-12-20  JF Bastien  &lt;jfbastien@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         WebAssembly: construct 32-bit encodedJSValue properly
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorDebuggerAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2010, 2013, 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2010, 2013, 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2010, 2011 Google Inc. All rights reserved.
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -67,12 +67,12 @@
</span><span class="cx">     void disable(ErrorString&amp;) final;
</span><span class="cx">     void setAsyncStackTraceDepth(ErrorString&amp;, int depth) final;
</span><span class="cx">     void setBreakpointsActive(ErrorString&amp;, bool active) final;
</span><del>-    void setBreakpointByUrl(ErrorString&amp;, int lineNumber, const String* optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, const Inspector::InspectorObject* options, Inspector::Protocol::Debugger::BreakpointId*, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Debugger::Location&gt;&gt;&amp; locations) final;
</del><ins>+    void setBreakpointByUrl(ErrorString&amp;, int lineNumber, const String* const optionalURL, const String* const optionalURLRegex, const int* const optionalColumnNumber, const Inspector::InspectorObject* options, Inspector::Protocol::Debugger::BreakpointId*, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Debugger::Location&gt;&gt;&amp; locations) final;
</ins><span class="cx">     void setBreakpoint(ErrorString&amp;, const Inspector::InspectorObject&amp; location, const Inspector::InspectorObject* options, Inspector::Protocol::Debugger::BreakpointId*, RefPtr&lt;Inspector::Protocol::Debugger::Location&gt;&amp; actualLocation) final;
</span><span class="cx">     void removeBreakpoint(ErrorString&amp;, const String&amp; breakpointIdentifier) final;
</span><span class="cx">     void continueUntilNextRunLoop(ErrorString&amp;) final;
</span><span class="cx">     void continueToLocation(ErrorString&amp;, const InspectorObject&amp; location) final;
</span><del>-    void searchInContent(ErrorString&amp;, const String&amp; scriptID, const String&amp; query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::GenericTypes::SearchMatch&gt;&gt;&amp;) final;
</del><ins>+    void searchInContent(ErrorString&amp;, const String&amp; scriptID, const String&amp; query, const bool* const optionalCaseSensitive, const bool* const optionalIsRegex, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::GenericTypes::SearchMatch&gt;&gt;&amp;) final;
</ins><span class="cx">     void getScriptSource(ErrorString&amp;, const String&amp; scriptID, String* scriptSource) final;
</span><span class="cx">     void getFunctionDetails(ErrorString&amp;, const String&amp; functionId, RefPtr&lt;Inspector::Protocol::Debugger::FunctionDetails&gt;&amp;) final;
</span><span class="cx">     void pause(ErrorString&amp;) final;
</span><span class="lines">@@ -82,8 +82,8 @@
</span><span class="cx">     void stepOut(ErrorString&amp;) final;
</span><span class="cx">     void setPauseOnExceptions(ErrorString&amp;, const String&amp; pauseState) final;
</span><span class="cx">     void setPauseOnAssertions(ErrorString&amp;, bool enabled) final;
</span><del>-    void evaluateOnCallFrame(ErrorString&amp;, const String&amp; callFrameId, const String&amp; expression, const String* objectGroup, const bool* includeCommandLineAPI, const bool* doNotPauseOnExceptionsAndMuteConsole, const bool* returnByValue, const bool* generatePreview, const bool* saveResult, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result, Inspector::Protocol::OptOutput&lt;bool&gt;* wasThrown, Inspector::Protocol::OptOutput&lt;int&gt;* savedResultIndex) final;
-    void setOverlayMessage(ErrorString&amp;, const String*) override;
</del><ins>+    void evaluateOnCallFrame(ErrorString&amp;, const String&amp; callFrameId, const String&amp; expression, const String* const objectGroup, const bool* const includeCommandLineAPI, const bool* const doNotPauseOnExceptionsAndMuteConsole, const bool* const returnByValue, const bool* const generatePreview, const bool* const saveResult, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result, Inspector::Protocol::OptOutput&lt;bool&gt;* wasThrown, Inspector::Protocol::OptOutput&lt;int&gt;* savedResultIndex) final;
+    void setOverlayMessage(ErrorString&amp;, const String* const) override;
</ins><span class="cx"> 
</span><span class="cx">     bool isPaused() const;
</span><span class="cx">     bool breakpointsActive() const;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorHeapAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.cpp (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.cpp        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.cpp        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2015, 2016 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -285,7 +285,7 @@
</span><span class="cx">     objectPreview = injectedScript.previewValue(cell);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void InspectorHeapAgent::getRemoteObject(ErrorString&amp; errorString, int heapObjectId, const String* optionalObjectGroup, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result)
</del><ins>+void InspectorHeapAgent::getRemoteObject(ErrorString&amp; errorString, int heapObjectId, const String* const optionalObjectGroup, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result)
</ins><span class="cx"> {
</span><span class="cx">     // Prevent the cell from getting collected as we look it up.
</span><span class="cx">     VM&amp; vm = m_environment.vm();
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorHeapAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">     void startTracking(ErrorString&amp;) final;
</span><span class="cx">     void stopTracking(ErrorString&amp;) final;
</span><span class="cx">     void getPreview(ErrorString&amp;, int heapObjectId, Inspector::Protocol::OptOutput&lt;String&gt;* resultString, RefPtr&lt;Inspector::Protocol::Debugger::FunctionDetails&gt;&amp; functionDetails, RefPtr&lt;Inspector::Protocol::Runtime::ObjectPreview&gt;&amp; objectPreview) final;
</span><del>-    void getRemoteObject(ErrorString&amp;, int heapObjectId, const String* optionalObjectGroup, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result) final;
</del><ins>+    void getRemoteObject(ErrorString&amp;, int heapObjectId, const String* const optionalObjectGroup, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result) final;
</ins><span class="cx"> 
</span><span class="cx">     // HeapObserver
</span><span class="cx">     void willGarbageCollect() override;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorRuntimeAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2013, 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2011 Google Inc. All rights reserved.
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -59,13 +59,13 @@
</span><span class="cx">     void enable(ErrorString&amp;) override { m_enabled = true; }
</span><span class="cx">     void disable(ErrorString&amp;) override { m_enabled = false; }
</span><span class="cx">     void parse(ErrorString&amp;, const String&amp; expression, Inspector::Protocol::Runtime::SyntaxErrorType* result, Inspector::Protocol::OptOutput&lt;String&gt;* message, RefPtr&lt;Inspector::Protocol::Runtime::ErrorRange&gt;&amp;) final;
</span><del>-    void evaluate(ErrorString&amp;, const String&amp; expression, const String* objectGroup, const bool* includeCommandLineAPI, const bool* doNotPauseOnExceptionsAndMuteConsole, const int* executionContextId, const bool* returnByValue, const bool* generatePreview, const bool* saveResult, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result, Inspector::Protocol::OptOutput&lt;bool&gt;* wasThrown, Inspector::Protocol::OptOutput&lt;int&gt;* savedResultIndex) final;
-    void callFunctionOn(ErrorString&amp;, const String&amp; objectId, const String&amp; expression, const Inspector::InspectorArray* optionalArguments, const bool* doNotPauseOnExceptionsAndMuteConsole, const bool* returnByValue, const bool* generatePreview, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result, Inspector::Protocol::OptOutput&lt;bool&gt;* wasThrown) final;
</del><ins>+    void evaluate(ErrorString&amp;, const String&amp; expression, const String* const objectGroup, const bool* const includeCommandLineAPI, const bool* const doNotPauseOnExceptionsAndMuteConsole, const int* const executionContextId, const bool* const returnByValue, const bool* const generatePreview, const bool* const saveResult, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result, Inspector::Protocol::OptOutput&lt;bool&gt;* wasThrown, Inspector::Protocol::OptOutput&lt;int&gt;* savedResultIndex) final;
+    void callFunctionOn(ErrorString&amp;, const String&amp; objectId, const String&amp; expression, const Inspector::InspectorArray* optionalArguments, const bool* const doNotPauseOnExceptionsAndMuteConsole, const bool* const returnByValue, const bool* const generatePreview, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result, Inspector::Protocol::OptOutput&lt;bool&gt;* wasThrown) final;
</ins><span class="cx">     void releaseObject(ErrorString&amp;, const ErrorString&amp; objectId) final;
</span><del>-    void getProperties(ErrorString&amp;, const String&amp; objectId, const bool* ownProperties, const bool* generatePreview, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::PropertyDescriptor&gt;&gt;&amp; result, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::InternalPropertyDescriptor&gt;&gt;&amp; internalProperties) final;
-    void getDisplayableProperties(ErrorString&amp;, const String&amp; objectId, const bool* generatePreview, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::PropertyDescriptor&gt;&gt;&amp; result, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::InternalPropertyDescriptor&gt;&gt;&amp; internalProperties) final;
-    void getCollectionEntries(ErrorString&amp;, const String&amp; objectId, const String* objectGroup, const int* startIndex, const int* numberToFetch, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::CollectionEntry&gt;&gt;&amp; entries) final;
-    void saveResult(ErrorString&amp;, const Inspector::InspectorObject&amp; callArgument, const int* executionContextId, Inspector::Protocol::OptOutput&lt;int&gt;* savedResultIndex) final;
</del><ins>+    void getProperties(ErrorString&amp;, const String&amp; objectId, const bool* const ownProperties, const bool* const generatePreview, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::PropertyDescriptor&gt;&gt;&amp; result, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::InternalPropertyDescriptor&gt;&gt;&amp; internalProperties) final;
+    void getDisplayableProperties(ErrorString&amp;, const String&amp; objectId, const bool* const generatePreview, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::PropertyDescriptor&gt;&gt;&amp; result, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::InternalPropertyDescriptor&gt;&gt;&amp; internalProperties) final;
+    void getCollectionEntries(ErrorString&amp;, const String&amp; objectId, const String* const objectGroup, const int* const startIndex, const int* const numberToFetch, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::CollectionEntry&gt;&gt;&amp; entries) final;
+    void saveResult(ErrorString&amp;, const Inspector::InspectorObject&amp; callArgument, const int* const executionContextId, Inspector::Protocol::OptOutput&lt;int&gt;* savedResultIndex) final;
</ins><span class="cx">     void releaseObjectGroup(ErrorString&amp;, const String&amp; objectGroup) final;
</span><span class="cx">     void getRuntimeTypesForVariablesAtOffsets(ErrorString&amp;, const Inspector::InspectorArray&amp; locations, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Runtime::TypeDescription&gt;&gt;&amp;) override;
</span><span class="cx">     void enableTypeProfiler(ErrorString&amp;) override;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorScriptProfilerAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.cpp (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.cpp        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.cpp        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void InspectorScriptProfilerAgent::startTracking(ErrorString&amp;, const bool* includeSamples)
</del><ins>+void InspectorScriptProfilerAgent::startTracking(ErrorString&amp;, const bool* const includeSamples)
</ins><span class="cx"> {
</span><span class="cx">     if (m_tracking)
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorScriptProfilerAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx">     void willDestroyFrontendAndBackend(DisconnectReason) override;
</span><span class="cx"> 
</span><span class="cx">     // ScriptProfilerBackendDispatcherHandler
</span><del>-    void startTracking(ErrorString&amp;, const bool* includeSamples) override;
</del><ins>+    void startTracking(ErrorString&amp;, const bool* const includeSamples) override;
</ins><span class="cx">     void stopTracking(ErrorString&amp;) override;
</span><span class="cx"> 
</span><span class="cx">     void programmaticCaptureStarted();
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectorscriptscodegencpp_generatorpy"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/inspector/scripts/codegen/cpp_generator.py        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -139,7 +139,7 @@
</span><span class="cx">         if isinstance(_type, PrimitiveType):
</span><span class="cx">             cpp_name = CppGenerator.cpp_name_for_primitive_type(_type)
</span><span class="cx">             if parameter.is_optional:
</span><del>-                return 'const %s*' % cpp_name
</del><ins>+                return 'const %s* const' % cpp_name
</ins><span class="cx">             elif _type.raw_name() in ['string']:
</span><span class="cx">                 return 'const %s&amp;' % cpp_name
</span><span class="cx">             else:
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectorscriptstestsexpectedcommandswithoptionalcallreturnparametersjsonresult"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/JavaScriptCore/inspector/scripts/tests/expected/commands-with-optional-call-return-parameters.json-result        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -89,7 +89,7 @@
</span><span class="cx"> class AlternateDatabaseBackendDispatcher : public AlternateBackendDispatcher {
</span><span class="cx"> public:
</span><span class="cx">     virtual ~AlternateDatabaseBackendDispatcher() { }
</span><del>-    virtual void executeAllOptionalParameters(long callId, const Inspector::InspectorArray* in_columnNames, const String* in_notes, const double* in_timestamp, const Inspector::InspectorObject* in_values, const Inspector::InspectorValue* in_payload, const int* in_databaseId, const Inspector::InspectorObject* in_sqlError, const String* in_screenColor, const Inspector::InspectorArray* in_alternateColors, const String* in_printColor) = 0;
</del><ins>+    virtual void executeAllOptionalParameters(long callId, const Inspector::InspectorArray* in_columnNames, const String* const in_notes, const double* const in_timestamp, const Inspector::InspectorObject* in_values, const Inspector::InspectorValue* const in_payload, const int* const in_databaseId, const Inspector::InspectorObject* in_sqlError, const String* const in_screenColor, const Inspector::InspectorArray* in_alternateColors, const String* const in_printColor) = 0;
</ins><span class="cx">     virtual void executeNoOptionalParameters(long callId, const Inspector::InspectorArray&amp; in_columnNames, const String&amp; in_notes, double in_timestamp, const Inspector::InspectorObject&amp; in_values, Inspector::InspectorValue in_payload, int in_databaseId, const Inspector::InspectorObject&amp; in_sqlError, const String&amp; in_screenColor, const Inspector::InspectorArray&amp; in_alternateColors, const String&amp; in_printColor) = 0;
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="lines">@@ -152,7 +152,7 @@
</span><span class="cx">         Yellow = 5,
</span><span class="cx">         Black = 6,
</span><span class="cx">     }; // enum class PrintColor
</span><del>-    virtual void executeAllOptionalParameters(ErrorString&amp;, const Inspector::InspectorArray* opt_in_columnNames, const String* opt_in_notes, const double* opt_in_timestamp, const Inspector::InspectorObject* opt_in_values, const Inspector::InspectorValue* opt_in_payload, const int* opt_in_databaseId, const Inspector::InspectorObject* opt_in_sqlError, const String* opt_in_screenColor, const Inspector::InspectorArray* opt_in_alternateColors, const String* opt_in_printColor, RefPtr&lt;Inspector::Protocol::Array&lt;String&gt;&gt;&amp; opt_out_columnNames, Inspector::Protocol::OptOutput&lt;String&gt;* opt_out_notes, Inspector::Protocol::OptOutput&lt;double&gt;* opt_out_timestamp, Inspector::Protocol::OptOutput&lt;Inspector::InspectorObject&gt;* opt_out_values, Inspector::Protocol::OptOutput&lt;Inspector::InspectorValue&gt;* opt_out_payload, Inspector::Protocol::OptOutput&lt;int&gt;* opt_out_databaseId, RefPtr&lt;Inspector::Protocol::Database::Error&gt;&amp; opt_out
 _sqlError, Inspector::Protocol::Database::PrimaryColors* opt_out_screenColor, RefPtr&lt;Inspector::Protocol::Database::ColorList&gt;&amp; opt_out_alternateColors, DatabaseBackendDispatcherHandler::PrintColor* opt_out_printColor) = 0;
</del><ins>+    virtual void executeAllOptionalParameters(ErrorString&amp;, const Inspector::InspectorArray* opt_in_columnNames, const String* const opt_in_notes, const double* const opt_in_timestamp, const Inspector::InspectorObject* opt_in_values, const Inspector::InspectorValue* const opt_in_payload, const int* const opt_in_databaseId, const Inspector::InspectorObject* opt_in_sqlError, const String* const opt_in_screenColor, const Inspector::InspectorArray* opt_in_alternateColors, const String* const opt_in_printColor, RefPtr&lt;Inspector::Protocol::Array&lt;String&gt;&gt;&amp; opt_out_columnNames, Inspector::Protocol::OptOutput&lt;String&gt;* opt_out_notes, Inspector::Protocol::OptOutput&lt;double&gt;* opt_out_timestamp, Inspector::Protocol::OptOutput&lt;Inspector::InspectorObject&gt;* opt_out_values, Inspector::Protocol::OptOutput&lt;Inspector::InspectorValue&gt;* opt_out_payload, Inspector::Protocol::OptOutput&lt;int&gt;* opt_out_databaseId, RefPtr&lt;Inspector::Protoco
 l::Database::Error&gt;&amp; opt_out_sqlError, Inspector::Protocol::Database::PrimaryColors* opt_out_screenColor, RefPtr&lt;Inspector::Protocol::Database::ColorList&gt;&amp; opt_out_alternateColors, DatabaseBackendDispatcherHandler::PrintColor* opt_out_printColor) = 0;
</ins><span class="cx">     virtual void executeNoOptionalParameters(ErrorString&amp;, const Inspector::InspectorArray&amp; in_columnNames, const String&amp; in_notes, double in_timestamp, const Inspector::InspectorObject&amp; in_values, Inspector::InspectorValue in_payload, int in_databaseId, const Inspector::InspectorObject&amp; in_sqlError, const String&amp; in_screenColor, const Inspector::InspectorArray&amp; in_alternateColors, const String&amp; in_printColor, RefPtr&lt;Inspector::Protocol::Array&lt;String&gt;&gt;&amp; out_columnNames, String* out_notes, double* out_timestamp, Inspector::InspectorObject* out_values, Inspector::InspectorValue* out_payload, int* out_databaseId, RefPtr&lt;Inspector::Protocol::Database::Error&gt;&amp; out_sqlError, Inspector::Protocol::Database::PrimaryColors* out_screenColor, RefPtr&lt;Inspector::Protocol::Database::ColorList&gt;&amp; out_alternateColors, DatabaseBackendDispatcherHandler::PrintColor* out_printColor) = 0;
</span><span class="cx"> protected:
</span><span class="cx">     virtual ~DatabaseBackendDispatcherHandler();
</span><span class="lines">@@ -763,7 +763,7 @@
</span><span class="cx"> class ObjCInspectorDatabaseBackendDispatcher final : public AlternateDatabaseBackendDispatcher {
</span><span class="cx"> public:
</span><span class="cx">     ObjCInspectorDatabaseBackendDispatcher(id&lt;TestProtocolDatabaseDomainHandler&gt; handler) { m_delegate = handler; }
</span><del>-    virtual void executeAllOptionalParameters(long requestId, const Inspector::InspectorArray* in_columnNames, const String* in_notes, const double* in_timestamp, const Inspector::InspectorObject* in_values, const Inspector::InspectorValue* in_payload, const int* in_databaseId, const Inspector::InspectorObject* in_sqlError, const String* in_screenColor, const Inspector::InspectorArray* in_alternateColors, const String* in_printColor) override;
</del><ins>+    virtual void executeAllOptionalParameters(long requestId, const Inspector::InspectorArray* in_columnNames, const String* const in_notes, const double* const in_timestamp, const Inspector::InspectorObject* in_values, const Inspector::InspectorValue* const in_payload, const int* const in_databaseId, const Inspector::InspectorObject* in_sqlError, const String* const in_screenColor, const Inspector::InspectorArray* in_alternateColors, const String* const in_printColor) override;
</ins><span class="cx">     virtual void executeNoOptionalParameters(long requestId, const Inspector::InspectorArray&amp; in_columnNames, const String&amp; in_notes, double in_timestamp, const Inspector::InspectorObject&amp; in_values, Inspector::InspectorValue in_payload, int in_databaseId, const Inspector::InspectorObject&amp; in_sqlError, const String&amp; in_screenColor, const Inspector::InspectorArray&amp; in_alternateColors, const String&amp; in_printColor) override;
</span><span class="cx"> private:
</span><span class="cx">     RetainPtr&lt;id&lt;TestProtocolDatabaseDomainHandler&gt;&gt; m_delegate;
</span><span class="lines">@@ -942,7 +942,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace Inspector {
</span><span class="cx"> 
</span><del>-void ObjCInspectorDatabaseBackendDispatcher::executeAllOptionalParameters(long requestId, const Inspector::InspectorArray* in_columnNames, const String* in_notes, const double* in_timestamp, const Inspector::InspectorObject* in_values, const Inspector::InspectorValue* in_payload, const int* in_databaseId, const Inspector::InspectorObject* in_sqlError, const String* in_screenColor, const Inspector::InspectorArray* in_alternateColors, const String* in_printColor)
</del><ins>+void ObjCInspectorDatabaseBackendDispatcher::executeAllOptionalParameters(long requestId, const Inspector::InspectorArray* in_columnNames, const String* const in_notes, const double* const in_timestamp, const Inspector::InspectorObject* in_values, const Inspector::InspectorValue* const in_payload, const int* const in_databaseId, const Inspector::InspectorObject* in_sqlError, const String* const in_screenColor, const Inspector::InspectorArray* in_alternateColors, const String* const in_printColor)
</ins><span class="cx"> {
</span><span class="cx">     id errorCallback = ^(NSString *error) {
</span><span class="cx">         backendDispatcher()-&gt;reportProtocolError(requestId, BackendDispatcher::ServerError, error);
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/ChangeLog        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,3 +1,29 @@
</span><ins>+2016-12-20  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        Address some style problems found by static analysis
+        https://bugs.webkit.org/show_bug.cgi?id=165975
+
+        Reviewed by Alex Christensen.
+
+        Correct the const-correctness of functions that are implemented using stricter
+        const declarations.
+
+        Avoid passing large ANGLE data structures through the ANGLEWebKitBridge methods.
+
+        * inspector/InspectorCSSAgent.h: Declare the method overrides properly to match
+        the stricter const declarations in the implementation files.
+        * inspector/InspectorDOMAgent.h: Ditto.
+        * inspector/InspectorPageAgent.h: Ditto.
+        * inspector/InspectorTimelineAgent.h: Ditto.
+        * inspector/PageDebuggerAgent.h: Ditto.
+        * platform/graphics/ANGLEWebKitBridge.cpp:
+        (WebCore::ANGLEWebKitBridge::setResources): Pass by const reference.
+        * platform/graphics/ANGLEWebKitBridge.h:
+        (WebCore::ANGLEWebKitBridge::getResources): Return a const reference.
+        * platform/mediastream/RealtimeMediaSource.cpp:
+        (WebCore::RealtimeMediaSource::selectSettings): Use a lambda that takes
+        a const reference, rather than copying the maps while searching.
+
</ins><span class="cx"> 2016-12-20  Sam Weinig  &lt;sam@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         [WebIDL] Remove custom binding for WorkerGlobalScope::importScripts
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorCSSAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorCSSAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> /*
</span><span class="cx">  * Copyright (C) 2010 Google Inc. All rights reserved.
</span><del>- * Copyright (C) 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx">     void getComputedStyleForNode(ErrorString&amp;, int nodeId, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::CSS::CSSComputedStyleProperty&gt;&gt;&amp;) override;
</span><span class="cx">     void getInlineStylesForNode(ErrorString&amp;, int nodeId, RefPtr&lt;Inspector::Protocol::CSS::CSSStyle&gt;&amp; inlineStyle, RefPtr&lt;Inspector::Protocol::CSS::CSSStyle&gt;&amp; attributes) override;
</span><del>-    void getMatchedStylesForNode(ErrorString&amp;, int nodeId, const bool* includePseudo, const bool* includeInherited, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::CSS::RuleMatch&gt;&gt;&amp; matchedCSSRules, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::CSS::PseudoIdMatches&gt;&gt;&amp; pseudoIdMatches, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::CSS::InheritedStyleEntry&gt;&gt;&amp; inheritedEntries) override;
</del><ins>+    void getMatchedStylesForNode(ErrorString&amp;, int nodeId, const bool* const includePseudo, const bool* const includeInherited, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::CSS::RuleMatch&gt;&gt;&amp; matchedCSSRules, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::CSS::PseudoIdMatches&gt;&gt;&amp;, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::CSS::InheritedStyleEntry&gt;&gt;&amp; inheritedEntries) override;
</ins><span class="cx">     void getAllStyleSheets(ErrorString&amp;, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::CSS::CSSStyleSheetHeader&gt;&gt;&amp; styleSheetInfos) override;
</span><span class="cx">     void getStyleSheet(ErrorString&amp;, const String&amp; styleSheetId, RefPtr&lt;Inspector::Protocol::CSS::CSSStyleSheetBody&gt;&amp; result) override;
</span><span class="cx">     void getStyleSheetText(ErrorString&amp;, const String&amp; styleSheetId, String* result) override;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2009, 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2009, 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2011 Google Inc. All rights reserved.
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -116,9 +116,9 @@
</span><span class="cx">     void querySelector(ErrorString&amp;, int nodeId, const String&amp; selectors, int* elementId) override;
</span><span class="cx">     void querySelectorAll(ErrorString&amp;, int nodeId, const String&amp; selectors, RefPtr&lt;Inspector::Protocol::Array&lt;int&gt;&gt;&amp; result) override;
</span><span class="cx">     void getDocument(ErrorString&amp;, RefPtr&lt;Inspector::Protocol::DOM::Node&gt;&amp; root) override;
</span><del>-    void requestChildNodes(ErrorString&amp;, int nodeId, const int* depth) override;
</del><ins>+    void requestChildNodes(ErrorString&amp;, int nodeId, const int* const depth) override;
</ins><span class="cx">     void setAttributeValue(ErrorString&amp;, int elementId, const String&amp; name, const String&amp; value) override;
</span><del>-    void setAttributesAsText(ErrorString&amp;, int elementId, const String&amp; text, const String* name) override;
</del><ins>+    void setAttributesAsText(ErrorString&amp;, int elementId, const String&amp; text, const String* const name) override;
</ins><span class="cx">     void removeAttribute(ErrorString&amp;, int elementId, const String&amp; name) override;
</span><span class="cx">     void removeNode(ErrorString&amp;, int nodeId) override;
</span><span class="cx">     void setNodeName(ErrorString&amp;, int nodeId, const String&amp; name, int* newId) override;
</span><span class="lines">@@ -125,12 +125,12 @@
</span><span class="cx">     void getOuterHTML(ErrorString&amp;, int nodeId, WTF::String* outerHTML) override;
</span><span class="cx">     void setOuterHTML(ErrorString&amp;, int nodeId, const String&amp; outerHTML) override;
</span><span class="cx">     void setNodeValue(ErrorString&amp;, int nodeId, const String&amp; value) override;
</span><del>-    void getEventListenersForNode(ErrorString&amp;, int nodeId, const WTF::String* objectGroup, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::DOM::EventListener&gt;&gt;&amp; listenersArray) override;
</del><ins>+    void getEventListenersForNode(ErrorString&amp;, int nodeId, const WTF::String* const objectGroup, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::DOM::EventListener&gt;&gt;&amp; listenersArray) override;
</ins><span class="cx">     void getAccessibilityPropertiesForNode(ErrorString&amp;, int nodeId, RefPtr&lt;Inspector::Protocol::DOM::AccessibilityProperties&gt;&amp; axProperties) override;
</span><span class="cx">     void performSearch(ErrorString&amp;, const String&amp; whitespaceTrimmedQuery, const Inspector::InspectorArray* nodeIds, String* searchId, int* resultCount) override;
</span><span class="cx">     void getSearchResults(ErrorString&amp;, const String&amp; searchId, int fromIndex, int toIndex, RefPtr&lt;Inspector::Protocol::Array&lt;int&gt;&gt;&amp;) override;
</span><span class="cx">     void discardSearchResults(ErrorString&amp;, const String&amp; searchId) override;
</span><del>-    void resolveNode(ErrorString&amp;, int nodeId, const String* objectGroup, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result) override;
</del><ins>+    void resolveNode(ErrorString&amp;, int nodeId, const String* const objectGroup, RefPtr&lt;Inspector::Protocol::Runtime::RemoteObject&gt;&amp; result) override;
</ins><span class="cx">     void getAttributes(ErrorString&amp;, int nodeId, RefPtr&lt;Inspector::Protocol::Array&lt;String&gt;&gt;&amp; result) override;
</span><span class="cx">     void setInspectModeEnabled(ErrorString&amp;, bool enabled, const Inspector::InspectorObject* highlightConfig) override;
</span><span class="cx">     void requestNode(ErrorString&amp;, const String&amp; objectId, int* nodeId) override;
</span><span class="lines">@@ -138,13 +138,13 @@
</span><span class="cx">     void pushNodeByBackendIdToFrontend(ErrorString&amp;, BackendNodeId, int* nodeId) override;
</span><span class="cx">     void releaseBackendNodeIds(ErrorString&amp;, const String&amp; nodeGroup) override;
</span><span class="cx">     void hideHighlight(ErrorString&amp;) override;
</span><del>-    void highlightRect(ErrorString&amp;, int x, int y, int width, int height, const Inspector::InspectorObject* color, const Inspector::InspectorObject* outlineColor, const bool* usePageCoordinates) override;
-    void highlightQuad(ErrorString&amp;, const Inspector::InspectorArray&amp; quad, const Inspector::InspectorObject* color, const Inspector::InspectorObject* outlineColor, const bool* usePageCoordinates) override;
-    void highlightSelector(ErrorString&amp;, const Inspector::InspectorObject&amp; highlightConfig, const String&amp; selectorString, const String* frameId) override;
-    void highlightNode(ErrorString&amp;, const Inspector::InspectorObject&amp; highlightConfig, const int* nodeId, const String* objectId) override;
</del><ins>+    void highlightRect(ErrorString&amp;, int x, int y, int width, int height, const Inspector::InspectorObject* color, const Inspector::InspectorObject* outlineColor, const bool* const usePageCoordinates) override;
+    void highlightQuad(ErrorString&amp;, const Inspector::InspectorArray&amp; quad, const Inspector::InspectorObject* color, const Inspector::InspectorObject* outlineColor, const bool* const usePageCoordinates) override;
+    void highlightSelector(ErrorString&amp;, const Inspector::InspectorObject&amp; highlightConfig, const String&amp; selectorString, const String* const frameId) override;
+    void highlightNode(ErrorString&amp;, const Inspector::InspectorObject&amp; highlightConfig, const int* const nodeId, const String* const objectId) override;
</ins><span class="cx">     void highlightFrame(ErrorString&amp;, const String&amp; frameId, const Inspector::InspectorObject* color, const Inspector::InspectorObject* outlineColor) override;
</span><span class="cx"> 
</span><del>-    void moveTo(ErrorString&amp;, int nodeId, int targetNodeId, const int* anchorNodeId, int* newNodeId) override;
</del><ins>+    void moveTo(ErrorString&amp;, int nodeId, int targetNodeId, const int* const anchorNodeId, int* newNodeId) override;
</ins><span class="cx">     void undo(ErrorString&amp;) override;
</span><span class="cx">     void redo(ErrorString&amp;) override;
</span><span class="cx">     void markUndoableState(ErrorString&amp;) override;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorPageAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorPageAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> /*
</span><span class="cx">  * Copyright (C) 2011 Google Inc. All rights reserved.
</span><del>- * Copyright (C) 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions are
</span><span class="lines">@@ -93,14 +93,14 @@
</span><span class="cx">     void disable(ErrorString&amp;) override;
</span><span class="cx">     void addScriptToEvaluateOnLoad(ErrorString&amp;, const String&amp; source, String* result) override;
</span><span class="cx">     void removeScriptToEvaluateOnLoad(ErrorString&amp;, const String&amp; identifier) override;
</span><del>-    void reload(ErrorString&amp;, const bool* optionalIgnoreCache, const String* optionalScriptToEvaluateOnLoad) override;
</del><ins>+    void reload(ErrorString&amp;, const bool* const optionalIgnoreCache, const String* const optionalScriptToEvaluateOnLoad) override;
</ins><span class="cx">     void navigate(ErrorString&amp;, const String&amp; url) override;
</span><span class="cx">     void getCookies(ErrorString&amp;, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Page::Cookie&gt;&gt;&amp; cookies) override;
</span><span class="cx">     void deleteCookie(ErrorString&amp;, const String&amp; cookieName, const String&amp; url) override;
</span><span class="cx">     void getResourceTree(ErrorString&amp;, RefPtr&lt;Inspector::Protocol::Page::FrameResourceTree&gt;&amp;) override;
</span><span class="cx">     void getResourceContent(ErrorString&amp;, const String&amp; frameId, const String&amp; url, String* content, bool* base64Encoded) override;
</span><del>-    void searchInResource(ErrorString&amp;, const String&amp; frameId, const String&amp; url, const String&amp; query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, const String* optionalRequestId, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::GenericTypes::SearchMatch&gt;&gt;&amp;) override;
-    void searchInResources(ErrorString&amp;, const String&amp;, const bool* caseSensitive, const bool* isRegex, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Page::SearchResult&gt;&gt;&amp;) override;
</del><ins>+    void searchInResource(ErrorString&amp;, const String&amp; frameId, const String&amp; url, const String&amp; query, const bool* const optionalCaseSensitive, const bool* const optionalIsRegex, const String* const optionalRequestId, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::GenericTypes::SearchMatch&gt;&gt;&amp;) override;
+    void searchInResources(ErrorString&amp;, const String&amp;, const bool* const caseSensitive, const bool* const isRegex, RefPtr&lt;Inspector::Protocol::Array&lt;Inspector::Protocol::Page::SearchResult&gt;&gt;&amp;) override;
</ins><span class="cx">     void setShowPaintRects(ErrorString&amp;, bool show) override;
</span><span class="cx">     void setEmulatedMedia(ErrorString&amp;, const String&amp;) override;
</span><span class="cx">     void getCompositingBordersVisible(ErrorString&amp;, bool* out_param) override;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorTimelineAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorTimelineAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorTimelineAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/inspector/InspectorTimelineAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> /*
</span><span class="cx"> * Copyright (C) 2012 Google Inc. All rights reserved.
</span><span class="cx"> * Copyright (C) 2014 University of Washington.
</span><del>-* Copyright (C) 2015 Apple Inc. All rights reserved.
</del><ins>+* Copyright (C) 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx"> *
</span><span class="cx"> * Redistribution and use in source and binary forms, with or without
</span><span class="cx"> * modification, are permitted provided that the following conditions are
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx">     void didCreateFrontendAndBackend(Inspector::FrontendRouter*, Inspector::BackendDispatcher*) final;
</span><span class="cx">     void willDestroyFrontendAndBackend(Inspector::DisconnectReason) final;
</span><span class="cx"> 
</span><del>-    void start(ErrorString&amp;, const int* maxCallStackDepth = nullptr) final;
</del><ins>+    void start(ErrorString&amp;, const int* const maxCallStackDepth = nullptr) final;
</ins><span class="cx">     void stop(ErrorString&amp;) final;
</span><span class="cx">     void setAutoCaptureEnabled(ErrorString&amp;, bool) final;
</span><span class="cx">     void setInstruments(ErrorString&amp;, const Inspector::InspectorArray&amp;) final;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorPageDebuggerAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/PageDebuggerAgent.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/PageDebuggerAgent.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/inspector/PageDebuggerAgent.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> /*
</span><span class="cx">  * Copyright (C) 2011 Google Inc. All rights reserved.
</span><del>- * Copyright (C) 2015 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions are
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx">     void breakpointActionLog(JSC::ExecState&amp;, const String&amp;) override;
</span><span class="cx"> 
</span><span class="cx">     Inspector::InjectedScript injectedScriptForEval(ErrorString&amp;, const int* executionContextId) override;
</span><del>-    void setOverlayMessage(ErrorString&amp;, const String*) final;
</del><ins>+    void setOverlayMessage(ErrorString&amp;, const String* const) final;
</ins><span class="cx"> 
</span><span class="cx">     Page&amp; m_page;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsANGLEWebKitBridgecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.cpp        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2010 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2010, 2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -152,7 +152,7 @@
</span><span class="cx">     builtCompilers = false;
</span><span class="cx"> }
</span><span class="cx">     
</span><del>-void ANGLEWebKitBridge::setResources(ShBuiltInResources resources)
</del><ins>+void ANGLEWebKitBridge::setResources(const ShBuiltInResources&amp; resources)
</ins><span class="cx"> {
</span><span class="cx">     // Resources are (possibly) changing - cleanup compilers if we had them already
</span><span class="cx">     cleanupCompilers();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsANGLEWebKitBridgeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2010 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2010, 2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -63,8 +63,8 @@
</span><span class="cx">     ANGLEWebKitBridge(ShShaderOutput = SH_GLSL_COMPATIBILITY_OUTPUT, ShShaderSpec = SH_WEBGL_SPEC);
</span><span class="cx">     ~ANGLEWebKitBridge();
</span><span class="cx">     
</span><del>-    ShBuiltInResources getResources() { return m_resources; }
-    void setResources(ShBuiltInResources);
</del><ins>+    const ShBuiltInResources&amp; getResources() { return m_resources; }
+    void setResources(const ShBuiltInResources&amp;);
</ins><span class="cx">     
</span><span class="cx">     bool compileShaderSource(const char* shaderSource, ANGLEShaderType, String&amp; translatedShaderSource, String&amp; shaderValidationLog, Vector&lt;std::pair&lt;ANGLEShaderSymbolType, sh::ShaderVariable&gt;&gt;&amp; symbols, int extraCompileOptions = 0);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamRealtimeMediaSourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -554,7 +554,7 @@
</span><span class="cx">     // 6. Select one settings dictionary from candidates, and return it as the result of the SelectSettings() algorithm.
</span><span class="cx">     //    The UA should use the one with the smallest fitness distance, as calculated in step 3.
</span><span class="cx">     if (!std::isinf(minimumDistance)) {
</span><del>-        supportedConstraints.removeAllMatching([&amp;](std::pair&lt;double, MediaTrackConstraintSetMap&gt; pair) -&gt; bool {
</del><ins>+        supportedConstraints.removeAllMatching([&amp;](const std::pair&lt;double, MediaTrackConstraintSetMap&gt;&amp; pair) -&gt; bool {
</ins><span class="cx">             return pair.first &gt; minimumDistance;
</span><span class="cx">         });
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebKit2/ChangeLog        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-12-20  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        Address some style problems found by static analysis
+        https://bugs.webkit.org/show_bug.cgi?id=165975
+
+        Reviewed by Alex Christensen.
+
+        Avoid passing large ANGLE data structures through the ANGLEWebKitBridge methods.
+
+        * Shared/WebBackForwardListItem.cpp:
+        (WebKit::WebBackForwardListItem::create):
+        (WebKit::WebBackForwardListItem::WebBackForwardListItem):
+        * Shared/WebBackForwardListItem.h:
+
</ins><span class="cx"> 2016-12-20  Simon Fraser  &lt;simon.fraser@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [iOS WK2] Switching or closing a tab leads to all-white tab content if the status bar is double height
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebBackForwardListItemcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebBackForwardListItem.cpp (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebBackForwardListItem.cpp        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebKit2/Shared/WebBackForwardListItem.cpp        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2010-2011, 2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -32,12 +32,12 @@
</span><span class="cx"> 
</span><span class="cx"> static uint64_t highestItemID = 0;
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;WebBackForwardListItem&gt; WebBackForwardListItem::create(BackForwardListItemState backForwardListItemState, uint64_t pageID)
</del><ins>+Ref&lt;WebBackForwardListItem&gt; WebBackForwardListItem::create(BackForwardListItemState&amp;&amp; backForwardListItemState, uint64_t pageID)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new WebBackForwardListItem(WTFMove(backForwardListItemState), pageID));
</del><ins>+    return adoptRef(*new WebBackForwardListItem(WTFMove(backForwardListItemState), pageID));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-WebBackForwardListItem::WebBackForwardListItem(BackForwardListItemState backForwardListItemState, uint64_t pageID)
</del><ins>+WebBackForwardListItem::WebBackForwardListItem(BackForwardListItemState&amp;&amp; backForwardListItemState, uint64_t pageID)
</ins><span class="cx">     : m_itemState(WTFMove(backForwardListItemState))
</span><span class="cx">     , m_pageID(pageID)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedWebBackForwardListItemh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/WebBackForwardListItem.h (210041 => 210042)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/WebBackForwardListItem.h        2016-12-20 23:32:28 UTC (rev 210041)
+++ trunk/Source/WebKit2/Shared/WebBackForwardListItem.h        2016-12-20 23:32:58 UTC (rev 210042)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2010-2011, 2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> 
</span><span class="cx"> class WebBackForwardListItem : public API::ObjectImpl&lt;API::Object::Type::BackForwardListItem&gt; {
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;WebBackForwardListItem&gt; create(BackForwardListItemState, uint64_t pageID);
</del><ins>+    static Ref&lt;WebBackForwardListItem&gt; create(BackForwardListItemState&amp;&amp;, uint64_t pageID);
</ins><span class="cx">     virtual ~WebBackForwardListItem();
</span><span class="cx"> 
</span><span class="cx">     uint64_t itemID() const { return m_itemState.identifier; }
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx">     static uint64_t highestUsedItemID();
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    explicit WebBackForwardListItem(BackForwardListItemState, uint64_t pageID);
</del><ins>+    explicit WebBackForwardListItem(BackForwardListItemState&amp;&amp;, uint64_t pageID);
</ins><span class="cx"> 
</span><span class="cx">     BackForwardListItemState m_itemState;
</span><span class="cx">     uint64_t m_pageID;
</span></span></pre>
</div>
</div>

</body>
</html>