<!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>[204472] 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/204472">204472</a></dd>
<dt>Author</dt> <dd>krollin@apple.com</dd>
<dt>Date</dt> <dd>2016-08-15 11:59:57 -0700 (Mon, 15 Aug 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Rename LOG_ALWAYS
https://bugs.webkit.org/show_bug.cgi?id=160768

Rename LOG_ALWAYS and friends, given that the first parameter to it is
a boolean expression that determines whether or not logging should be
performed.

Reviewed by Chris Dumez.

Source/WebCore:

No new tests. No new functionality is added. Only some macro names
have been changed.

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::prepareForLoadStart):
(WebCore::FrameLoader::checkLoadCompleteForThisFrame):
* platform/MemoryPressureHandler.cpp:
(WebCore::MemoryPressureHandler::ReliefLogger::logMemoryUsageChange):
* platform/graphics/cocoa/IOSurface.mm:
(WebCore::IOSurface::IOSurface):

Source/WebKit2:

* NetworkProcess/Downloads/Download.cpp:
(WebKit::Download::didReceiveResponse):
(WebKit::Download::didReceiveData):
(WebKit::Download::didFinish):
(WebKit::Download::didFail):
(WebKit::Download::didCancel):
* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::prepareToSuspend):
(WebKit::NetworkProcess::cancelPrepareToSuspend):
(WebKit::NetworkProcess::processDidResume):
* NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::startNetworkLoad):
(WebKit::NetworkResourceLoader::didFinishLoading):
(WebKit::NetworkResourceLoader::didFailLoading):
(WebKit::NetworkResourceLoader::continueWillSendRequest):
* Platform/IPC/Connection.cpp:
(IPC::Connection::waitForSyncReply):
* Shared/ChildProcess.cpp:
(WebKit::didCloseOnConnectionWorkQueue):
* UIProcess/Cocoa/NavigationState.mm:
(WebKit::NavigationState::didChangeIsLoading):
* UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::fetchWebsiteData):
(WebKit::NetworkProcessProxy::deleteWebsiteData):
(WebKit::NetworkProcessProxy::deleteWebsiteDataForOrigins):
(WebKit::NetworkProcessProxy::setIsHoldingLockedFiles):
* UIProcess/ProcessThrottler.cpp:
(WebKit::ProcessThrottler::updateAssertionNow):
(WebKit::ProcessThrottler::updateAssertion):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::updateActivityToken):
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::fetchWebsiteData):
(WebKit::WebProcessProxy::deleteWebsiteData):
(WebKit::WebProcessProxy::deleteWebsiteDataForOrigins):
(WebKit::WebProcessProxy::didSetAssertionState):
(WebKit::WebProcessProxy::setIsHoldingLockedFiles):
* UIProcess/ios/ProcessAssertionIOS.mm:
(-[WKProcessAssertionBackgroundTaskManager _updateBackgroundTask]):
(WebKit::ProcessAssertion::ProcessAssertion):
* WebProcess/Network/WebLoaderStrategy.cpp:
(WebKit::WebLoaderStrategy::scheduleLoad):
* WebProcess/Network/WebResourceLoader.cpp:
(WebKit::WebResourceLoader::willSendRequest):
(WebKit::WebResourceLoader::didReceiveResponse):
(WebKit::WebResourceLoader::didReceiveData):
(WebKit::WebResourceLoader::didFinishResourceLoad):
(WebKit::WebResourceLoader::didFailResourceLoad):
(WebKit::WebResourceLoader::didReceiveResource):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::layerVolatilityTimerFired):
(WebKit::WebPage::markLayersVolatile):
(WebKit::WebPage::cancelMarkLayersVolatile):
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::actualPrepareToSuspend):
(WebKit::WebProcess::processWillSuspendImminently):
(WebKit::WebProcess::prepareToSuspend):
(WebKit::WebProcess::cancelPrepareToSuspend):
(WebKit::WebProcess::markAllLayersVolatile):
(WebKit::WebProcess::processDidResume):

Source/WTF:

* wtf/Assertions.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfAssertionsh">trunk/Source/WTF/wtf/Assertions.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreloaderFrameLoadercpp">trunk/Source/WebCore/loader/FrameLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformMemoryPressureHandlercpp">trunk/Source/WebCore/platform/MemoryPressureHandler.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformMemoryPressureHandlerh">trunk/Source/WebCore/platform/MemoryPressureHandler.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscocoaIOSurfacemm">trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcessDownloadsDownloadcpp">trunk/Source/WebKit2/NetworkProcess/Downloads/Download.cpp</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcessNetworkProcesscpp">trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcessNetworkResourceLoadercpp">trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp</a></li>
<li><a href="#trunkSourceWebKit2PlatformIPCConnectioncpp">trunk/Source/WebKit2/Platform/IPC/Connection.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedChildProcesscpp">trunk/Source/WebKit2/Shared/ChildProcess.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaNavigationStatemm">trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessNetworkNetworkProcessProxycpp">trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessProcessThrottlercpp">trunk/Source/WebKit2/UIProcess/ProcessThrottler.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageProxycpp">trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessProxycpp">trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessiosProcessAssertionIOSmm">trunk/Source/WebKit2/UIProcess/ios/ProcessAssertionIOS.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessNetworkWebLoaderStrategycpp">trunk/Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessNetworkWebResourceLoadercpp">trunk/Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebProcesscpp">trunk/Source/WebKit2/WebProcess/WebProcess.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WTF/ChangeLog        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2016-08-15  Keith Rollin  &lt;krollin@apple.com&gt;
+
+        Rename LOG_ALWAYS
+        https://bugs.webkit.org/show_bug.cgi?id=160768
+
+        Rename LOG_ALWAYS and friends, given that the first parameter to it is
+        a boolean expression that determines whether or not logging should be
+        performed.
+
+        Reviewed by Chris Dumez.
+
+        * wtf/Assertions.h:
+
</ins><span class="cx"> 2016-08-15  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove unused includes of wtf headers
</span></span></pre></div>
<a id="trunkSourceWTFwtfAssertionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Assertions.h (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Assertions.h        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WTF/wtf/Assertions.h        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -84,8 +84,8 @@
</span><span class="cx"> #define LOG_DISABLED ASSERTIONS_DISABLED_DEFAULT
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#ifndef LOG_ALWAYS_DISABLED
-#define LOG_ALWAYS_DISABLED !(USE(OS_LOG))
</del><ins>+#ifndef RELEASE_LOG_DISABLED
+#define RELEASE_LOG_DISABLED !(USE(OS_LOG))
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if COMPILER(GCC_OR_CLANG)
</span><span class="lines">@@ -380,17 +380,19 @@
</span><span class="cx"> #define LOG_VERBOSE(channel, ...) WTFLogVerbose(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, &amp;JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, channel), __VA_ARGS__)
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-/* LOG_ALWAYS */
</del><ins>+/* RELEASE_LOG */
</ins><span class="cx"> 
</span><span class="cx"> #define WTF_LOGGING_PREFIX &quot;#WK: &quot;
</span><del>-#if LOG_ALWAYS_DISABLED
-#define LOG_ALWAYS(isAllowed, format, ...)       ((void)0)
-#define LOG_ALWAYS_ERROR(isAllowed, format, ...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, format, ##__VA_ARGS__)
</del><ins>+#if RELEASE_LOG_DISABLED
+#define RELEASE_LOG(format, ...)       ((void)0)
+#define RELEASE_LOG_ERROR(format, ...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, format, ##__VA_ARGS__)
</ins><span class="cx"> #else
</span><span class="cx"> #define WTF_LOG_DEFAULT OS_LOG_DEFAULT
</span><del>-#define LOG_ALWAYS(isAllowed, format, ...)       do { if (isAllowed) os_log(WTF_LOG_DEFAULT, WTF_LOGGING_PREFIX format, ##__VA_ARGS__); } while (0)
-#define LOG_ALWAYS_ERROR(isAllowed, format, ...) do { if (isAllowed) os_log_error(WTF_LOG_DEFAULT, WTF_LOGGING_PREFIX format, ##__VA_ARGS__); } while (0)
</del><ins>+#define RELEASE_LOG(format, ...)       os_log(WTF_LOG_DEFAULT, WTF_LOGGING_PREFIX format, ##__VA_ARGS__)
+#define RELEASE_LOG_ERROR(format, ...) os_log_error(WTF_LOG_DEFAULT, WTF_LOGGING_PREFIX format, ##__VA_ARGS__)
</ins><span class="cx"> #endif
</span><ins>+#define RELEASE_LOG_IF(isAllowed, format, ...)       do { if (isAllowed) RELEASE_LOG(format, ##__VA_ARGS__); } while (0)
+#define RELEASE_LOG_ERROR_IF(isAllowed, format, ...) do { if (isAllowed) RELEASE_LOG_ERROR(format, ##__VA_ARGS__); } while (0)
</ins><span class="cx"> 
</span><span class="cx"> /* RELEASE_ASSERT */
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebCore/ChangeLog        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2016-08-15  Keith Rollin  &lt;krollin@apple.com&gt;
+
+        Rename LOG_ALWAYS
+        https://bugs.webkit.org/show_bug.cgi?id=160768
+
+        Rename LOG_ALWAYS and friends, given that the first parameter to it is
+        a boolean expression that determines whether or not logging should be
+        performed.
+
+        Reviewed by Chris Dumez.
+
+        No new tests. No new functionality is added. Only some macro names
+        have been changed.
+
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::prepareForLoadStart):
+        (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
+        * platform/MemoryPressureHandler.cpp:
+        (WebCore::MemoryPressureHandler::ReliefLogger::logMemoryUsageChange):
+        * platform/graphics/cocoa/IOSurface.mm:
+        (WebCore::IOSurface::IOSurface):
+
</ins><span class="cx"> 2016-08-15  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Cannot build WebKit for iOS device using Xcode 7.3/iOS 9.3 public SDK due to missing
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderFrameLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/FrameLoader.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/FrameLoader.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebCore/loader/FrameLoader.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -142,7 +142,7 @@
</span><span class="cx"> #include &quot;WKContentObservation.h&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#define FRAMELOADER_LOG_ALWAYS(...) LOG_ALWAYS(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</del><ins>+#define RELEASE_LOG_IF_ALLOWED(...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -1099,7 +1099,7 @@
</span><span class="cx"> 
</span><span class="cx"> void FrameLoader::prepareForLoadStart()
</span><span class="cx"> {
</span><del>-    FRAMELOADER_LOG_ALWAYS(&quot;Starting frame load, frame = %p, main = %d&quot;, &amp;m_frame, m_frame.isMainFrame());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Starting frame load, frame = %p, main = %d&quot;, &amp;m_frame, m_frame.isMainFrame());
</ins><span class="cx"> 
</span><span class="cx">     m_progressTracker-&gt;progressStarted();
</span><span class="cx">     m_client.dispatchDidStartProvisionalLoad();
</span><span class="lines">@@ -2304,11 +2304,11 @@
</span><span class="cx"> 
</span><span class="cx">             AXObjectCache::AXLoadingEvent loadingEvent;
</span><span class="cx">             if (!error.isNull()) {
</span><del>-                FRAMELOADER_LOG_ALWAYS(&quot;Finished frame load with error, frame = %p, main = %d, isTimeout = %d, isCancellation = %d, errorCode = %d&quot;, &amp;m_frame, m_frame.isMainFrame(), error.isTimeout(), error.isCancellation(), error.errorCode());
</del><ins>+                RELEASE_LOG_IF_ALLOWED(&quot;Finished frame load with error, frame = %p, main = %d, isTimeout = %d, isCancellation = %d, errorCode = %d&quot;, &amp;m_frame, m_frame.isMainFrame(), error.isTimeout(), error.isCancellation(), error.errorCode());
</ins><span class="cx">                 m_client.dispatchDidFailLoad(error);
</span><span class="cx">                 loadingEvent = AXObjectCache::AXLoadingFailed;
</span><span class="cx">             } else {
</span><del>-                FRAMELOADER_LOG_ALWAYS(&quot;Finished frame load without error, frame = %p, main = %d&quot;, &amp;m_frame, m_frame.isMainFrame());
</del><ins>+                RELEASE_LOG_IF_ALLOWED(&quot;Finished frame load without error, frame = %p, main = %d&quot;, &amp;m_frame, m_frame.isMainFrame());
</ins><span class="cx"> #if ENABLE(DATA_DETECTION)
</span><span class="cx">                 auto* document = m_frame.document();
</span><span class="cx">                 if (m_frame.settings().dataDetectorTypes() != DataDetectorTypeNone &amp;&amp; document) {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformMemoryPressureHandlercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/MemoryPressureHandler.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/MemoryPressureHandler.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebCore/platform/MemoryPressureHandler.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -218,9 +218,9 @@
</span><span class="cx"> 
</span><span class="cx"> void MemoryPressureHandler::ReliefLogger::logMemoryUsageChange()
</span><span class="cx"> {
</span><del>-#if !LOG_ALWAYS_DISABLED
</del><ins>+#if !RELEASE_LOG_DISABLED
</ins><span class="cx"> #define STRING_SPECIFICATION &quot;%{public}s&quot;
</span><del>-#define MEMORYPRESSURE_LOG(...) LOG_ALWAYS(true, __VA_ARGS__)
</del><ins>+#define MEMORYPRESSURE_LOG(...) RELEASE_LOG(__VA_ARGS__)
</ins><span class="cx"> #else
</span><span class="cx"> #define STRING_SPECIFICATION &quot;%s&quot;
</span><span class="cx"> #define MEMORYPRESSURE_LOG(...) WTFLogAlways(__VA_ARGS__)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformMemoryPressureHandlerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/MemoryPressureHandler.h (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/MemoryPressureHandler.h        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebCore/platform/MemoryPressureHandler.h        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx">     public:
</span><span class="cx">         explicit ReliefLogger(const char *log)
</span><span class="cx">             : m_logString(log)
</span><del>-#if !LOG_ALWAYS_DISABLED
</del><ins>+#if !RELEASE_LOG_DISABLED
</ins><span class="cx">             , m_initialMemory(platformMemoryUsage())
</span><span class="cx"> #else
</span><span class="cx">             , m_initialMemory(s_loggingEnabled ? platformMemoryUsage() : 0)
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx"> 
</span><span class="cx">         ~ReliefLogger()
</span><span class="cx">         {
</span><del>-#if !LOG_ALWAYS_DISABLED
</del><ins>+#if !RELEASE_LOG_DISABLED
</ins><span class="cx">             logMemoryUsageChange();
</span><span class="cx"> #else
</span><span class="cx">             if (s_loggingEnabled)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscocoaIOSurfacemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -211,7 +211,7 @@
</span><span class="cx">     if (success)
</span><span class="cx">         m_totalBytes = IOSurfaceGetAllocSize(m_surface.get());
</span><span class="cx">     else
</span><del>-        LOG_ALWAYS_ERROR(true, &quot;Surface creation failed for size: (%d %d) and format: (%d)&quot;, size.width(), size.height(), format);
</del><ins>+        RELEASE_LOG_ERROR(&quot;Surface creation failed for size: (%d %d) and format: (%d)&quot;, size.width(), size.height(), format);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WebCore::IOSurface::IOSurface(IOSurfaceRef surface, CGColorSpaceRef colorSpace)
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/ChangeLog        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -1,3 +1,75 @@
</span><ins>+2016-08-15  Keith Rollin  &lt;krollin@apple.com&gt;
+
+        Rename LOG_ALWAYS
+        https://bugs.webkit.org/show_bug.cgi?id=160768
+
+        Rename LOG_ALWAYS and friends, given that the first parameter to it is
+        a boolean expression that determines whether or not logging should be
+        performed.
+
+        Reviewed by Chris Dumez.
+
+        * NetworkProcess/Downloads/Download.cpp:
+        (WebKit::Download::didReceiveResponse):
+        (WebKit::Download::didReceiveData):
+        (WebKit::Download::didFinish):
+        (WebKit::Download::didFail):
+        (WebKit::Download::didCancel):
+        * NetworkProcess/NetworkProcess.cpp:
+        (WebKit::NetworkProcess::prepareToSuspend):
+        (WebKit::NetworkProcess::cancelPrepareToSuspend):
+        (WebKit::NetworkProcess::processDidResume):
+        * NetworkProcess/NetworkResourceLoader.cpp:
+        (WebKit::NetworkResourceLoader::startNetworkLoad):
+        (WebKit::NetworkResourceLoader::didFinishLoading):
+        (WebKit::NetworkResourceLoader::didFailLoading):
+        (WebKit::NetworkResourceLoader::continueWillSendRequest):
+        * Platform/IPC/Connection.cpp:
+        (IPC::Connection::waitForSyncReply):
+        * Shared/ChildProcess.cpp:
+        (WebKit::didCloseOnConnectionWorkQueue):
+        * UIProcess/Cocoa/NavigationState.mm:
+        (WebKit::NavigationState::didChangeIsLoading):
+        * UIProcess/Network/NetworkProcessProxy.cpp:
+        (WebKit::NetworkProcessProxy::fetchWebsiteData):
+        (WebKit::NetworkProcessProxy::deleteWebsiteData):
+        (WebKit::NetworkProcessProxy::deleteWebsiteDataForOrigins):
+        (WebKit::NetworkProcessProxy::setIsHoldingLockedFiles):
+        * UIProcess/ProcessThrottler.cpp:
+        (WebKit::ProcessThrottler::updateAssertionNow):
+        (WebKit::ProcessThrottler::updateAssertion):
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::updateActivityToken):
+        * UIProcess/WebProcessProxy.cpp:
+        (WebKit::WebProcessProxy::fetchWebsiteData):
+        (WebKit::WebProcessProxy::deleteWebsiteData):
+        (WebKit::WebProcessProxy::deleteWebsiteDataForOrigins):
+        (WebKit::WebProcessProxy::didSetAssertionState):
+        (WebKit::WebProcessProxy::setIsHoldingLockedFiles):
+        * UIProcess/ios/ProcessAssertionIOS.mm:
+        (-[WKProcessAssertionBackgroundTaskManager _updateBackgroundTask]):
+        (WebKit::ProcessAssertion::ProcessAssertion):
+        * WebProcess/Network/WebLoaderStrategy.cpp:
+        (WebKit::WebLoaderStrategy::scheduleLoad):
+        * WebProcess/Network/WebResourceLoader.cpp:
+        (WebKit::WebResourceLoader::willSendRequest):
+        (WebKit::WebResourceLoader::didReceiveResponse):
+        (WebKit::WebResourceLoader::didReceiveData):
+        (WebKit::WebResourceLoader::didFinishResourceLoad):
+        (WebKit::WebResourceLoader::didFailResourceLoad):
+        (WebKit::WebResourceLoader::didReceiveResource):
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::layerVolatilityTimerFired):
+        (WebKit::WebPage::markLayersVolatile):
+        (WebKit::WebPage::cancelMarkLayersVolatile):
+        * WebProcess/WebProcess.cpp:
+        (WebKit::WebProcess::actualPrepareToSuspend):
+        (WebKit::WebProcess::processWillSuspendImminently):
+        (WebKit::WebProcess::prepareToSuspend):
+        (WebKit::WebProcess::cancelPrepareToSuspend):
+        (WebKit::WebProcess::markAllLayersVolatile):
+        (WebKit::WebProcess::processDidResume):
+
</ins><span class="cx"> 2016-08-15  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Cannot build WebKit for iOS device using Xcode 7.3/iOS 9.3 public SDK due to missing
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcessDownloadsDownloadcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/Downloads/Download.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/Downloads/Download.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/NetworkProcess/Downloads/Download.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -37,8 +37,8 @@
</span><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span><span class="cx"> 
</span><del>-#define DOWNLOAD_LOG_ALWAYS(...) LOG_ALWAYS(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
-#define DOWNLOAD_LOG_ALWAYS_ERROR(...) LOG_ALWAYS_ERROR(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</del><ins>+#define RELEASE_LOG_IF_ALLOWED(...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
+#define RELEASE_LOG_ERROR_IF_ALLOWED(...) RELEASE_LOG_ERROR_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</ins><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx"> 
</span><span class="cx"> void Download::didReceiveResponse(const ResourceResponse&amp; response)
</span><span class="cx"> {
</span><del>-    DOWNLOAD_LOG_ALWAYS(&quot;Download task (%llu) created&quot;, downloadID().downloadID());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Download task (%llu) created&quot;, downloadID().downloadID());
</ins><span class="cx"> 
</span><span class="cx">     send(Messages::DownloadProxy::DidReceiveResponse(response));
</span><span class="cx"> }
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx"> void Download::didReceiveData(uint64_t length)
</span><span class="cx"> {
</span><span class="cx">     if (!m_hasReceivedData) {
</span><del>-        DOWNLOAD_LOG_ALWAYS(&quot;Download task (%llu) started receiving data&quot;, downloadID().downloadID());
</del><ins>+        RELEASE_LOG_IF_ALLOWED(&quot;Download task (%llu) started receiving data&quot;, downloadID().downloadID());
</ins><span class="cx">         m_hasReceivedData = true;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -133,7 +133,7 @@
</span><span class="cx"> 
</span><span class="cx"> void Download::didFinish()
</span><span class="cx"> {
</span><del>-    DOWNLOAD_LOG_ALWAYS(&quot;Download task (%llu) finished&quot;, downloadID().downloadID());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Download task (%llu) finished&quot;, downloadID().downloadID());
</ins><span class="cx"> 
</span><span class="cx">     platformDidFinish();
</span><span class="cx"> 
</span><span class="lines">@@ -149,7 +149,7 @@
</span><span class="cx"> 
</span><span class="cx"> void Download::didFail(const ResourceError&amp; error, const IPC::DataReference&amp; resumeData)
</span><span class="cx"> {
</span><del>-    DOWNLOAD_LOG_ALWAYS(&quot;Download task (%llu) failed, isTimeout = %d, isCancellation = %d, errCode = %d&quot;,
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Download task (%llu) failed, isTimeout = %d, isCancellation = %d, errCode = %d&quot;,
</ins><span class="cx">         downloadID().downloadID(), error.isTimeout(), error.isCancellation(), error.errorCode());
</span><span class="cx"> 
</span><span class="cx">     send(Messages::DownloadProxy::DidFail(error, resumeData));
</span><span class="lines">@@ -163,7 +163,7 @@
</span><span class="cx"> 
</span><span class="cx"> void Download::didCancel(const IPC::DataReference&amp; resumeData)
</span><span class="cx"> {
</span><del>-    DOWNLOAD_LOG_ALWAYS(&quot;Download task (%llu) canceled&quot;, downloadID().downloadID());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Download task (%llu) canceled&quot;, downloadID().downloadID());
</ins><span class="cx"> 
</span><span class="cx">     send(Messages::DownloadProxy::DidCancel(resumeData));
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcessNetworkProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -624,10 +624,10 @@
</span><span class="cx"> 
</span><span class="cx"> void NetworkProcess::prepareToSuspend()
</span><span class="cx"> {
</span><del>-    LOG_ALWAYS(true, &quot;%p - NetworkProcess::prepareToSuspend()&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - NetworkProcess::prepareToSuspend()&quot;, this);
</ins><span class="cx">     lowMemoryHandler(Critical::Yes);
</span><span class="cx"> 
</span><del>-    LOG_ALWAYS(true, &quot;%p - NetworkProcess::prepareToSuspend() Sending ProcessReadyToSuspend IPC message&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - NetworkProcess::prepareToSuspend() Sending ProcessReadyToSuspend IPC message&quot;, this);
</ins><span class="cx">     parentProcessConnection()-&gt;send(Messages::NetworkProcessProxy::ProcessReadyToSuspend(), 0);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -637,12 +637,12 @@
</span><span class="cx">     // we do not because prepareToSuspend() already replied with a NetworkProcessProxy::ProcessReadyToSuspend
</span><span class="cx">     // message. And NetworkProcessProxy expects to receive either a NetworkProcessProxy::ProcessReadyToSuspend-
</span><span class="cx">     // or NetworkProcessProxy::DidCancelProcessSuspension- message, but not both.
</span><del>-    LOG_ALWAYS(true, &quot;%p - NetworkProcess::cancelPrepareToSuspend()&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - NetworkProcess::cancelPrepareToSuspend()&quot;, this);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void NetworkProcess::processDidResume()
</span><span class="cx"> {
</span><del>-    LOG_ALWAYS(true, &quot;%p - NetworkProcess::processDidResume()&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - NetworkProcess::processDidResume()&quot;, this);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void NetworkProcess::prefetchDNS(const String&amp; hostname)
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcessNetworkResourceLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -49,8 +49,8 @@
</span><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span><span class="cx"> 
</span><del>-#define NETWORKRESOURCELOADER_LOG_ALWAYS(...) LOG_ALWAYS(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
-#define NETWORKRESOURCELOADER_LOG_ALWAYS_ERROR(...) LOG_ALWAYS_ERROR(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</del><ins>+#define RELEASE_LOG_IF_ALLOWED(...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
+#define RELEASE_LOG_ERROR_IF_ALLOWED(...) RELEASE_LOG_ERROR_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</ins><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="lines">@@ -206,7 +206,7 @@
</span><span class="cx">         m_bufferedDataForCache = SharedBuffer::create();
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    NETWORKRESOURCELOADER_LOG_ALWAYS(&quot;Starting network resource load: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, m_parameters.webPageID, m_parameters.webFrameID, isMainResource(), isSynchronous());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Starting network resource load: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, m_parameters.webPageID, m_parameters.webFrameID, isMainResource(), isSynchronous());
</ins><span class="cx"> 
</span><span class="cx">     NetworkLoadParameters parameters = m_parameters;
</span><span class="cx">     parameters.defersLoading = m_defersLoading;
</span><span class="lines">@@ -290,7 +290,7 @@
</span><span class="cx"> 
</span><span class="cx"> auto NetworkResourceLoader::didReceiveResponse(ResourceResponse&amp;&amp; receivedResponse) -&gt; ShouldContinueDidReceiveResponse
</span><span class="cx"> {
</span><del>-    NETWORKRESOURCELOADER_LOG_ALWAYS(&quot;Received network resource response: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d, httpStatusCode = %d&quot;, this, m_parameters.webPageID, m_parameters.webFrameID, isMainResource(), isSynchronous(), receivedResponse.httpStatusCode());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Received network resource response: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d, httpStatusCode = %d&quot;, this, m_parameters.webPageID, m_parameters.webFrameID, isMainResource(), isSynchronous(), receivedResponse.httpStatusCode());
</ins><span class="cx"> 
</span><span class="cx">     m_response = WTFMove(receivedResponse);
</span><span class="cx"> 
</span><span class="lines">@@ -322,9 +322,9 @@
</span><span class="cx">         if (isSynchronous())
</span><span class="cx">             m_synchronousLoadData-&gt;response = m_response;
</span><span class="cx">         else {
</span><del>-            NETWORKRESOURCELOADER_LOG_ALWAYS(&quot;Sending didReceiveResponse message to the WebContent process: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</del><ins>+            RELEASE_LOG_IF_ALLOWED(&quot;Sending didReceiveResponse message to the WebContent process: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</ins><span class="cx">             if (!sendAbortingOnFailure(Messages::WebResourceLoader::DidReceiveResponse(m_response, shouldWaitContinueDidReceiveResponse))) {
</span><del>-                NETWORKRESOURCELOADER_LOG_ALWAYS_ERROR(&quot;Failed to send the didReceiveResponse IPC message to the WebContent process: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</del><ins>+                RELEASE_LOG_ERROR_IF_ALLOWED(&quot;Failed to send the didReceiveResponse IPC message to the WebContent process: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</ins><span class="cx">                 return ShouldContinueDidReceiveResponse::No;
</span><span class="cx">             }
</span><span class="cx">         }
</span><span class="lines">@@ -337,11 +337,11 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     if (shouldContinueDidReceiveResponse) {
</span><del>-        NETWORKRESOURCELOADER_LOG_ALWAYS(&quot;Should wait for message from WebContent process before continuing resource load: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</del><ins>+        RELEASE_LOG_IF_ALLOWED(&quot;Should wait for message from WebContent process before continuing resource load: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</ins><span class="cx">         return ShouldContinueDidReceiveResponse::Yes;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    NETWORKRESOURCELOADER_LOG_ALWAYS(&quot;Should not wait for message from WebContent process before continuing resource load: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Should not wait for message from WebContent process before continuing resource load: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</ins><span class="cx">     return ShouldContinueDidReceiveResponse::No;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -374,7 +374,7 @@
</span><span class="cx"> 
</span><span class="cx"> void NetworkResourceLoader::didFinishLoading(double finishTime)
</span><span class="cx"> {
</span><del>-    NETWORKRESOURCELOADER_LOG_ALWAYS(&quot;Finished loading network resource: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Finished loading network resource: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(NETWORK_CACHE)
</span><span class="cx">     if (m_cacheEntryForValidation) {
</span><span class="lines">@@ -407,7 +407,7 @@
</span><span class="cx"> 
</span><span class="cx"> void NetworkResourceLoader::didFailLoading(const ResourceError&amp; error)
</span><span class="cx"> {
</span><del>-    NETWORKRESOURCELOADER_LOG_ALWAYS(&quot;Failed loading network resource: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d, isTimeout = %d, isCancellation = %d, errCode = %d&quot;, this, m_parameters.webPageID, m_parameters.webFrameID, isMainResource(), isSynchronous(), error.isTimeout(), error.isCancellation(), error.errorCode());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Failed loading network resource: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d, isTimeout = %d, isCancellation = %d, errCode = %d&quot;, this, m_parameters.webPageID, m_parameters.webFrameID, isMainResource(), isSynchronous(), error.isTimeout(), error.isCancellation(), error.errorCode());
</ins><span class="cx"> 
</span><span class="cx">     ASSERT(!error.isNull());
</span><span class="cx"> 
</span><span class="lines">@@ -453,7 +453,7 @@
</span><span class="cx"> 
</span><span class="cx"> void NetworkResourceLoader::continueWillSendRequest(ResourceRequest&amp;&amp; newRequest)
</span><span class="cx"> {
</span><del>-    NETWORKRESOURCELOADER_LOG_ALWAYS(&quot;Following redirect of network resource: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;Following redirect of network resource: loader = %p, pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d&quot;, this, static_cast&lt;unsigned long long&gt;(m_parameters.webPageID), static_cast&lt;unsigned long long&gt;(m_parameters.webFrameID), isMainResource(), isSynchronous());
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(NETWORK_CACHE)
</span><span class="cx">     if (m_isWaitingContinueWillSendRequestForCachedRedirect) {
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformIPCConnectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Platform/IPC/Connection.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Platform/IPC/Connection.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/Platform/IPC/Connection.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -34,8 +34,6 @@
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> #include &lt;wtf/threads/BinarySemaphore.h&gt;
</span><span class="cx"> 
</span><del>-#define CONNECTION_LOG_ALWAYS_ERROR(...) LOG_ALWAYS_ERROR(true, __VA_ARGS__)
-
</del><span class="cx"> namespace IPC {
</span><span class="cx"> 
</span><span class="cx"> struct WaitForMessageState {
</span><span class="lines">@@ -585,7 +583,7 @@
</span><span class="cx">         // If that happens, we need to stop waiting, or we'll hang since we won't get
</span><span class="cx">         // any more incoming messages.
</span><span class="cx">         if (!isValid()) {
</span><del>-            CONNECTION_LOG_ALWAYS_ERROR(&quot;Connection::waitForSyncReply: Connection no longer valid, id = %&quot; PRIu64, syncRequestID);
</del><ins>+            RELEASE_LOG_ERROR(&quot;Connection::waitForSyncReply: Connection no longer valid, id = %&quot; PRIu64, syncRequestID);
</ins><span class="cx">             didReceiveSyncReply(syncSendFlags);
</span><span class="cx">             return nullptr;
</span><span class="cx">         }
</span><span class="lines">@@ -596,7 +594,7 @@
</span><span class="cx">         timedOut = !SyncMessageState::singleton().wait(absoluteTime);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    CONNECTION_LOG_ALWAYS_ERROR(&quot;Connection::waitForSyncReply: Timed-out while waiting for reply, id = %&quot; PRIu64, syncRequestID);
</del><ins>+    RELEASE_LOG_ERROR(&quot;Connection::waitForSyncReply: Timed-out while waiting for reply, id = %&quot; PRIu64, syncRequestID);
</ins><span class="cx">     didReceiveSyncReply(syncSendFlags);
</span><span class="cx"> 
</span><span class="cx">     return nullptr;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedChildProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/ChildProcess.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/ChildProcess.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/Shared/ChildProcess.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -29,8 +29,6 @@
</span><span class="cx"> #include &quot;SandboxInitializationParameters.h&quot;
</span><span class="cx"> #include &lt;unistd.h&gt;
</span><span class="cx"> 
</span><del>-#define CHILDPROCESS_LOG_ALWAYS_ERROR(...) LOG_ALWAYS_ERROR(true, __VA_ARGS__)
-
</del><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> ChildProcess::ChildProcess()
</span><span class="lines">@@ -55,7 +53,7 @@
</span><span class="cx">         // We use _exit here since the watchdog callback is called from another thread and we don't want
</span><span class="cx">         // global destructors or atexit handlers to be called from this thread while the main thread is busy
</span><span class="cx">         // doing its thing.
</span><del>-        CHILDPROCESS_LOG_ALWAYS_ERROR(&quot;Exiting process early due to unacknowledged closed-connection&quot;);
</del><ins>+        RELEASE_LOG_ERROR(&quot;Exiting process early due to unacknowledged closed-connection&quot;);
</ins><span class="cx">         _exit(EXIT_FAILURE);
</span><span class="cx">     });
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaNavigationStatemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -823,10 +823,10 @@
</span><span class="cx"> {
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     if (m_webView-&gt;_page-&gt;pageLoadState().isLoading()) {
</span><del>-        LOG_ALWAYS(m_webView-&gt;_page-&gt;isAlwaysOnLoggingAllowed(), &quot;UIProcess is taking a background assertion because a page load started&quot;);
</del><ins>+        RELEASE_LOG_IF(m_webView-&gt;_page-&gt;isAlwaysOnLoggingAllowed(), &quot;UIProcess is taking a background assertion because a page load started&quot;);
</ins><span class="cx">         m_activityToken = m_webView-&gt;_page-&gt;process().throttler().backgroundActivityToken();
</span><span class="cx">     } else {
</span><del>-        LOG_ALWAYS(m_webView-&gt;_page-&gt;isAlwaysOnLoggingAllowed(), &quot;UIProcess is releasing a background assertion because a page load completed&quot;);
</del><ins>+        RELEASE_LOG_IF(m_webView-&gt;_page-&gt;isAlwaysOnLoggingAllowed(), &quot;UIProcess is releasing a background assertion because a page load completed&quot;);
</ins><span class="cx">         m_activityToken = nullptr;
</span><span class="cx">     }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessNetworkNetworkProcessProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -125,11 +125,11 @@
</span><span class="cx"> 
</span><span class="cx">     uint64_t callbackID = generateCallbackID();
</span><span class="cx">     auto token = throttler().backgroundActivityToken();
</span><del>-    LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is taking a background assertion because the Network process is fetching Website data&quot;, this);
</del><ins>+    RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is taking a background assertion because the Network process is fetching Website data&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_pendingFetchWebsiteDataCallbacks.add(callbackID, [this, token, completionHandler, sessionID](WebsiteData websiteData) {
</span><span class="cx">         completionHandler(WTFMove(websiteData));
</span><del>-        LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is releasing a background assertion because the Network process is done fetching Website data&quot;, this);
</del><ins>+        RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is releasing a background assertion because the Network process is done fetching Website data&quot;, this);
</ins><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     send(Messages::NetworkProcess::FetchWebsiteData(sessionID, dataTypes, fetchOptions, callbackID), 0);
</span><span class="lines">@@ -139,11 +139,11 @@
</span><span class="cx"> {
</span><span class="cx">     auto callbackID = generateCallbackID();
</span><span class="cx">     auto token = throttler().backgroundActivityToken();
</span><del>-    LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is taking a background assertion because the Network process is deleting Website data&quot;, this);
</del><ins>+    RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is taking a background assertion because the Network process is deleting Website data&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_pendingDeleteWebsiteDataCallbacks.add(callbackID, [this, token, completionHandler, sessionID] {
</span><span class="cx">         completionHandler();
</span><del>-        LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is releasing a background assertion because the Network process is done deleting Website data&quot;, this);
</del><ins>+        RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is releasing a background assertion because the Network process is done deleting Website data&quot;, this);
</ins><span class="cx">     });
</span><span class="cx">     send(Messages::NetworkProcess::DeleteWebsiteData(sessionID, dataTypes, modifiedSince, callbackID), 0);
</span><span class="cx"> }
</span><span class="lines">@@ -154,11 +154,11 @@
</span><span class="cx"> 
</span><span class="cx">     uint64_t callbackID = generateCallbackID();
</span><span class="cx">     auto token = throttler().backgroundActivityToken();
</span><del>-    LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is taking a background assertion because the Network process is deleting Website data for several origins&quot;, this);
</del><ins>+    RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is taking a background assertion because the Network process is deleting Website data for several origins&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_pendingDeleteWebsiteDataForOriginsCallbacks.add(callbackID, [this, token, completionHandler, sessionID] {
</span><span class="cx">         completionHandler();
</span><del>-        LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is releasing a background assertion because the Network process is done deleting Website data for several origins&quot;, this);
</del><ins>+        RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - NetworkProcessProxy is releasing a background assertion because the Network process is done deleting Website data for several origins&quot;, this);
</ins><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     Vector&lt;SecurityOriginData&gt; originData;
</span><span class="lines">@@ -401,12 +401,12 @@
</span><span class="cx"> void NetworkProcessProxy::setIsHoldingLockedFiles(bool isHoldingLockedFiles)
</span><span class="cx"> {
</span><span class="cx">     if (!isHoldingLockedFiles) {
</span><del>-        LOG_ALWAYS(true, &quot;UIProcess is releasing a background assertion because the Network process is no longer holding locked files&quot;);
</del><ins>+        RELEASE_LOG(&quot;UIProcess is releasing a background assertion because the Network process is no longer holding locked files&quot;);
</ins><span class="cx">         m_tokenForHoldingLockedFiles = nullptr;
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     if (!m_tokenForHoldingLockedFiles) {
</span><del>-        LOG_ALWAYS(true, &quot;UIProcess is taking a background assertion because the Network process is holding locked files&quot;);
</del><ins>+        RELEASE_LOG(&quot;UIProcess is taking a background assertion because the Network process is holding locked files&quot;);
</ins><span class="cx">         m_tokenForHoldingLockedFiles = m_throttler.backgroundActivityToken();
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessProcessThrottlercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/ProcessThrottler.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/ProcessThrottler.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/UIProcess/ProcessThrottler.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx">     m_suspendTimer.stop();
</span><span class="cx">     if (m_assertion) {
</span><span class="cx">         if (m_assertion-&gt;state() != assertionState())
</span><del>-            LOG_ALWAYS(true, &quot;%p - ProcessThrottler::updateAssertionNow() updating process assertion state to %u (foregroundActivities: %lu, backgroundActivities: %lu)&quot;, this, assertionState(), m_foregroundCounter.value(), m_backgroundCounter.value());
</del><ins>+            RELEASE_LOG(&quot;%p - ProcessThrottler::updateAssertionNow() updating process assertion state to %u (foregroundActivities: %lu, backgroundActivities: %lu)&quot;, this, assertionState(), m_foregroundCounter.value(), m_backgroundCounter.value());
</ins><span class="cx">         m_assertion-&gt;setState(assertionState());
</span><span class="cx">         m_process.didSetAssertionState(assertionState());
</span><span class="cx">     }
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">     // in the background for too long.
</span><span class="cx">     if (m_assertion &amp;&amp; m_assertion-&gt;state() != AssertionState::Suspended &amp;&amp; !m_foregroundCounter.value() &amp;&amp; !m_backgroundCounter.value()) {
</span><span class="cx">         ++m_suspendMessageCount;
</span><del>-        LOG_ALWAYS(true, &quot;%p - ProcessThrottler::updateAssertion() sending PrepareToSuspend IPC&quot;, this);
</del><ins>+        RELEASE_LOG(&quot;%p - ProcessThrottler::updateAssertion() sending PrepareToSuspend IPC&quot;, this);
</ins><span class="cx">         m_process.sendPrepareToSuspend();
</span><span class="cx">         m_suspendTimer.startOneShot(processSuspensionTimeout);
</span><span class="cx">         m_assertion-&gt;setState(AssertionState::Background);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -179,7 +179,7 @@
</span><span class="cx"> #define MESSAGE_CHECK(assertion) MESSAGE_CHECK_BASE(assertion, m_process-&gt;connection())
</span><span class="cx"> #define MESSAGE_CHECK_URL(url) MESSAGE_CHECK_BASE(m_process-&gt;checkURLReceivedFromWebProcess(url), m_process-&gt;connection())
</span><span class="cx"> 
</span><del>-#define WEBPAGEPROXY_LOG_ALWAYS(...) LOG_ALWAYS(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</del><ins>+#define RELEASE_LOG_IF_ALLOWED(...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</ins><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span><span class="cx"> 
</span><span class="lines">@@ -1577,14 +1577,14 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     if (!isViewVisible() &amp;&amp; !m_alwaysRunsAtForegroundPriority) {
</span><span class="cx">         if (m_activityToken) {
</span><del>-            WEBPAGEPROXY_LOG_ALWAYS(&quot;%p - UIProcess is releasing a foreground assertion because the view is no longer visible&quot;, this);
</del><ins>+            RELEASE_LOG_IF_ALLOWED(&quot;%p - UIProcess is releasing a foreground assertion because the view is no longer visible&quot;, this);
</ins><span class="cx">             m_activityToken = nullptr;
</span><span class="cx">         }
</span><span class="cx">     } else if (!m_activityToken) {
</span><span class="cx">         if (isViewVisible())
</span><del>-            WEBPAGEPROXY_LOG_ALWAYS(&quot;%p - UIProcess is taking a foreground assertion because the view is visible&quot;, this);
</del><ins>+            RELEASE_LOG_IF_ALLOWED(&quot;%p - UIProcess is taking a foreground assertion because the view is visible&quot;, this);
</ins><span class="cx">         else
</span><del>-            WEBPAGEPROXY_LOG_ALWAYS(&quot;%p - UIProcess is taking a foreground assertion even though the view is not visible because m_alwaysRunsAtForegroundPriority is true&quot;, this);
</del><ins>+            RELEASE_LOG_IF_ALLOWED(&quot;%p - UIProcess is taking a foreground assertion even though the view is not visible because m_alwaysRunsAtForegroundPriority is true&quot;, this);
</ins><span class="cx">         m_activityToken = m_process-&gt;throttler().foregroundActivityToken();
</span><span class="cx">     }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -753,11 +753,11 @@
</span><span class="cx"> 
</span><span class="cx">     uint64_t callbackID = generateCallbackID();
</span><span class="cx">     auto token = throttler().backgroundActivityToken();
</span><del>-    LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is taking a background assertion because the Web process is fetching Website data&quot;, this);
</del><ins>+    RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is taking a background assertion because the Web process is fetching Website data&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_pendingFetchWebsiteDataCallbacks.add(callbackID, [this, token, completionHandler, sessionID](WebsiteData websiteData) {
</span><span class="cx">         completionHandler(WTFMove(websiteData));
</span><del>-        LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is releasing a background assertion because the Web process is done fetching Website data&quot;, this);
</del><ins>+        RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is releasing a background assertion because the Web process is done fetching Website data&quot;, this);
</ins><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     send(Messages::WebProcess::FetchWebsiteData(sessionID, dataTypes, callbackID), 0);
</span><span class="lines">@@ -769,11 +769,11 @@
</span><span class="cx"> 
</span><span class="cx">     uint64_t callbackID = generateCallbackID();
</span><span class="cx">     auto token = throttler().backgroundActivityToken();
</span><del>-    LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is taking a background assertion because the Web process is deleting Website data&quot;, this);
</del><ins>+    RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is taking a background assertion because the Web process is deleting Website data&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_pendingDeleteWebsiteDataCallbacks.add(callbackID, [this, token, completionHandler, sessionID] {
</span><span class="cx">         completionHandler();
</span><del>-        LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is releasing a background assertion because the Web process is done deleting Website data&quot;, this);
</del><ins>+        RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is releasing a background assertion because the Web process is done deleting Website data&quot;, this);
</ins><span class="cx">     });
</span><span class="cx">     send(Messages::WebProcess::DeleteWebsiteData(sessionID, dataTypes, modifiedSince, callbackID), 0);
</span><span class="cx"> }
</span><span class="lines">@@ -784,11 +784,11 @@
</span><span class="cx"> 
</span><span class="cx">     uint64_t callbackID = generateCallbackID();
</span><span class="cx">     auto token = throttler().backgroundActivityToken();
</span><del>-    LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is taking a background assertion because the Web process is deleting Website data for several origins&quot;, this);
</del><ins>+    RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is taking a background assertion because the Web process is deleting Website data for several origins&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     m_pendingDeleteWebsiteDataForOriginsCallbacks.add(callbackID, [this, token, completionHandler, sessionID] {
</span><span class="cx">         completionHandler();
</span><del>-        LOG_ALWAYS(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is releasing a background assertion because the Web process is done deleting Website data for several origins&quot;, this);
</del><ins>+        RELEASE_LOG_IF(sessionID.isAlwaysOnLoggingAllowed(), &quot;%p - WebProcessProxy is releasing a background assertion because the Web process is done deleting Website data for several origins&quot;, this);
</ins><span class="cx">     });
</span><span class="cx"> 
</span><span class="cx">     Vector&lt;SecurityOriginData&gt; originData;
</span><span class="lines">@@ -988,7 +988,7 @@
</span><span class="cx"> 
</span><span class="cx">     switch (state) {
</span><span class="cx">     case AssertionState::Suspended:
</span><del>-        LOG_ALWAYS(true, &quot;%p - WebProcessProxy::didSetAssertionState(Suspended) release all assertions for network process&quot;, this);
</del><ins>+        RELEASE_LOG(&quot;%p - WebProcessProxy::didSetAssertionState(Suspended) release all assertions for network process&quot;, this);
</ins><span class="cx">         m_foregroundTokenForNetworkProcess = nullptr;
</span><span class="cx">         m_backgroundTokenForNetworkProcess = nullptr;
</span><span class="cx">         for (auto&amp; page : m_pageMap.values())
</span><span class="lines">@@ -996,13 +996,13 @@
</span><span class="cx">         break;
</span><span class="cx"> 
</span><span class="cx">     case AssertionState::Background:
</span><del>-        LOG_ALWAYS(true, &quot;%p - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process&quot;, this);
</del><ins>+        RELEASE_LOG(&quot;%p - WebProcessProxy::didSetAssertionState(Background) taking background assertion for network process&quot;, this);
</ins><span class="cx">         m_backgroundTokenForNetworkProcess = processPool().ensureNetworkProcess().throttler().backgroundActivityToken();
</span><span class="cx">         m_foregroundTokenForNetworkProcess = nullptr;
</span><span class="cx">         break;
</span><span class="cx">     
</span><span class="cx">     case AssertionState::Foreground:
</span><del>-        LOG_ALWAYS(true, &quot;%p - WebProcessProxy::didSetAssertionState(Foreground) taking foreground assertion for network process&quot;, this);
</del><ins>+        RELEASE_LOG(&quot;%p - WebProcessProxy::didSetAssertionState(Foreground) taking foreground assertion for network process&quot;, this);
</ins><span class="cx">         m_foregroundTokenForNetworkProcess = processPool().ensureNetworkProcess().throttler().foregroundActivityToken();
</span><span class="cx">         m_backgroundTokenForNetworkProcess = nullptr;
</span><span class="cx">         for (auto&amp; page : m_pageMap.values())
</span><span class="lines">@@ -1019,12 +1019,12 @@
</span><span class="cx"> void WebProcessProxy::setIsHoldingLockedFiles(bool isHoldingLockedFiles)
</span><span class="cx"> {
</span><span class="cx">     if (!isHoldingLockedFiles) {
</span><del>-        LOG_ALWAYS(true, &quot;UIProcess is releasing a background assertion because the WebContent process is no longer holding locked files&quot;);
</del><ins>+        RELEASE_LOG(&quot;UIProcess is releasing a background assertion because the WebContent process is no longer holding locked files&quot;);
</ins><span class="cx">         m_tokenForHoldingLockedFiles = nullptr;
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     if (!m_tokenForHoldingLockedFiles) {
</span><del>-        LOG_ALWAYS(true, &quot;UIProcess is taking a background assertion because the WebContent process is holding locked files&quot;);
</del><ins>+        RELEASE_LOG(&quot;UIProcess is taking a background assertion because the WebContent process is holding locked files&quot;);
</ins><span class="cx">         m_tokenForHoldingLockedFiles = m_throttler.backgroundActivityToken();
</span><span class="cx">     }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessiosProcessAssertionIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/ios/ProcessAssertionIOS.mm (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/ios/ProcessAssertionIOS.mm        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/UIProcess/ios/ProcessAssertionIOS.mm        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -105,7 +105,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (_needsToRunInBackgroundCount &amp;&amp; _backgroundTask == UIBackgroundTaskInvalid) {
</span><span class="cx">         _backgroundTask = [[UIApplication sharedApplication] beginBackgroundTaskWithName:@&quot;com.apple.WebKit.ProcessAssertion&quot; expirationHandler:^{
</span><del>-            LOG_ALWAYS_ERROR(true, &quot;Background task expired while holding WebKit ProcessAssertion (isMainThread? %d).&quot;, RunLoop::isMain());
</del><ins>+            RELEASE_LOG_ERROR(&quot;Background task expired while holding WebKit ProcessAssertion (isMainThread? %d).&quot;, RunLoop::isMain());
</ins><span class="cx">             // The expiration handler gets called on a non-main thread when the underlying assertion could not be taken (rdar://problem/27278419).
</span><span class="cx">             if (RunLoop::isMain())
</span><span class="cx">                 [self _notifyClientsOfImminentSuspension];
</span><span class="lines">@@ -165,7 +165,7 @@
</span><span class="cx">     auto weakThis = createWeakPtr();
</span><span class="cx">     BKSProcessAssertionAcquisitionHandler handler = ^(BOOL acquired) {
</span><span class="cx">         if (!acquired) {
</span><del>-            LOG_ALWAYS_ERROR(true, &quot;Unable to acquire assertion for process %d&quot;, pid);
</del><ins>+            RELEASE_LOG_ERROR(&quot;Unable to acquire assertion for process %d&quot;, pid);
</ins><span class="cx">             ASSERT_NOT_REACHED();
</span><span class="cx">             dispatch_async(dispatch_get_main_queue(), ^{
</span><span class="cx">                 if (weakThis)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessNetworkWebLoaderStrategycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -57,8 +57,8 @@
</span><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span><span class="cx"> 
</span><del>-#define WEBLOADERSTRATEGY_LOG_ALWAYS(...) LOG_ALWAYS(loadParameters.sessionID.isAlwaysOnLoggingAllowed(), __VA_ARGS__)
-#define WEBLOADERSTRATEGY_LOG_ALWAYS_ERROR(...) LOG_ALWAYS_ERROR(loadParameters.sessionID.isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</del><ins>+#define RELEASE_LOG_IF_ALLOWED(...) RELEASE_LOG_IF(loadParameters.sessionID.isAlwaysOnLoggingAllowed(), __VA_ARGS__)
+#define RELEASE_LOG_ERROR_IF_ALLOWED(...) RELEASE_LOG_ERROR_IF(loadParameters.sessionID.isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</ins><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="lines">@@ -203,7 +203,7 @@
</span><span class="cx">     ASSERT((loadParameters.webPageID &amp;&amp; loadParameters.webFrameID) || loadParameters.clientCredentialPolicy == ClientCredentialPolicy::CannotAskClientForCredentials);
</span><span class="cx"> 
</span><span class="cx">     if (!WebProcess::singleton().networkConnection().connection().send(Messages::NetworkConnectionToWebProcess::ScheduleResourceLoad(loadParameters), 0)) {
</span><del>-        WEBLOADERSTRATEGY_LOG_ALWAYS_ERROR(&quot;WebLoaderStrategy::scheduleLoad: Unable to schedule resource with the NetworkProcess with priority = %d, pageID = %llu, frameID = %llu&quot;, static_cast&lt;int&gt;(resourceLoader.request().priority()), static_cast&lt;unsigned long long&gt;(loadParameters.webPageID), static_cast&lt;unsigned long long&gt;(loadParameters.webFrameID));
</del><ins>+        RELEASE_LOG_ERROR_IF_ALLOWED(&quot;WebLoaderStrategy::scheduleLoad: Unable to schedule resource with the NetworkProcess with priority = %d, pageID = %llu, frameID = %llu&quot;, static_cast&lt;int&gt;(resourceLoader.request().priority()), static_cast&lt;unsigned long long&gt;(loadParameters.webPageID), static_cast&lt;unsigned long long&gt;(loadParameters.webFrameID));
</ins><span class="cx">         // We probably failed to schedule this load with the NetworkProcess because it had crashed.
</span><span class="cx">         // This load will never succeed so we will schedule it to fail asynchronously.
</span><span class="cx">         scheduleInternallyFailedLoad(resourceLoader);
</span><span class="lines">@@ -211,7 +211,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     auto webResourceLoader = WebResourceLoader::create(resourceLoader);
</span><del>-    WEBLOADERSTRATEGY_LOG_ALWAYS(&quot;WebLoaderStrategy::scheduleLoad: Resource will be scheduled with the NetworkProcess with priority = %d, pageID = %llu, frameID = %llu, WebResourceLoader = %p&quot;, static_cast&lt;int&gt;(resourceLoader.request().priority()), static_cast&lt;unsigned long long&gt;(loadParameters.webPageID), static_cast&lt;unsigned long long&gt;(loadParameters.webFrameID), webResourceLoader.ptr());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;WebLoaderStrategy::scheduleLoad: Resource will be scheduled with the NetworkProcess with priority = %d, pageID = %llu, frameID = %llu, WebResourceLoader = %p&quot;, static_cast&lt;int&gt;(resourceLoader.request().priority()), static_cast&lt;unsigned long long&gt;(loadParameters.webPageID), static_cast&lt;unsigned long long&gt;(loadParameters.webFrameID), webResourceLoader.ptr());
</ins><span class="cx">     m_webResourceLoaders.set(identifier, WTFMove(webResourceLoader));
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessNetworkWebResourceLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span><span class="cx"> 
</span><del>-#define WEBRESOURCELOADER_LOG_ALWAYS(...) LOG_ALWAYS(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</del><ins>+#define RELEASE_LOG_IF_ALLOWED(...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</ins><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx"> void WebResourceLoader::willSendRequest(ResourceRequest&amp;&amp; proposedRequest, ResourceResponse&amp;&amp; redirectResponse)
</span><span class="cx"> {
</span><span class="cx">     LOG(Network, &quot;(WebProcess) WebResourceLoader::willSendRequest to '%s'&quot;, proposedRequest.url().string().latin1().data());
</span><del>-    WEBRESOURCELOADER_LOG_ALWAYS(&quot;WebResourceLoader::willSendRequest, WebResourceLoader = %p&quot;, this);
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;WebResourceLoader::willSendRequest, WebResourceLoader = %p&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;WebResourceLoader&gt; protectedThis(this);
</span><span class="cx"> 
</span><span class="lines">@@ -101,7 +101,7 @@
</span><span class="cx"> void WebResourceLoader::didReceiveResponse(const ResourceResponse&amp; response, bool needsContinueDidReceiveResponseMessage)
</span><span class="cx"> {
</span><span class="cx">     LOG(Network, &quot;(WebProcess) WebResourceLoader::didReceiveResponse for '%s'. Status %d.&quot;, m_coreLoader-&gt;url().string().latin1().data(), response.httpStatusCode());
</span><del>-    WEBRESOURCELOADER_LOG_ALWAYS(&quot;WebResourceLoader::didReceiveResponse, WebResourceLoader = %p, status = %d.&quot;, this, response.httpStatusCode());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;WebResourceLoader::didReceiveResponse, WebResourceLoader = %p, status = %d.&quot;, this, response.httpStatusCode());
</ins><span class="cx"> 
</span><span class="cx">     Ref&lt;WebResourceLoader&gt; protect(*this);
</span><span class="cx"> 
</span><span class="lines">@@ -133,7 +133,7 @@
</span><span class="cx"> void WebResourceLoader::didReceiveData(const IPC::DataReference&amp; data, int64_t encodedDataLength)
</span><span class="cx"> {
</span><span class="cx">     LOG(Network, &quot;(WebProcess) WebResourceLoader::didReceiveData of size %lu for '%s'&quot;, data.size(), m_coreLoader-&gt;url().string().latin1().data());
</span><del>-    WEBRESOURCELOADER_LOG_ALWAYS(&quot;WebResourceLoader::didReceiveData, WebResourceLoader = %p, size = %lu&quot;, this, data.size());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;WebResourceLoader::didReceiveData, WebResourceLoader = %p, size = %lu&quot;, this, data.size());
</ins><span class="cx"> 
</span><span class="cx"> #if USE(QUICK_LOOK)
</span><span class="cx">     if (QuickLookHandle* quickLookHandle = m_coreLoader-&gt;documentLoader()-&gt;quickLookHandle()) {
</span><span class="lines">@@ -147,7 +147,7 @@
</span><span class="cx"> void WebResourceLoader::didFinishResourceLoad(double finishTime)
</span><span class="cx"> {
</span><span class="cx">     LOG(Network, &quot;(WebProcess) WebResourceLoader::didFinishResourceLoad for '%s'&quot;, m_coreLoader-&gt;url().string().latin1().data());
</span><del>-    WEBRESOURCELOADER_LOG_ALWAYS(&quot;WebResourceLoader::didFinishResourceLoad, WebResourceLoader = %p&quot;, this);
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;WebResourceLoader::didFinishResourceLoad, WebResourceLoader = %p&quot;, this);
</ins><span class="cx"> 
</span><span class="cx"> #if USE(QUICK_LOOK)
</span><span class="cx">     if (QuickLookHandle* quickLookHandle = m_coreLoader-&gt;documentLoader()-&gt;quickLookHandle()) {
</span><span class="lines">@@ -161,7 +161,7 @@
</span><span class="cx"> void WebResourceLoader::didFailResourceLoad(const ResourceError&amp; error)
</span><span class="cx"> {
</span><span class="cx">     LOG(Network, &quot;(WebProcess) WebResourceLoader::didFailResourceLoad for '%s'&quot;, m_coreLoader-&gt;url().string().latin1().data());
</span><del>-    WEBRESOURCELOADER_LOG_ALWAYS(&quot;WebResourceLoader::didFailResourceLoad, WebResourceLoader = %p&quot;, this);
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;WebResourceLoader::didFailResourceLoad, WebResourceLoader = %p&quot;, this);
</ins><span class="cx"> 
</span><span class="cx"> #if USE(QUICK_LOOK)
</span><span class="cx">     if (QuickLookHandle* quickLookHandle = m_coreLoader-&gt;documentLoader()-&gt;quickLookHandle())
</span><span class="lines">@@ -176,7 +176,7 @@
</span><span class="cx"> void WebResourceLoader::didReceiveResource(const ShareableResource::Handle&amp; handle, double finishTime)
</span><span class="cx"> {
</span><span class="cx">     LOG(Network, &quot;(WebProcess) WebResourceLoader::didReceiveResource for '%s'&quot;, m_coreLoader-&gt;url().string().latin1().data());
</span><del>-    WEBRESOURCELOADER_LOG_ALWAYS(&quot;WebResourceLoader::didReceiveResource, WebResourceLoader = %p&quot;, this);
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;WebResourceLoader::didReceiveResource, WebResourceLoader = %p&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;SharedBuffer&gt; buffer = handle.tryWrapInSharedBuffer();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -256,8 +256,8 @@
</span><span class="cx"> static const std::chrono::milliseconds initialLayerVolatilityTimerInterval { 20 };
</span><span class="cx"> static const std::chrono::seconds maximumLayerVolatilityTimerInterval { 2 };
</span><span class="cx"> 
</span><del>-#define WEBPAGE_LOG_ALWAYS(...) LOG_ALWAYS(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
-#define WEBPAGE_LOG_ALWAYS_ERROR(...) LOG_ALWAYS_ERROR(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</del><ins>+#define RELEASE_LOG_IF_ALLOWED(...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
+#define RELEASE_LOG_ERROR_IF_ALLOWED(...) RELEASE_LOG_ERROR_IF(isAlwaysOnLoggingAllowed(), __VA_ARGS__)
</ins><span class="cx"> 
</span><span class="cx"> class SendStopResponsivenessTimer {
</span><span class="cx"> public:
</span><span class="lines">@@ -2065,12 +2065,12 @@
</span><span class="cx">     bool didSucceed = markLayersVolatileImmediatelyIfPossible();
</span><span class="cx">     if (didSucceed || newInterval &gt; maximumLayerVolatilityTimerInterval) {
</span><span class="cx">         m_layerVolatilityTimer.stop();
</span><del>-        WEBPAGE_LOG_ALWAYS(&quot;%p - WebPage - Attempted to mark surfaces as volatile, success? %d&quot;, this, didSucceed);
</del><ins>+        RELEASE_LOG_IF_ALLOWED(&quot;%p - WebPage - Attempted to mark surfaces as volatile, success? %d&quot;, this, didSucceed);
</ins><span class="cx">         callVolatilityCompletionHandlers();
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    WEBPAGE_LOG_ALWAYS_ERROR(&quot;%p - WebPage - Failed to mark all layers as volatile, will retry in %lld ms&quot;, this, static_cast&lt;long long&gt;(newInterval.count()));
</del><ins>+    RELEASE_LOG_ERROR_IF_ALLOWED(&quot;%p - WebPage - Failed to mark all layers as volatile, will retry in %lld ms&quot;, this, static_cast&lt;long long&gt;(newInterval.count()));
</ins><span class="cx">     m_layerVolatilityTimer.startRepeating(newInterval);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2081,7 +2081,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebPage::markLayersVolatile(std::function&lt;void ()&gt; completionHandler)
</span><span class="cx"> {
</span><del>-    WEBPAGE_LOG_ALWAYS(&quot;%p - WebPage::markLayersVolatile()&quot;, this);
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;%p - WebPage::markLayersVolatile()&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     if (m_layerVolatilityTimer.isActive())
</span><span class="cx">         m_layerVolatilityTimer.stop();
</span><span class="lines">@@ -2092,22 +2092,22 @@
</span><span class="cx">     bool didSucceed = markLayersVolatileImmediatelyIfPossible();
</span><span class="cx">     if (didSucceed || m_isSuspendedUnderLock) {
</span><span class="cx">         if (didSucceed)
</span><del>-            WEBPAGE_LOG_ALWAYS(&quot;%p - WebPage - Successfully marked layers as volatile&quot;, this);
</del><ins>+            RELEASE_LOG_IF_ALLOWED(&quot;%p - WebPage - Successfully marked layers as volatile&quot;, this);
</ins><span class="cx">         else {
</span><span class="cx">             // If we get suspended when locking the screen, it is expected that some IOSurfaces cannot be marked as purgeable so we do not keep retrying.
</span><del>-            WEBPAGE_LOG_ALWAYS(&quot;%p - WebPage - Did what we could to mark IOSurfaces as purgeable after locking the screen&quot;, this);
</del><ins>+            RELEASE_LOG_IF_ALLOWED(&quot;%p - WebPage - Did what we could to mark IOSurfaces as purgeable after locking the screen&quot;, this);
</ins><span class="cx">         }
</span><span class="cx">         callVolatilityCompletionHandlers();
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    WEBPAGE_LOG_ALWAYS(&quot;%p - Failed to mark all layers as volatile, will retry in %lld ms&quot;, this, initialLayerVolatilityTimerInterval.count());
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;%p - Failed to mark all layers as volatile, will retry in %lld ms&quot;, this, initialLayerVolatilityTimerInterval.count());
</ins><span class="cx">     m_layerVolatilityTimer.startRepeating(initialLayerVolatilityTimerInterval);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebPage::cancelMarkLayersVolatile()
</span><span class="cx"> {
</span><del>-    WEBPAGE_LOG_ALWAYS(&quot;%p - WebPage::cancelMarkLayersVolatile()&quot;, this);
</del><ins>+    RELEASE_LOG_IF_ALLOWED(&quot;%p - WebPage::cancelMarkLayersVolatile()&quot;, this);
</ins><span class="cx">     m_layerVolatilityTimer.stop();
</span><span class="cx">     m_markLayersAsVolatileCompletionHandlers.clear();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebProcess.cpp (204471 => 204472)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebProcess.cpp        2016-08-15 18:57:21 UTC (rev 204471)
+++ trunk/Source/WebKit2/WebProcess/WebProcess.cpp        2016-08-15 18:59:57 UTC (rev 204472)
</span><span class="lines">@@ -144,8 +144,6 @@
</span><span class="cx"> // This should be greater than tileRevalidationTimeout in TileController.
</span><span class="cx"> static const double nonVisibleProcessCleanupDelay = 10;
</span><span class="cx"> 
</span><del>-#define WEBPROCESS_LOG_ALWAYS(...) LOG_ALWAYS(true, __VA_ARGS__)
-
</del><span class="cx"> namespace WebKit {
</span><span class="cx"> 
</span><span class="cx"> WebProcess&amp; WebProcess::singleton()
</span><span class="lines">@@ -1274,10 +1272,10 @@
</span><span class="cx">     setAllLayerTreeStatesFrozen(true);
</span><span class="cx"> 
</span><span class="cx">     markAllLayersVolatile([this, shouldAcknowledgeWhenReadyToSuspend] {
</span><del>-        WEBPROCESS_LOG_ALWAYS(&quot;%p - WebProcess::markAllLayersVolatile() Successfuly marked all layers as volatile&quot;, this);
</del><ins>+        RELEASE_LOG(&quot;%p - WebProcess::markAllLayersVolatile() Successfuly marked all layers as volatile&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">         if (shouldAcknowledgeWhenReadyToSuspend == ShouldAcknowledgeWhenReadyToSuspend::Yes) {
</span><del>-            WEBPROCESS_LOG_ALWAYS(&quot;%p - WebProcess::actualPrepareToSuspend() Sending ProcessReadyToSuspend IPC message&quot;, this);
</del><ins>+            RELEASE_LOG(&quot;%p - WebProcess::actualPrepareToSuspend() Sending ProcessReadyToSuspend IPC message&quot;, this);
</ins><span class="cx">             parentProcessConnection()-&gt;send(Messages::WebProcessProxy::ProcessReadyToSuspend(), 0);
</span><span class="cx">         }
</span><span class="cx">     });
</span><span class="lines">@@ -1293,7 +1291,7 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    WEBPROCESS_LOG_ALWAYS(&quot;%p - WebProcess::processWillSuspendImminently()&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - WebProcess::processWillSuspendImminently()&quot;, this);
</ins><span class="cx">     DatabaseTracker::tracker().closeAllDatabases(CurrentQueryBehavior::Interrupt);
</span><span class="cx">     actualPrepareToSuspend(ShouldAcknowledgeWhenReadyToSuspend::No);
</span><span class="cx">     handled = true;
</span><span class="lines">@@ -1301,13 +1299,13 @@
</span><span class="cx"> 
</span><span class="cx"> void WebProcess::prepareToSuspend()
</span><span class="cx"> {
</span><del>-    WEBPROCESS_LOG_ALWAYS(&quot;%p - WebProcess::prepareToSuspend()&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - WebProcess::prepareToSuspend()&quot;, this);
</ins><span class="cx">     actualPrepareToSuspend(ShouldAcknowledgeWhenReadyToSuspend::Yes);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebProcess::cancelPrepareToSuspend()
</span><span class="cx"> {
</span><del>-    WEBPROCESS_LOG_ALWAYS(&quot;%p - WebProcess::cancelPrepareToSuspend()&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - WebProcess::cancelPrepareToSuspend()&quot;, this);
</ins><span class="cx">     setAllLayerTreeStatesFrozen(false);
</span><span class="cx"> 
</span><span class="cx">     // If we've already finished cleaning up and sent ProcessReadyToSuspend, we
</span><span class="lines">@@ -1317,13 +1315,13 @@
</span><span class="cx"> 
</span><span class="cx">     cancelMarkAllLayersVolatile();
</span><span class="cx"> 
</span><del>-    WEBPROCESS_LOG_ALWAYS(&quot;%p - WebProcess::cancelPrepareToSuspend() Sending DidCancelProcessSuspension IPC message&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - WebProcess::cancelPrepareToSuspend() Sending DidCancelProcessSuspension IPC message&quot;, this);
</ins><span class="cx">     parentProcessConnection()-&gt;send(Messages::WebProcessProxy::DidCancelProcessSuspension(), 0);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebProcess::markAllLayersVolatile(std::function&lt;void()&gt; completionHandler)
</span><span class="cx"> {
</span><del>-    WEBPROCESS_LOG_ALWAYS(&quot;%p - WebProcess::markAllLayersVolatile()&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - WebProcess::markAllLayersVolatile()&quot;, this);
</ins><span class="cx">     m_pagesMarkingLayersAsVolatile = m_pageMap.size();
</span><span class="cx">     if (!m_pagesMarkingLayersAsVolatile) {
</span><span class="cx">         completionHandler();
</span><span class="lines">@@ -1356,7 +1354,7 @@
</span><span class="cx">     
</span><span class="cx"> void WebProcess::processDidResume()
</span><span class="cx"> {
</span><del>-    WEBPROCESS_LOG_ALWAYS(&quot;%p - WebProcess::processDidResume()&quot;, this);
</del><ins>+    RELEASE_LOG(&quot;%p - WebProcess::processDidResume()&quot;, this);
</ins><span class="cx"> 
</span><span class="cx">     cancelMarkAllLayersVolatile();
</span><span class="cx">     setAllLayerTreeStatesFrozen(false);
</span></span></pre>
</div>
</div>

</body>
</html>