<!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>[184555] 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/184555">184555</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2015-05-19 00:22:36 -0700 (Tue, 19 May 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>Mark static variables as const when possible
https://bugs.webkit.org/show_bug.cgi?id=145161
Reviewed by Andreas Kling.
Source/WebCore:
* Modules/mediasession/WebMediaSessionManager.cpp:
* Modules/mediasource/SourceBuffer.cpp:
* Modules/webdatabase/SQLException.cpp:
* dom/DOMCoreException.cpp:
* inspector/NetworkResourcesData.cpp:
* loader/icon/IconDatabase.cpp:
(WebCore::urlForLogging):
* page/AutoscrollController.cpp:
* page/Page.cpp:
* platform/RuntimeApplicationChecksIOS.mm:
(WebCore::applicationIsAdSheet):
(WebCore::applicationIsMobileMail):
(WebCore::applicationIsMobileSafari):
(WebCore::applicationIsDumpRenderTree):
(WebCore::applicationIsWebApp):
(WebCore::applicationIsOkCupid):
(WebCore::applicationIsFacebook):
(WebCore::applicationIsEpicurious):
(WebCore::applicationIsDaijisenDictionary):
(WebCore::applicationIsNASAHD):
(WebCore::applicationIsMASH):
(WebCore::applicationIsTheEconomistOnIPhone):
(WebCore::applicationIsWebProcess):
(WebCore::applicationIsIBooksOnIOS):
* platform/audio/HRTFElevation.cpp:
* platform/audio/mac/AudioHardwareListenerMac.cpp:
(WebCore::processIsRunningPropertyDescriptor):
(WebCore::outputDevicePropertyDescriptor):
* platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
* platform/graphics/ca/GraphicsLayerCA.cpp:
* platform/graphics/mac/FontCacheMac.mm:
(WebCore::toCoreTextFontWeight):
(WebCore::toAppKitFontWeight):
(WebCore::toNSFontWeight):
* platform/mac/ScrollAnimatorMac.mm:
(supportsUIStateTransitionProgress):
(supportsExpansionTransitionProgress):
(supportsContentAreaScrolledInDirection):
* platform/mac/ScrollbarThemeMac.mm:
* platform/mac/WebCoreNSURLExtras.mm:
(WebCore::dataForURLComponentType):
* platform/mock/ScrollbarThemeMock.cpp:
* platform/text/icu/UTextProviderLatin1.cpp:
* platform/text/ios/LocalizedDateCache.mm:
(WebCore::LocalizedDateCache::calculateMaximumWidth):
* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlockFlow::matchedEndLine):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::paintTranslucentBorderSides):
* rendering/RenderFrameBase.cpp:
(WebCore::shouldExpandFrame):
* rendering/RenderTableSection.cpp:
* rendering/RenderThemeIOS.mm:
(WebCore::getInsetGradient):
(WebCore::getShineGradient):
(WebCore::getShadeGradient):
(WebCore::getConvexGradient):
(WebCore::getConcaveGradient):
(WebCore::getSliderTrackGradient):
(WebCore::getReadonlySliderTrackGradient):
(WebCore::getSliderThumbOpaquePressedGradient):
(WebCore::RenderThemeIOS::paintCheckboxDecorations):
(WebCore::RenderThemeIOS::paintRadioDecorations):
* rendering/RenderThemeMac.mm:
(WebCore::toFontWeight):
(WebCore::TopGradientInterpolate):
(WebCore::BottomGradientInterpolate):
(WebCore::MainGradientInterpolate):
(WebCore::TrackGradientInterpolate):
Source/WebKit2:
* Platform/IPC/MessageEncoder.cpp:
* UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::networkProcessLatencyQOS):
(WebKit::networkProcessThroughputQOS):
(WebKit::webProcessLatencyQOS):
(WebKit::webProcessThroughputQOS):
* UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
(WebKit::PluginProcessProxy::pluginNeedsExecutableHeap):
(WebKit::pluginProcessLatencyQOS):
(WebKit::pluginProcessThroughputQOS):
* WebProcess/WebPage/WebPage.cpp:
Source/WTF:
* wtf/dtoa.cpp:
(WTF::pow5mult):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfdtoacpp">trunk/Source/WTF/wtf/dtoa.cpp</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasessionWebMediaSessionManagercpp">trunk/Source/WebCore/Modules/mediasession/WebMediaSessionManager.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasourceSourceBuffercpp">trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLExceptioncpp">trunk/Source/WebCore/Modules/webdatabase/SQLException.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDOMCoreExceptioncpp">trunk/Source/WebCore/dom/DOMCoreException.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorNetworkResourcesDatacpp">trunk/Source/WebCore/inspector/NetworkResourcesData.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadericonIconDatabasecpp">trunk/Source/WebCore/loader/icon/IconDatabase.cpp</a></li>
<li><a href="#trunkSourceWebCorepageAutoscrollControllercpp">trunk/Source/WebCore/page/AutoscrollController.cpp</a></li>
<li><a href="#trunkSourceWebCorepagePagecpp">trunk/Source/WebCore/page/Page.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksIOSmm">trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformaudioHRTFElevationcpp">trunk/Source/WebCore/platform/audio/HRTFElevation.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformaudiomacAudioHardwareListenerMaccpp">trunk/Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationAudioSourceProviderAVFObjCmm">trunk/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp">trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsmacFontCacheMacmm">trunk/Source/WebCore/platform/graphics/mac/FontCacheMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmacScrollAnimatorMacmm">trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmacScrollbarThemeMacmm">trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmacWebCoreNSURLExtrasmm">trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmockScrollbarThemeMockcpp">trunk/Source/WebCore/platform/mock/ScrollbarThemeMock.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformtexticuUTextProviderLatin1cpp">trunk/Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformtextiosLocalizedDateCachemm">trunk/Source/WebCore/platform/text/ios/LocalizedDateCache.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBlockLineLayoutcpp">trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBoxModelObjectcpp">trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderFrameBasecpp">trunk/Source/WebCore/rendering/RenderFrameBase.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderTableSectioncpp">trunk/Source/WebCore/rendering/RenderTableSection.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeIOSmm">trunk/Source/WebCore/rendering/RenderThemeIOS.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderThemeMacmm">trunk/Source/WebCore/rendering/RenderThemeMac.mm</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2PlatformIPCMessageEncodercpp">trunk/Source/WebKit2/Platform/IPC/MessageEncoder.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaWebProcessPoolCocoamm">trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsmacPluginProcessProxyMacmm">trunk/Source/WebKit2/UIProcess/Plugins/mac/PluginProcessProxyMac.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WTF/ChangeLog        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2015-05-19 Chris Dumez <cdumez@apple.com>
+
+ Mark static variables as const when possible
+ https://bugs.webkit.org/show_bug.cgi?id=145161
+
+ Reviewed by Andreas Kling.
+
+ * wtf/dtoa.cpp:
+ (WTF::pow5mult):
+
</ins><span class="cx"> 2015-05-19 Gyuyoung Kim <gyuyoung.kim@webkit.org>
</span><span class="cx">
</span><span class="cx"> [EFL] Remove unnecessary PLATFORM(EFL) macro in EFL specific files
</span></span></pre></div>
<a id="trunkSourceWTFwtfdtoacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/dtoa.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/dtoa.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WTF/wtf/dtoa.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -367,7 +367,7 @@
</span><span class="cx">
</span><span class="cx"> static ALWAYS_INLINE void pow5mult(BigInt& b, int k)
</span><span class="cx"> {
</span><del>- static int p05[3] = { 5, 25, 125 };
</del><ins>+ static const int p05[3] = { 5, 25, 125 };
</ins><span class="cx">
</span><span class="cx"> if (int i = k & 3)
</span><span class="cx"> multadd(b, p05[i - 1], 0);
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/ChangeLog        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -1,3 +1,80 @@
</span><ins>+2015-05-19 Chris Dumez <cdumez@apple.com>
+
+ Mark static variables as const when possible
+ https://bugs.webkit.org/show_bug.cgi?id=145161
+
+ Reviewed by Andreas Kling.
+
+ * Modules/mediasession/WebMediaSessionManager.cpp:
+ * Modules/mediasource/SourceBuffer.cpp:
+ * Modules/webdatabase/SQLException.cpp:
+ * dom/DOMCoreException.cpp:
+ * inspector/NetworkResourcesData.cpp:
+ * loader/icon/IconDatabase.cpp:
+ (WebCore::urlForLogging):
+ * page/AutoscrollController.cpp:
+ * page/Page.cpp:
+ * platform/RuntimeApplicationChecksIOS.mm:
+ (WebCore::applicationIsAdSheet):
+ (WebCore::applicationIsMobileMail):
+ (WebCore::applicationIsMobileSafari):
+ (WebCore::applicationIsDumpRenderTree):
+ (WebCore::applicationIsWebApp):
+ (WebCore::applicationIsOkCupid):
+ (WebCore::applicationIsFacebook):
+ (WebCore::applicationIsEpicurious):
+ (WebCore::applicationIsDaijisenDictionary):
+ (WebCore::applicationIsNASAHD):
+ (WebCore::applicationIsMASH):
+ (WebCore::applicationIsTheEconomistOnIPhone):
+ (WebCore::applicationIsWebProcess):
+ (WebCore::applicationIsIBooksOnIOS):
+ * platform/audio/HRTFElevation.cpp:
+ * platform/audio/mac/AudioHardwareListenerMac.cpp:
+ (WebCore::processIsRunningPropertyDescriptor):
+ (WebCore::outputDevicePropertyDescriptor):
+ * platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
+ * platform/graphics/ca/GraphicsLayerCA.cpp:
+ * platform/graphics/mac/FontCacheMac.mm:
+ (WebCore::toCoreTextFontWeight):
+ (WebCore::toAppKitFontWeight):
+ (WebCore::toNSFontWeight):
+ * platform/mac/ScrollAnimatorMac.mm:
+ (supportsUIStateTransitionProgress):
+ (supportsExpansionTransitionProgress):
+ (supportsContentAreaScrolledInDirection):
+ * platform/mac/ScrollbarThemeMac.mm:
+ * platform/mac/WebCoreNSURLExtras.mm:
+ (WebCore::dataForURLComponentType):
+ * platform/mock/ScrollbarThemeMock.cpp:
+ * platform/text/icu/UTextProviderLatin1.cpp:
+ * platform/text/ios/LocalizedDateCache.mm:
+ (WebCore::LocalizedDateCache::calculateMaximumWidth):
+ * rendering/RenderBlockLineLayout.cpp:
+ (WebCore::RenderBlockFlow::matchedEndLine):
+ * rendering/RenderBoxModelObject.cpp:
+ (WebCore::RenderBoxModelObject::paintTranslucentBorderSides):
+ * rendering/RenderFrameBase.cpp:
+ (WebCore::shouldExpandFrame):
+ * rendering/RenderTableSection.cpp:
+ * rendering/RenderThemeIOS.mm:
+ (WebCore::getInsetGradient):
+ (WebCore::getShineGradient):
+ (WebCore::getShadeGradient):
+ (WebCore::getConvexGradient):
+ (WebCore::getConcaveGradient):
+ (WebCore::getSliderTrackGradient):
+ (WebCore::getReadonlySliderTrackGradient):
+ (WebCore::getSliderThumbOpaquePressedGradient):
+ (WebCore::RenderThemeIOS::paintCheckboxDecorations):
+ (WebCore::RenderThemeIOS::paintRadioDecorations):
+ * rendering/RenderThemeMac.mm:
+ (WebCore::toFontWeight):
+ (WebCore::TopGradientInterpolate):
+ (WebCore::BottomGradientInterpolate):
+ (WebCore::MainGradientInterpolate):
+ (WebCore::TrackGradientInterpolate):
+
</ins><span class="cx"> 2015-05-18 Gyuyoung Kim <gyuyoung.kim@webkit.org>
</span><span class="cx">
</span><span class="cx"> Use Ref instead of PassRefPtr in WebCore/bindings
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasessionWebMediaSessionManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasession/WebMediaSessionManager.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasession/WebMediaSessionManager.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/Modules/mediasession/WebMediaSessionManager.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-static double taskDelayInterval = 1.0 / 10.0;
</del><ins>+static const double taskDelayInterval = 1.0 / 10.0;
</ins><span class="cx">
</span><span class="cx"> struct ClientState {
</span><span class="cx"> explicit ClientState(WebMediaSessionManagerClient& client, uint64_t contextId)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasourceSourceBuffercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-static double ExponentialMovingAverageCoefficient = 0.1;
</del><ins>+static const double ExponentialMovingAverageCoefficient = 0.1;
</ins><span class="cx">
</span><span class="cx"> // Allow hasCurrentTime() to be off by as much as the length of a 24fps video frame
</span><span class="cx"> static const MediaTime& currentTimeFudgeFactor()
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLExceptioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLException.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLException.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLException.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-static struct SQLExceptionNameDescription {
</del><ins>+static const struct SQLExceptionNameDescription {
</ins><span class="cx"> const char* const name;
</span><span class="cx"> const char* const description;
</span><span class="cx"> } sqlExceptions[] = {
</span></span></pre></div>
<a id="trunkSourceWebCoredomDOMCoreExceptioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/DOMCoreException.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/DOMCoreException.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/dom/DOMCoreException.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-static struct CoreException {
</del><ins>+static const struct CoreException {
</ins><span class="cx"> const char* const name;
</span><span class="cx"> const char* const description;
</span><span class="cx"> } coreExceptions[] = {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorNetworkResourcesDatacpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/NetworkResourcesData.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/NetworkResourcesData.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/inspector/NetworkResourcesData.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -37,10 +37,10 @@
</span><span class="cx">
</span><span class="cx"> namespace {
</span><span class="cx"> // 100MB
</span><del>-static size_t maximumResourcesContentSize = 100 * 1000 * 1000;
</del><ins>+static const size_t maximumResourcesContentSize = 100 * 1000 * 1000;
</ins><span class="cx">
</span><span class="cx"> // 10MB
</span><del>-static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000;
</del><ins>+static const size_t maximumSingleResourceContentSize = 10 * 1000 * 1000;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> using namespace Inspector;
</span></span></pre></div>
<a id="trunkSourceWebCoreloadericonIconDatabasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/icon/IconDatabase.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/icon/IconDatabase.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/loader/icon/IconDatabase.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> #if !LOG_DISABLED || !ERROR_DISABLED
</span><span class="cx"> static String urlForLogging(const String& url)
</span><span class="cx"> {
</span><del>- static unsigned urlTruncationLength = 120;
</del><ins>+ static const unsigned urlTruncationLength = 120;
</ins><span class="cx">
</span><span class="cx"> if (url.length() < urlTruncationLength)
</span><span class="cx"> return url;
</span></span></pre></div>
<a id="trunkSourceWebCorepageAutoscrollControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/AutoscrollController.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/AutoscrollController.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/page/AutoscrollController.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> // Delay time in second for start autoscroll if pointer is in border edge of scrollable element.
</span><del>-static double autoscrollDelay = 0.2;
</del><ins>+static const double autoscrollDelay = 0.2;
</ins><span class="cx">
</span><span class="cx"> // When the autoscroll or the panScroll is triggered when do the scroll every 0.05s to make it smooth
</span><span class="cx"> static const double autoscrollInterval = 0.05;
</span></span></pre></div>
<a id="trunkSourceWebCorepagePagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Page.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Page.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/page/Page.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -391,7 +391,7 @@
</span><span class="cx"> Page::ViewMode type;
</span><span class="cx"> };
</span><span class="cx"> static const int viewModeMapSize = 5;
</span><del>-static ViewModeInfo viewModeMap[viewModeMapSize] = {
</del><ins>+static const ViewModeInfo viewModeMap[viewModeMapSize] = {
</ins><span class="cx"> {"windowed", Page::ViewModeWindowed},
</span><span class="cx"> {"floating", Page::ViewModeFloating},
</span><span class="cx"> {"fullscreen", Page::ViewModeFullscreen},
</span><span class="lines">@@ -1416,8 +1416,8 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // These are magical constants that might be tweaked over time.
</span><del>-static double gMinimumPaintedAreaRatio = 0.1;
-static double gMaximumUnpaintedAreaRatio = 0.04;
</del><ins>+static const double gMinimumPaintedAreaRatio = 0.1;
+static const double gMaximumUnpaintedAreaRatio = 0.04;
</ins><span class="cx">
</span><span class="cx"> bool Page::isCountingRelevantRepaintedObjects() const
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -33,19 +33,19 @@
</span><span class="cx">
</span><span class="cx"> bool applicationIsAdSheet()
</span><span class="cx"> {
</span><del>- static bool isAdSheet = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.AdSheetPhone"];
</del><ins>+ static const bool isAdSheet = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.AdSheetPhone"];
</ins><span class="cx"> return isAdSheet;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsMobileMail()
</span><span class="cx"> {
</span><del>- static bool isMobileMail = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.mobilemail"];
</del><ins>+ static const bool isMobileMail = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.mobilemail"];
</ins><span class="cx"> return isMobileMail;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsMobileSafari()
</span><span class="cx"> {
</span><del>- static bool isMobileSafari = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.mobilesafari"];
</del><ins>+ static const bool isMobileSafari = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.mobilesafari"];
</ins><span class="cx"> return isMobileSafari;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> {
</span><span class="cx"> // We use a prefix match instead of strict equality since LayoutTestRelay may launch multiple instances of
</span><span class="cx"> // DumpRenderTree where the bundle identifier of each instance has a unique suffix.
</span><del>- static bool isDumpRenderTree = [[[NSBundle mainBundle] bundleIdentifier] hasPrefix:@"org.webkit.DumpRenderTree"]; // e.g. org.webkit.DumpRenderTree0
</del><ins>+ static const bool isDumpRenderTree = [[[NSBundle mainBundle] bundleIdentifier] hasPrefix:@"org.webkit.DumpRenderTree"]; // e.g. org.webkit.DumpRenderTree0
</ins><span class="cx"> return isDumpRenderTree;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -65,43 +65,43 @@
</span><span class="cx">
</span><span class="cx"> bool applicationIsWebApp()
</span><span class="cx"> {
</span><del>- static bool isWebApp = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.webapp"];
</del><ins>+ static const bool isWebApp = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.webapp"];
</ins><span class="cx"> return isWebApp;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsOkCupid()
</span><span class="cx"> {
</span><del>- static bool isOkCupid = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.okcupid.app"];
</del><ins>+ static const bool isOkCupid = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.okcupid.app"];
</ins><span class="cx"> return isOkCupid;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsFacebook()
</span><span class="cx"> {
</span><del>- static bool isFacebook = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.facebook.Facebook"];
</del><ins>+ static const bool isFacebook = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.facebook.Facebook"];
</ins><span class="cx"> return isFacebook;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsEpicurious()
</span><span class="cx"> {
</span><del>- static bool isEpicurious = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.condenet.Epicurious"];
</del><ins>+ static const bool isEpicurious = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.condenet.Epicurious"];
</ins><span class="cx"> return isEpicurious;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsDaijisenDictionary()
</span><span class="cx"> {
</span><del>- static bool isDaijisenDictionary = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"jp.co.shogakukan.daijisen2009i"];
</del><ins>+ static const bool isDaijisenDictionary = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"jp.co.shogakukan.daijisen2009i"];
</ins><span class="cx"> return isDaijisenDictionary;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsNASAHD()
</span><span class="cx"> {
</span><del>- static bool isNASAHD = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"gov.nasa.NASAHD"];
</del><ins>+ static const bool isNASAHD = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"gov.nasa.NASAHD"];
</ins><span class="cx"> return isNASAHD;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsMASH()
</span><span class="cx"> {
</span><del>- static bool isMASH = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.magnateinteractive.mashgame"]
</del><ins>+ static const bool isMASH = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.magnateinteractive.mashgame"]
</ins><span class="cx"> || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.magnateinteractive.mashlitegame"]
</span><span class="cx"> || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.magnateinteractive.mashchristmas"]
</span><span class="cx"> || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.magnateinteractive.mashhalloween"]
</span><span class="lines">@@ -111,20 +111,20 @@
</span><span class="cx">
</span><span class="cx"> bool applicationIsTheEconomistOnIPhone()
</span><span class="cx"> {
</span><del>- static bool isTheEconomistOnIPhone = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.economist.iphone"];
</del><ins>+ static const bool isTheEconomistOnIPhone = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.economist.iphone"];
</ins><span class="cx"> return isTheEconomistOnIPhone;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // FIXME: this needs to be changed when the WebProcess is changed to an XPC service.
</span><span class="cx"> bool applicationIsWebProcess()
</span><span class="cx"> {
</span><del>- static bool isWebProcess = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent.Development"] || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent"] || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebProcess"];
</del><ins>+ static const bool isWebProcess = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent.Development"] || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebKit.WebContent"] || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.WebProcess"];
</ins><span class="cx"> return isWebProcess;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool applicationIsIBooksOnIOS()
</span><span class="cx"> {
</span><del>- static bool isIBooksOnIOS = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.iBooks"];
</del><ins>+ static const bool isIBooksOnIOS = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.iBooks"];
</ins><span class="cx"> return isIBooksOnIOS;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformaudioHRTFElevationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/HRTFElevation.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/HRTFElevation.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/audio/HRTFElevation.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -207,7 +207,7 @@
</span><span class="cx"> // The range of elevations for the IRCAM impulse responses varies depending on azimuth, but the minimum elevation appears to always be -45.
</span><span class="cx"> //
</span><span class="cx"> // Here's how it goes:
</span><del>-static int maxElevations[] = {
</del><ins>+static const int maxElevations[] = {
</ins><span class="cx"> // Azimuth
</span><span class="cx"> //
</span><span class="cx"> 90, // 0
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformaudiomacAudioHardwareListenerMaccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -89,25 +89,25 @@
</span><span class="cx">
</span><span class="cx"> static const AudioObjectPropertyAddress& processIsRunningPropertyDescriptor()
</span><span class="cx"> {
</span><del>- static AudioObjectPropertyAddress processIsRunningProperty = {
</del><ins>+ static const AudioObjectPropertyAddress processIsRunningProperty = {
</ins><span class="cx"> kAudioHardwarePropertyProcessIsRunning,
</span><span class="cx"> kAudioObjectPropertyScopeGlobal,
</span><span class="cx"> kAudioObjectPropertyElementMaster
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> return processIsRunningProperty;
</span><del>-};
</del><ins>+}
</ins><span class="cx">
</span><span class="cx"> static const AudioObjectPropertyAddress& outputDevicePropertyDescriptor()
</span><span class="cx"> {
</span><del>- static AudioObjectPropertyAddress outputDeviceProperty = {
</del><ins>+ static const AudioObjectPropertyAddress outputDeviceProperty = {
</ins><span class="cx"> kAudioHardwarePropertyDefaultOutputDevice,
</span><span class="cx"> kAudioObjectPropertyScopeGlobal,
</span><span class="cx"> kAudioObjectPropertyElementMaster
</span><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> return outputDeviceProperty;
</span><del>-};
</del><ins>+}
</ins><span class="cx">
</span><span class="cx"> Ref<AudioHardwareListener> AudioHardwareListener::create(Client& client)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationAudioSourceProviderAVFObjCmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-static double kRingBufferDuration = 1;
</del><ins>+static const double kRingBufferDuration = 1;
</ins><span class="cx">
</span><span class="cx"> RefPtr<AudioSourceProviderAVFObjC> AudioSourceProviderAVFObjC::create(AVPlayerItem *item)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -2032,13 +2032,13 @@
</span><span class="cx"> layer.setBorderWidth(borderColor.isValid() ? borderWidth : 0);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static float contentsLayerBorderWidth = 4;
</del><ins>+static const float contentsLayerBorderWidth = 4;
</ins><span class="cx"> static Color contentsLayerDebugBorderColor(bool showingBorders)
</span><span class="cx"> {
</span><span class="cx"> return showingBorders ? Color(0, 0, 128, 180) : Color();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static float cloneLayerBorderWidth = 2;
</del><ins>+static const float cloneLayerBorderWidth = 2;
</ins><span class="cx"> static Color cloneLayerDebugBorderColor(bool showingBorders)
</span><span class="cx"> {
</span><span class="cx"> return showingBorders ? Color(255, 122, 251) : Color();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsmacFontCacheMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/mac/FontCacheMac.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/mac/FontCacheMac.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/graphics/mac/FontCacheMac.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx">
</span><span class="cx"> static uint16_t toCoreTextFontWeight(FontWeight fontWeight)
</span><span class="cx"> {
</span><del>- static int coreTextFontWeights[] = {
</del><ins>+ static const int coreTextFontWeights[] = {
</ins><span class="cx"> 100, // FontWeight100
</span><span class="cx"> 200, // FontWeight200
</span><span class="cx"> 300, // FontWeight300
</span><span class="lines">@@ -190,7 +190,7 @@
</span><span class="cx">
</span><span class="cx"> static int toAppKitFontWeight(FontWeight fontWeight)
</span><span class="cx"> {
</span><del>- static int appKitFontWeights[] = {
</del><ins>+ static const int appKitFontWeights[] = {
</ins><span class="cx"> 2, // FontWeight100
</span><span class="cx"> 3, // FontWeight200
</span><span class="cx"> 4, // FontWeight300
</span><span class="lines">@@ -207,7 +207,7 @@
</span><span class="cx"> #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
</span><span class="cx"> static CGFloat toNSFontWeight(FontWeight fontWeight)
</span><span class="cx"> {
</span><del>- static CGFloat nsFontWeights[] = {
</del><ins>+ static const CGFloat nsFontWeights[] = {
</ins><span class="cx"> NSFontWeightUltraLight,
</span><span class="cx"> NSFontWeightThin,
</span><span class="cx"> NSFontWeightLight,
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacScrollAnimatorMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -45,19 +45,19 @@
</span><span class="cx"> static bool supportsUIStateTransitionProgress()
</span><span class="cx"> {
</span><span class="cx"> // FIXME: This is temporary until all platforms that support ScrollbarPainter support this part of the API.
</span><del>- static bool globalSupportsUIStateTransitionProgress = [NSClassFromString(@"NSScrollerImp") instancesRespondToSelector:@selector(mouseEnteredScroller)];
</del><ins>+ static const bool globalSupportsUIStateTransitionProgress = [NSClassFromString(@"NSScrollerImp") instancesRespondToSelector:@selector(mouseEnteredScroller)];
</ins><span class="cx"> return globalSupportsUIStateTransitionProgress;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static bool supportsExpansionTransitionProgress()
</span><span class="cx"> {
</span><del>- static bool globalSupportsExpansionTransitionProgress = [NSClassFromString(@"NSScrollerImp") instancesRespondToSelector:@selector(expansionTransitionProgress)];
</del><ins>+ static const bool globalSupportsExpansionTransitionProgress = [NSClassFromString(@"NSScrollerImp") instancesRespondToSelector:@selector(expansionTransitionProgress)];
</ins><span class="cx"> return globalSupportsExpansionTransitionProgress;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static bool supportsContentAreaScrolledInDirection()
</span><span class="cx"> {
</span><del>- static bool globalSupportsContentAreaScrolledInDirection = [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@selector(contentAreaScrolledInDirection:)];
</del><ins>+ static const bool globalSupportsContentAreaScrolledInDirection = [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@selector(contentAreaScrolledInDirection:)];
</ins><span class="cx"> return globalSupportsContentAreaScrolledInDirection;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacScrollbarThemeMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -119,13 +119,13 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // FIXME: Get these numbers from CoreUI.
</span><del>-static int cRealButtonLength[] = { 28, 21 };
-static int cButtonHitInset[] = { 3, 2 };
</del><ins>+static const int cRealButtonLength[] = { 28, 21 };
+static const int cButtonHitInset[] = { 3, 2 };
</ins><span class="cx"> // cRealButtonLength - cButtonInset
</span><del>-static int cButtonLength[] = { 14, 10 };
</del><ins>+static const int cButtonLength[] = { 14, 10 };
</ins><span class="cx">
</span><del>-static int cOuterButtonLength[] = { 16, 14 }; // The outer button in a double button pair is a bit bigger.
-static int cOuterButtonOverlap = 2;
</del><ins>+static const int cOuterButtonLength[] = { 16, 14 }; // The outer button in a double button pair is a bit bigger.
+static const int cOuterButtonOverlap = 2;
</ins><span class="cx">
</span><span class="cx"> static float gInitialButtonDelay = 0.5f;
</span><span class="cx"> static float gAutoscrollButtonDelay = 0.05f;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacWebCoreNSURLExtrasmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -840,7 +840,7 @@
</span><span class="cx">
</span><span class="cx"> NSData *dataForURLComponentType(NSURL *URL, CFURLComponentType componentType)
</span><span class="cx"> {
</span><del>- static int URLComponentTypeBufferLength = 2048;
</del><ins>+ static const int URLComponentTypeBufferLength = 2048;
</ins><span class="cx">
</span><span class="cx"> UInt8 staticAllBytesBuffer[URLComponentTypeBufferLength];
</span><span class="cx"> UInt8 *allBytesBuffer = staticAllBytesBuffer;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmockScrollbarThemeMockcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mock/ScrollbarThemeMock.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mock/ScrollbarThemeMock.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/mock/ScrollbarThemeMock.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><del>-static int cScrollbarThickness[] = { 15, 11 };
</del><ins>+static const int cScrollbarThickness[] = { 15, 11 };
</ins><span class="cx">
</span><span class="cx"> IntRect ScrollbarThemeMock::trackRect(ScrollbarThemeClient* scrollbar, bool)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformtexticuUTextProviderLatin1cpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> static int32_t uTextLatin1MapNativeIndexToUTF16(const UText*, int64_t);
</span><span class="cx"> static void uTextLatin1Close(UText*);
</span><span class="cx">
</span><del>-static struct UTextFuncs uTextLatin1Funcs = {
</del><ins>+static const struct UTextFuncs uTextLatin1Funcs = {
</ins><span class="cx"> sizeof(UTextFuncs),
</span><span class="cx"> 0,
</span><span class="cx"> 0,
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformtextiosLocalizedDateCachemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/text/ios/LocalizedDateCache.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/text/ios/LocalizedDateCache.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/platform/text/ios/LocalizedDateCache.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -167,7 +167,7 @@
</span><span class="cx"> [components.get() setHour:22];
</span><span class="cx"> [components.get() setMinute:45];
</span><span class="cx">
</span><del>- static NSUInteger numberOfGregorianMonths = [[dateFormatter monthSymbols] count];
</del><ins>+ static const NSUInteger numberOfGregorianMonths = [[dateFormatter monthSymbols] count];
</ins><span class="cx"> ASSERT(numberOfGregorianMonths == 12);
</span><span class="cx">
</span><span class="cx"> // For each month (in the Gregorian Calendar), format a date and measure its length.
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBlockLineLayoutcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -1888,7 +1888,7 @@
</span><span class="cx">
</span><span class="cx"> // The first clean line doesn't match, but we can check a handful of following lines to try
</span><span class="cx"> // to match back up.
</span><del>- static int numLines = 8; // The # of lines we're willing to match against.
</del><ins>+ static const int numLines = 8; // The # of lines we're willing to match against.
</ins><span class="cx"> RootInlineBox* originalEndLine = layoutState.endLine();
</span><span class="cx"> RootInlineBox* line = originalEndLine;
</span><span class="cx"> for (int i = 0; i < numLines && line; i++, line = line->nextRootBox()) {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBoxModelObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -1682,7 +1682,7 @@
</span><span class="cx"> {
</span><span class="cx"> // willBeOverdrawn assumes that we draw in order: top, bottom, left, right.
</span><span class="cx"> // This is different from BoxSide enum order.
</span><del>- static BoxSide paintOrder[] = { BSTop, BSBottom, BSLeft, BSRight };
</del><ins>+ static const BoxSide paintOrder[] = { BSTop, BSBottom, BSLeft, BSRight };
</ins><span class="cx">
</span><span class="cx"> while (edgesToDraw) {
</span><span class="cx"> // Find undrawn edges sharing a color.
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderFrameBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderFrameBase.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderFrameBase.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/rendering/RenderFrameBase.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> if (!width || !height)
</span><span class="cx"> return false;
</span><span class="cx"> // Really small fixed size frames can't be meant to be scrolled and are there probably by mistake. Avoid expanding.
</span><del>- static unsigned smallestUsefullyScrollableDimension = 8;
</del><ins>+ static const unsigned smallestUsefullyScrollableDimension = 8;
</ins><span class="cx"> if (hasFixedWidth && width < LayoutUnit(smallestUsefullyScrollableDimension))
</span><span class="cx"> return false;
</span><span class="cx"> if (hasFixedHeight && height < LayoutUnit(smallestUsefullyScrollableDimension))
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderTableSectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderTableSection.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderTableSection.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/rendering/RenderTableSection.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -45,8 +45,8 @@
</span><span class="cx"> using namespace HTMLNames;
</span><span class="cx">
</span><span class="cx"> // Those 2 variables are used to balance the memory consumption vs the repaint time on big tables.
</span><del>-static unsigned gMinTableSizeToUseFastPaintPathWithOverflowingCell = 75 * 75;
-static float gMaxAllowedOverflowingCellRatioForFastPaintPath = 0.1f;
</del><ins>+static const unsigned gMinTableSizeToUseFastPaintPathWithOverflowingCell = 75 * 75;
+static const float gMaxAllowedOverflowingCellRatioForFastPaintPath = 0.1f;
</ins><span class="cx">
</span><span class="cx"> static inline void setRowLogicalHeightToRowStyleLogicalHeightIfNotRelative(RenderTableSection::RowStruct& row)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeIOS.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeIOS.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/rendering/RenderThemeIOS.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -377,9 +377,9 @@
</span><span class="cx"> if (isChecked(box)) {
</span><span class="cx"> drawAxialGradient(cgContext, gradientWithName(ConcaveGradient), clip.location(), FloatPoint(clip.x(), clip.maxY()), LinearInterpolation);
</span><span class="cx">
</span><del>- static float thicknessRatio = 2 / 14.0;
- static CGSize size = { 14.0f, 14.0f };
- static CGPoint pathRatios[3] = {
</del><ins>+ static const float thicknessRatio = 2 / 14.0;
+ static const CGSize size = { 14.0f, 14.0f };
+ static const CGPoint pathRatios[3] = {
</ins><span class="cx"> { 2.5f / size.width, 7.5f / size.height },
</span><span class="cx"> { 5.5f / size.width, 10.5f / size.height },
</span><span class="cx"> { 11.5f / size.width, 2.5f / size.height }
</span><span class="lines">@@ -465,7 +465,7 @@
</span><span class="cx"> // The inner circle is 6 / 14 the size of the surrounding circle,
</span><span class="cx"> // leaving 8 / 14 around it. (8 / 14) / 2 = 2 / 7.
</span><span class="cx">
</span><del>- static float InnerInverseRatio = 2 / 7.0;
</del><ins>+ static const float InnerInverseRatio = 2 / 7.0;
</ins><span class="cx">
</span><span class="cx"> clip.inflateX(-clip.width() * InnerInverseRatio);
</span><span class="cx"> clip.inflateY(-clip.height() * InnerInverseRatio);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderThemeMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderThemeMac.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderThemeMac.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebCore/rendering/RenderThemeMac.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -325,7 +325,7 @@
</span><span class="cx"> else if (appKitFontWeight < 1)
</span><span class="cx"> appKitFontWeight = 1;
</span><span class="cx">
</span><del>- static FontWeight fontWeights[] = {
</del><ins>+ static const FontWeight fontWeights[] = {
</ins><span class="cx"> FontWeight100,
</span><span class="cx"> FontWeight100,
</span><span class="cx"> FontWeight200,
</span><span class="lines">@@ -1174,8 +1174,8 @@
</span><span class="cx">
</span><span class="cx"> static void TopGradientInterpolate(void*, const CGFloat* inData, CGFloat* outData)
</span><span class="cx"> {
</span><del>- static float dark[4] = { 1.0f, 1.0f, 1.0f, 0.4f };
- static float light[4] = { 1.0f, 1.0f, 1.0f, 0.15f };
</del><ins>+ static const float dark[4] = { 1.0f, 1.0f, 1.0f, 0.4f };
+ static const float light[4] = { 1.0f, 1.0f, 1.0f, 0.15f };
</ins><span class="cx"> float a = inData[0];
</span><span class="cx"> int i = 0;
</span><span class="cx"> for (i = 0; i < 4; i++)
</span><span class="lines">@@ -1184,8 +1184,8 @@
</span><span class="cx">
</span><span class="cx"> static void BottomGradientInterpolate(void*, const CGFloat* inData, CGFloat* outData)
</span><span class="cx"> {
</span><del>- static float dark[4] = { 1.0f, 1.0f, 1.0f, 0.0f };
- static float light[4] = { 1.0f, 1.0f, 1.0f, 0.3f };
</del><ins>+ static const float dark[4] = { 1.0f, 1.0f, 1.0f, 0.0f };
+ static const float light[4] = { 1.0f, 1.0f, 1.0f, 0.3f };
</ins><span class="cx"> float a = inData[0];
</span><span class="cx"> int i = 0;
</span><span class="cx"> for (i = 0; i < 4; i++)
</span><span class="lines">@@ -1194,8 +1194,8 @@
</span><span class="cx">
</span><span class="cx"> static void MainGradientInterpolate(void*, const CGFloat* inData, CGFloat* outData)
</span><span class="cx"> {
</span><del>- static float dark[4] = { 0.0f, 0.0f, 0.0f, 0.15f };
- static float light[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
</del><ins>+ static const float dark[4] = { 0.0f, 0.0f, 0.0f, 0.15f };
+ static const float light[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
</ins><span class="cx"> float a = inData[0];
</span><span class="cx"> int i = 0;
</span><span class="cx"> for (i = 0; i < 4; i++)
</span><span class="lines">@@ -1204,8 +1204,8 @@
</span><span class="cx">
</span><span class="cx"> static void TrackGradientInterpolate(void*, const CGFloat* inData, CGFloat* outData)
</span><span class="cx"> {
</span><del>- static float dark[4] = { 0.0f, 0.0f, 0.0f, 0.678f };
- static float light[4] = { 0.0f, 0.0f, 0.0f, 0.13f };
</del><ins>+ static const float dark[4] = { 0.0f, 0.0f, 0.0f, 0.678f };
+ static const float light[4] = { 0.0f, 0.0f, 0.0f, 0.13f };
</ins><span class="cx"> float a = inData[0];
</span><span class="cx"> int i = 0;
</span><span class="cx"> for (i = 0; i < 4; i++)
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebKit2/ChangeLog        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2015-05-19 Chris Dumez <cdumez@apple.com>
+
+ Mark static variables as const when possible
+ https://bugs.webkit.org/show_bug.cgi?id=145161
+
+ Reviewed by Andreas Kling.
+
+ * Platform/IPC/MessageEncoder.cpp:
+ * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
+ (WebKit::networkProcessLatencyQOS):
+ (WebKit::networkProcessThroughputQOS):
+ (WebKit::webProcessLatencyQOS):
+ (WebKit::webProcessThroughputQOS):
+ * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
+ (WebKit::PluginProcessProxy::pluginNeedsExecutableHeap):
+ (WebKit::pluginProcessLatencyQOS):
+ (WebKit::pluginProcessThroughputQOS):
+ * WebProcess/WebPage/WebPage.cpp:
+
</ins><span class="cx"> 2015-05-18 Michael Catanzaro <mcatanzaro@igalia.com>
</span><span class="cx">
</span><span class="cx"> [CMake] Ignore warnings in system headers
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformIPCMessageEncodercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Platform/IPC/MessageEncoder.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Platform/IPC/MessageEncoder.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebKit2/Platform/IPC/MessageEncoder.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx">
</span><span class="cx"> namespace IPC {
</span><span class="cx">
</span><del>-static uint8_t defaultMessageFlags = 0;
</del><ins>+static const uint8_t defaultMessageFlags = 0;
</ins><span class="cx">
</span><span class="cx"> #if HAVE(DTRACE)
</span><span class="cx"> MessageEncoder::MessageEncoder(StringReference messageReceiverName, StringReference messageName, uint64_t destinationID, const uuid_t& UUID)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaWebProcessPoolCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -493,25 +493,25 @@
</span><span class="cx">
</span><span class="cx"> int networkProcessLatencyQOS()
</span><span class="cx"> {
</span><del>- static int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitNetworkProcessLatencyQOS"];
</del><ins>+ static const int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitNetworkProcessLatencyQOS"];
</ins><span class="cx"> return qos;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> int networkProcessThroughputQOS()
</span><span class="cx"> {
</span><del>- static int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitNetworkProcessThroughputQOS"];
</del><ins>+ static const int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitNetworkProcessThroughputQOS"];
</ins><span class="cx"> return qos;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> int webProcessLatencyQOS()
</span><span class="cx"> {
</span><del>- static int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitWebProcessLatencyQOS"];
</del><ins>+ static const int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitWebProcessLatencyQOS"];
</ins><span class="cx"> return qos;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> int webProcessThroughputQOS()
</span><span class="cx"> {
</span><del>- static int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitWebProcessThroughputQOS"];
</del><ins>+ static const int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitWebProcessThroughputQOS"];
</ins><span class="cx"> return qos;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsmacPluginProcessProxyMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/mac/PluginProcessProxyMac.mm (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/mac/PluginProcessProxyMac.mm        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebKit2/UIProcess/Plugins/mac/PluginProcessProxyMac.mm        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">
</span><span class="cx"> bool PluginProcessProxy::pluginNeedsExecutableHeap(const PluginModuleInfo& pluginInfo)
</span><span class="cx"> {
</span><del>- static bool forceNonexecutableHeapForPlugins = [[NSUserDefaults standardUserDefaults] boolForKey:@"ForceNonexecutableHeapForPlugins"];
</del><ins>+ static const bool forceNonexecutableHeapForPlugins = [[NSUserDefaults standardUserDefaults] boolForKey:@"ForceNonexecutableHeapForPlugins"];
</ins><span class="cx"> if (forceNonexecutableHeapForPlugins)
</span><span class="cx"> return false;
</span><span class="cx">
</span><span class="lines">@@ -473,13 +473,13 @@
</span><span class="cx">
</span><span class="cx"> int pluginProcessLatencyQOS()
</span><span class="cx"> {
</span><del>- static int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitPluginProcessLatencyQOS"];
</del><ins>+ static const int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitPluginProcessLatencyQOS"];
</ins><span class="cx"> return qos;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> int pluginProcessThroughputQOS()
</span><span class="cx"> {
</span><del>- static int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitPluginProcessThroughputQOS"];
</del><ins>+ static const int qos = [[NSUserDefaults standardUserDefaults] integerForKey:@"WebKitPluginProcessThroughputQOS"];
</ins><span class="cx"> return qos;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (184554 => 184555)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2015-05-19 07:20:04 UTC (rev 184554)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2015-05-19 07:22:36 UTC (rev 184555)
</span><span class="lines">@@ -4633,14 +4633,14 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC)
</span><del>-static int primarySnapshottedPlugInSearchLimit = 3000;
-static float primarySnapshottedPlugInSearchBucketSize = 1.1;
-static int primarySnapshottedPlugInMinimumWidth = 400;
-static int primarySnapshottedPlugInMinimumHeight = 300;
-static unsigned maxPrimarySnapshottedPlugInDetectionAttempts = 2;
-static int deferredPrimarySnapshottedPlugInDetectionDelay = 3;
-static float overlappingImageBoundsScale = 1.1;
-static float minimumOverlappingImageToPluginDimensionScale = .9;
</del><ins>+static const int primarySnapshottedPlugInSearchLimit = 3000;
+static const float primarySnapshottedPlugInSearchBucketSize = 1.1;
+static const int primarySnapshottedPlugInMinimumWidth = 400;
+static const int primarySnapshottedPlugInMinimumHeight = 300;
+static const unsigned maxPrimarySnapshottedPlugInDetectionAttempts = 2;
+static const int deferredPrimarySnapshottedPlugInDetectionDelay = 3;
+static const float overlappingImageBoundsScale = 1.1;
+static const float minimumOverlappingImageToPluginDimensionScale = .9;
</ins><span class="cx">
</span><span class="cx"> #if ENABLE(PRIMARY_SNAPSHOTTED_PLUGIN_HEURISTIC)
</span><span class="cx"> void WebPage::determinePrimarySnapshottedPlugInTimerFired()
</span></span></pre>
</div>
</div>
</body>
</html>