<!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>[197628] 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/197628">197628</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-03-05 19:28:54 -0800 (Sat, 05 Mar 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
https://bugs.webkit.org/show_bug.cgi?id=155035

Reviewed by Darin Adler.

Source/WebCore:

Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS into
one file. The following changes were made:
- The checks now all rely on applicationBundleIdentifier(), which has the
  benefit of working in WK1 and WK2 UI/WebContent/Networking processes.
- Use namespaces to distinguish Mac and iOS applications instead of relying
  on the method name. So, applicationIsIBooksForIOS() becomes
  IOSApplication::isIBooks().
- Use NSBundle API on both iOS and Mac instead of using the CF API on Mac
  and the NS API on iOS.

* CMakeLists.txt:
* WebCore.xcodeproj/project.pbxproj:
* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper _accessibilityWebDocumentView]):
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::commonVM):
* bindings/js/JSLocationCustom.cpp:
(WebCore::JSLocation::putDelegate):
* html/HTMLMediaElement.cpp:
* html/HTMLObjectElement.cpp:
(WebCore::shouldNotPerformURLAdjustment):
* html/MediaElementSession.cpp:
* inspector/InspectorTimelineAgent.cpp:
(WebCore::currentRunLoop):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::willLoadMediaElementURL):
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::create):
(WebCore::SubresourceLoader::startLoading):
* loader/cache/CachedScript.cpp:
(WebCore::CachedScript::shouldIgnoreHTTPStatusCodeErrors):
* platform/RuntimeApplicationChecks.cpp: Removed.
* platform/RuntimeApplicationChecks.h:
* platform/RuntimeApplicationChecks.mm: Added.
(WebCore::applicationBundleIdentifier):
(WebCore::applicationBundleIsEqualTo):
(WebCore::MacApplication::isSafari):
(WebCore::MacApplication::isAppleMail):
(WebCore::MacApplication::isIBooks):
(WebCore::MacApplication::isITunes):
(WebCore::MacApplication::isMicrosoftMessenger):
(WebCore::MacApplication::isAdobeInstaller):
(WebCore::MacApplication::isAOLInstantMessenger):
(WebCore::MacApplication::isMicrosoftMyDay):
(WebCore::MacApplication::isMicrosoftOutlook):
(WebCore::MacApplication::isQuickenEssentials):
(WebCore::MacApplication::isAperture):
(WebCore::MacApplication::isVersions):
(WebCore::MacApplication::isHRBlock):
(WebCore::MacApplication::isSolidStateNetworksDownloader):
(WebCore::MacApplication::isHipChat):
(WebCore::IOSApplication::isMobileMail):
(WebCore::IOSApplication::isMobileSafari):
(WebCore::IOSApplication::isDumpRenderTree):
(WebCore::IOSApplication::isMobileStore):
(WebCore::IOSApplication::isWebApp):
(WebCore::IOSApplication::isOkCupid):
(WebCore::IOSApplication::isFacebook):
(WebCore::IOSApplication::isDaijisenDictionary):
(WebCore::IOSApplication::isNASAHD):
(WebCore::IOSApplication::isTheEconomistOnIphone):
(WebCore::IOSApplication::isWebProcess):
(WebCore::IOSApplication::isIBooks):
(WebCore::setApplicationBundleIdentifier):
* platform/RuntimeApplicationChecksIOS.h: Removed.
* platform/RuntimeApplicationChecksIOS.mm: Removed.
* platform/audio/ios/AudioDestinationIOS.cpp:
* platform/cf/URLCF.cpp:
* platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp:
(WebCore::currentRunLoop):
* platform/ios/PasteboardIOS.mm:
* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
* platform/ios/wak/WebCoreThread.mm:
(WebThreadEnable):
* platform/mac/WidgetMac.mm:
(WebCore::Widget::paint):
* platform/network/ios/QuickLook.mm:
* platform/network/mac/ResourceHandleMac.mm:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack):

Source/WebKit:

Update runtime application checks.

* WebCoreSupport/WebResourceLoadScheduler.cpp:
(WebResourceLoadScheduler::servePendingRequests):

Source/WebKit/ios:

Update runtime application checks.

* WebCoreSupport/WebChromeClientIOS.mm:

Source/WebKit/mac:

Update runtime application checks.

* Plugins/WebPluginController.mm:
(initializeAudioSession):
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebView/WebFrame.mm:
(needsMicrosoftMessengerDOMDocumentWorkaround):
* WebView/WebImmediateActionController.mm:
(-[WebImmediateActionController _updateImmediateActionItem]):
* WebView/WebView.mm:
(WebKitInitializeApplicationCachePathIfNecessary):
(shouldEnableLoadDeferring):
(shouldRestrictWindowFocus):
(needsOutlookQuirksScript):
(shouldTransformsAffectOverflow):
(shouldDispatchJavaScriptWindowOnErrorEvents):
(shouldUseLegacyBackgroundSizeShorthandBehavior):
(-[WebView _commonInitializationWithFrameName:groupName:]):
(+[WebView enableWebThread]):
(+[WebView registerForMemoryNotifications]):
(-[WebView _needsKeyboardEventDisambiguationQuirks]):
(needsSelfRetainWhileLoadingQuirk):
(-[WebView _needsPreHTML5ParserQuirks]):

Source/WebKit2:

Update runtime application checks.

* UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:
(API::WebsiteDataStore::defaultApplicationCacheDirectory):
* UIProcess/Cocoa/VersionChecks.mm:
(WebKit::linkedOnOrAfter):
* UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::platformInitializeWebProcess):
(WebKit::WebProcessPool::legacyPlatformDefaultApplicationCacheDirectory):
* UIProcess/ios/WKContentViewInteraction.mm:
* UIProcess/mac/WebPageProxyMac.mm:
(WebKit::expectsLegacyImplicitRubberBandControl):
(WebKit::WebPageProxy::appleMailPaginationQuirkEnabled):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperIOSmm">trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMWindowBasecpp">trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSLocationCustomcpp">trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLObjectElementcpp">trunk/Source/WebCore/html/HTMLObjectElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlMediaElementSessioncpp">trunk/Source/WebCore/html/MediaElementSession.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorTimelineAgentcpp">trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderFrameLoadercpp">trunk/Source/WebCore/loader/FrameLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderSubresourceLoadercpp">trunk/Source/WebCore/loader/SubresourceLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedScriptcpp">trunk/Source/WebCore/loader/cache/CachedScript.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksh">trunk/Source/WebCore/platform/RuntimeApplicationChecks.h</a></li>
<li><a href="#trunkSourceWebCoreplatformaudioiosAudioDestinationIOScpp">trunk/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformcfURLCFcpp">trunk/Source/WebCore/platform/cf/URLCF.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscacocoaLayerFlushSchedulerMaccpp">trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformiosPasteboardIOSmm">trunk/Source/WebCore/platform/ios/PasteboardIOS.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformiosWebVideoFullscreenInterfaceAVKitmm">trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformioswakWebCoreThreadmm">trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmacWidgetMacmm">trunk/Source/WebCore/platform/mac/WidgetMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkiosQuickLookmm">trunk/Source/WebCore/platform/network/ios/QuickLook.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkmacResourceHandleMacmm">trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerBackingcpp">trunk/Source/WebCore/rendering/RenderLayerBacking.cpp</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebCoreSupportWebResourceLoadSchedulercpp">trunk/Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp</a></li>
<li><a href="#trunkSourceWebKitiosChangeLog">trunk/Source/WebKit/ios/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitiosWebCoreSupportWebChromeClientIOSmm">trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacPluginsWebPluginControllermm">trunk/Source/WebKit/mac/Plugins/WebPluginController.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebFrameLoaderClientmm">trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebFramemm">trunk/Source/WebKit/mac/WebView/WebFrame.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebImmediateActionControllermm">trunk/Source/WebKit/mac/WebView/WebImmediateActionController.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebViewmm">trunk/Source/WebKit/mac/WebView/WebView.mm</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaAPIWebsiteDataStoreCocoamm">trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaVersionChecksmm">trunk/Source/WebKit2/UIProcess/Cocoa/VersionChecks.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaWebProcessPoolCocoamm">trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessiosWKContentViewInteractionmm">trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWebPageProxyMacmm">trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksmm">trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationCheckscpp">trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksIOSh">trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.h</a></li>
<li><a href="#trunkSourceWebCoreplatformRuntimeApplicationChecksIOSmm">trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/CMakeLists.txt        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -2120,7 +2120,6 @@
</span><span class="cx">     platform/PlatformSpeechSynthesizer.cpp
</span><span class="cx">     platform/PlatformStrategies.cpp
</span><span class="cx">     platform/RemoteCommandListener.cpp
</span><del>-    platform/RuntimeApplicationChecks.cpp
</del><span class="cx">     platform/SchemeRegistry.cpp
</span><span class="cx">     platform/ScrollAnimator.cpp
</span><span class="cx">     platform/ScrollView.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,91 @@
</span><ins>+2016-03-05  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+        https://bugs.webkit.org/show_bug.cgi?id=155035
+
+        Reviewed by Darin Adler.
+
+        Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS into
+        one file. The following changes were made:
+        - The checks now all rely on applicationBundleIdentifier(), which has the
+          benefit of working in WK1 and WK2 UI/WebContent/Networking processes.
+        - Use namespaces to distinguish Mac and iOS applications instead of relying
+          on the method name. So, applicationIsIBooksForIOS() becomes
+          IOSApplication::isIBooks().
+        - Use NSBundle API on both iOS and Mac instead of using the CF API on Mac
+          and the NS API on iOS.
+
+        * CMakeLists.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+        * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
+        (-[WebAccessibilityObjectWrapper _accessibilityWebDocumentView]):
+        * bindings/js/JSDOMWindowBase.cpp:
+        (WebCore::JSDOMWindowBase::commonVM):
+        * bindings/js/JSLocationCustom.cpp:
+        (WebCore::JSLocation::putDelegate):
+        * html/HTMLMediaElement.cpp:
+        * html/HTMLObjectElement.cpp:
+        (WebCore::shouldNotPerformURLAdjustment):
+        * html/MediaElementSession.cpp:
+        * inspector/InspectorTimelineAgent.cpp:
+        (WebCore::currentRunLoop):
+        * loader/FrameLoader.cpp:
+        (WebCore::FrameLoader::willLoadMediaElementURL):
+        * loader/SubresourceLoader.cpp:
+        (WebCore::SubresourceLoader::create):
+        (WebCore::SubresourceLoader::startLoading):
+        * loader/cache/CachedScript.cpp:
+        (WebCore::CachedScript::shouldIgnoreHTTPStatusCodeErrors):
+        * platform/RuntimeApplicationChecks.cpp: Removed.
+        * platform/RuntimeApplicationChecks.h:
+        * platform/RuntimeApplicationChecks.mm: Added.
+        (WebCore::applicationBundleIdentifier):
+        (WebCore::applicationBundleIsEqualTo):
+        (WebCore::MacApplication::isSafari):
+        (WebCore::MacApplication::isAppleMail):
+        (WebCore::MacApplication::isIBooks):
+        (WebCore::MacApplication::isITunes):
+        (WebCore::MacApplication::isMicrosoftMessenger):
+        (WebCore::MacApplication::isAdobeInstaller):
+        (WebCore::MacApplication::isAOLInstantMessenger):
+        (WebCore::MacApplication::isMicrosoftMyDay):
+        (WebCore::MacApplication::isMicrosoftOutlook):
+        (WebCore::MacApplication::isQuickenEssentials):
+        (WebCore::MacApplication::isAperture):
+        (WebCore::MacApplication::isVersions):
+        (WebCore::MacApplication::isHRBlock):
+        (WebCore::MacApplication::isSolidStateNetworksDownloader):
+        (WebCore::MacApplication::isHipChat):
+        (WebCore::IOSApplication::isMobileMail):
+        (WebCore::IOSApplication::isMobileSafari):
+        (WebCore::IOSApplication::isDumpRenderTree):
+        (WebCore::IOSApplication::isMobileStore):
+        (WebCore::IOSApplication::isWebApp):
+        (WebCore::IOSApplication::isOkCupid):
+        (WebCore::IOSApplication::isFacebook):
+        (WebCore::IOSApplication::isDaijisenDictionary):
+        (WebCore::IOSApplication::isNASAHD):
+        (WebCore::IOSApplication::isTheEconomistOnIphone):
+        (WebCore::IOSApplication::isWebProcess):
+        (WebCore::IOSApplication::isIBooks):
+        (WebCore::setApplicationBundleIdentifier):
+        * platform/RuntimeApplicationChecksIOS.h: Removed.
+        * platform/RuntimeApplicationChecksIOS.mm: Removed.
+        * platform/audio/ios/AudioDestinationIOS.cpp:
+        * platform/cf/URLCF.cpp:
+        * platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp:
+        (WebCore::currentRunLoop):
+        * platform/ios/PasteboardIOS.mm:
+        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
+        * platform/ios/wak/WebCoreThread.mm:
+        (WebThreadEnable):
+        * platform/mac/WidgetMac.mm:
+        (WebCore::Widget::paint):
+        * platform/network/ios/QuickLook.mm:
+        * platform/network/mac/ResourceHandleMac.mm:
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::RenderLayerBacking::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack):
+
</ins><span class="cx"> 2016-03-05  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Make table collapsed borders subpixel aware.
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1093,7 +1093,6 @@
</span><span class="cx">                 2934940A16C02C0700901318 /* PlatformSpeechSynthesisVoice.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2527CC9316BF92EC009DDAC0 /* PlatformSpeechSynthesisVoice.cpp */; };
</span><span class="cx">                 2934940B16C02C0A00901318 /* PlatformSpeechSynthesisUtterance.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2527CC9516BF95DD009DDAC0 /* PlatformSpeechSynthesisUtterance.cpp */; };
</span><span class="cx">                 293EAE1F1356B2FE0067ACF9 /* RuntimeApplicationChecks.h in Headers */ = {isa = PBXBuildFile; fileRef = 293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                293EAE211356B32E0067ACF9 /* RuntimeApplicationChecks.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 293EAE201356B32E0067ACF9 /* RuntimeApplicationChecks.cpp */; };
</del><span class="cx">                 29489FC712C00F0300D83F0F /* AccessibilityScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = 29489FC512C00F0300D83F0F /* AccessibilityScrollView.h */; };
</span><span class="cx">                 29498683195341940072D2BD /* TextUndoInsertionMarkupMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29498681195341940072D2BD /* TextUndoInsertionMarkupMac.mm */; };
</span><span class="cx">                 297BE3D516C03C08003316BD /* PlatformSpeechSynthesisUtterance.h in Headers */ = {isa = PBXBuildFile; fileRef = 2527CC9116BF8BA1009DDAC0 /* PlatformSpeechSynthesisUtterance.h */; };
</span><span class="lines">@@ -1705,8 +1704,6 @@
</span><span class="cx">                 44A20DB90F84166C00B3E1FE /* WebCoreURLResponseIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 44A20DB80F84166C00B3E1FE /* WebCoreURLResponseIOS.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 44A28AAC12DFB8AC00AE923B /* MathMLElementFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 44A28AAB12DFB8AC00AE923B /* MathMLElementFactory.h */; };
</span><span class="cx">                 44A28AAF12DFB8BF00AE923B /* MathMLNames.h in Headers */ = {isa = PBXBuildFile; fileRef = 44A28AAE12DFB8BF00AE923B /* MathMLNames.h */; };
</span><del>-                44C363F00FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 44C363EE0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h */; settings = {ATTRIBUTES = (Private, ); }; };
-                44C363F10FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 44C363EF0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm */; };
</del><span class="cx">                 44C991820F3D1E0D00586670 /* ScrollbarThemeIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 44C991810F3D1E0D00586670 /* ScrollbarThemeIOS.mm */; };
</span><span class="cx">                 44C991860F3D1EBE00586670 /* ScrollbarThemeIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 44C991850F3D1EBE00586670 /* ScrollbarThemeIOS.h */; };
</span><span class="cx">                 44C9919F0F3D210E00586670 /* ThemeIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 44C9919D0F3D210E00586670 /* ThemeIOS.h */; };
</span><span class="lines">@@ -1733,6 +1730,7 @@
</span><span class="cx">                 4634592C1AC2271000ECB71C /* PowerObserverMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4634592B1AC2271000ECB71C /* PowerObserverMac.cpp */; };
</span><span class="cx">                 463EB6221B8789E00096ED51 /* TagCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 463EB6201B8789CB0096ED51 /* TagCollection.cpp */; };
</span><span class="cx">                 463EB6231B8789E00096ED51 /* TagCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 463EB6211B8789CB0096ED51 /* TagCollection.h */; };
</span><ins>+                465A8E791C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm in Sources */ = {isa = PBXBuildFile; fileRef = 465A8E781C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm */; };
</ins><span class="cx">                 4669B2871B852A0B000F905F /* JSDOMNamedFlowCollectionCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46F2768E1B85297F005C2556 /* JSDOMNamedFlowCollectionCustom.cpp */; };
</span><span class="cx">                 467302021C4EFE7800BCB357 /* IgnoreOpensDuringUnloadCountIncrementer.h in Headers */ = {isa = PBXBuildFile; fileRef = 467302011C4EFE6600BCB357 /* IgnoreOpensDuringUnloadCountIncrementer.h */; };
</span><span class="cx">                 4689F1AF1267BAE100E8D380 /* FileMetadata.h in Headers */ = {isa = PBXBuildFile; fileRef = 4689F1AE1267BAE100E8D380 /* FileMetadata.h */; };
</span><span class="lines">@@ -8544,7 +8542,6 @@
</span><span class="cx">                 2917B5601473496C0052C9D0 /* LayerFlushSchedulerClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LayerFlushSchedulerClient.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 2917B565147349950052C9D0 /* LayerFlushSchedulerMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LayerFlushSchedulerMac.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RuntimeApplicationChecks.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                293EAE201356B32E0067ACF9 /* RuntimeApplicationChecks.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RuntimeApplicationChecks.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 29489FC512C00F0300D83F0F /* AccessibilityScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilityScrollView.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 29498681195341940072D2BD /* TextUndoInsertionMarkupMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = TextUndoInsertionMarkupMac.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 297BE3D916C043D8003316BD /* PlatformSpeechSynthesizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PlatformSpeechSynthesizer.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -9220,8 +9217,6 @@
</span><span class="cx">                 44A20DB80F84166C00B3E1FE /* WebCoreURLResponseIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreURLResponseIOS.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 44A28AAB12DFB8AC00AE923B /* MathMLElementFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MathMLElementFactory.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 44A28AAE12DFB8BF00AE923B /* MathMLNames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MathMLNames.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                44C363EE0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RuntimeApplicationChecksIOS.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-                44C363EF0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RuntimeApplicationChecksIOS.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 44C991810F3D1E0D00586670 /* ScrollbarThemeIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ScrollbarThemeIOS.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 44C991850F3D1EBE00586670 /* ScrollbarThemeIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollbarThemeIOS.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 44C9919D0F3D210E00586670 /* ThemeIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThemeIOS.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -9250,6 +9245,7 @@
</span><span class="cx">                 4634592B1AC2271000ECB71C /* PowerObserverMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PowerObserverMac.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 463EB6201B8789CB0096ED51 /* TagCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TagCollection.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 463EB6211B8789CB0096ED51 /* TagCollection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TagCollection.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><ins>+                465A8E781C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RuntimeApplicationChecks.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 467302011C4EFE6600BCB357 /* IgnoreOpensDuringUnloadCountIncrementer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IgnoreOpensDuringUnloadCountIncrementer.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 4689F1AE1267BAE100E8D380 /* FileMetadata.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileMetadata.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 46B63F6B1C6E8CDF002E914B /* JSEventTargetCustom.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEventTargetCustom.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -22936,10 +22932,8 @@
</span><span class="cx">                                 9831AE49154225A200FE2644 /* ReferrerPolicy.h */,
</span><span class="cx">                                 CDFC360318CA61C20026E56F /* RemoteCommandListener.cpp */,
</span><span class="cx">                                 CDFC360418CA61C20026E56F /* RemoteCommandListener.h */,
</span><del>-                                293EAE201356B32E0067ACF9 /* RuntimeApplicationChecks.cpp */,
</del><ins>+                                465A8E781C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm */,
</ins><span class="cx">                                 293EAE1E1356B2FE0067ACF9 /* RuntimeApplicationChecks.h */,
</span><del>-                                44C363EE0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h */,
-                                44C363EF0FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm */,
</del><span class="cx">                                 5162C7F211F77EFA00612EFE /* SchemeRegistry.cpp */,
</span><span class="cx">                                 5162C7F311F77EFB00612EFE /* SchemeRegistry.h */,
</span><span class="cx">                                 5141298F1C601A890059E714 /* ScopeGuard.h */,
</span><span class="lines">@@ -27736,7 +27730,6 @@
</span><span class="cx">                                 1A569D230D7E2B82007C3983 /* runtime_object.h in Headers */,
</span><span class="cx">                                 1A569D250D7E2B82007C3983 /* runtime_root.h in Headers */,
</span><span class="cx">                                 293EAE1F1356B2FE0067ACF9 /* RuntimeApplicationChecks.h in Headers */,
</span><del>-                                44C363F00FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.h in Headers */,
</del><span class="cx">                                 8C6EA61A11EF7E0400FD8EE3 /* RuntimeEnabledFeatures.h in Headers */,
</span><span class="cx">                                 CDD7089718359F6F002B3DC6 /* SampleMap.h in Headers */,
</span><span class="cx">                                 49E911CB0EF86D47009D0CAF /* ScaleTransformOperation.h in Headers */,
</span><span class="lines">@@ -31355,8 +31348,6 @@
</span><span class="cx">                                 1A569D200D7E2B82007C3983 /* runtime_method.cpp in Sources */,
</span><span class="cx">                                 1A569D220D7E2B82007C3983 /* runtime_object.cpp in Sources */,
</span><span class="cx">                                 1A569D240D7E2B82007C3983 /* runtime_root.cpp in Sources */,
</span><del>-                                293EAE211356B32E0067ACF9 /* RuntimeApplicationChecks.cpp in Sources */,
-                                44C363F10FAA7BB30097F8CC /* RuntimeApplicationChecksIOS.mm in Sources */,
</del><span class="cx">                                 8C6EA61911EF7E0400FD8EE3 /* RuntimeEnabledFeatures.cpp in Sources */,
</span><span class="cx">                                 CDD7089618359F6F002B3DC6 /* SampleMap.cpp in Sources */,
</span><span class="cx">                                 49E911CA0EF86D47009D0CAF /* ScaleTransformOperation.cpp in Sources */,
</span><span class="lines">@@ -31466,6 +31457,7 @@
</span><span class="cx">                                 C5A1EA7C152BCF04004D00B6 /* SimplifyMarkupCommand.cpp in Sources */,
</span><span class="cx">                                 572A7F231C6E5A66009C6149 /* SimulatedClick.cpp in Sources */,
</span><span class="cx">                                 FD00D7A414A3F61900734011 /* SincResampler.cpp in Sources */,
</span><ins>+                                465A8E791C8A24CE00E7D3E4 /* RuntimeApplicationChecks.mm in Sources */,
</ins><span class="cx">                                 51327D6111A33A2B004F9D65 /* SinkDocument.cpp in Sources */,
</span><span class="cx">                                 49E911CC0EF86D47009D0CAF /* SkewTransformOperation.cpp in Sources */,
</span><span class="cx">                                 4150F9F212B6E0E70008C860 /* SliderThumbElement.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> #import &quot;Page.h&quot;
</span><span class="cx"> #import &quot;Range.h&quot;
</span><span class="cx"> #import &quot;RenderView.h&quot;
</span><del>-#import &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#import &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #import &quot;SVGNames.h&quot;
</span><span class="cx"> #import &quot;SVGElement.h&quot;
</span><span class="cx"> #import &quot;TextIterator.h&quot;
</span><span class="lines">@@ -1554,7 +1554,7 @@
</span><span class="cx">     // The parentView should have an accessibilityContainer, if the UIKit accessibility bundle was loaded. 
</span><span class="cx">     // The exception is DRT, which tests accessibility without the entire system turning accessibility on. Hence,
</span><span class="cx">     // this check should be valid for everything except DRT.
</span><del>-    ASSERT([parentView accessibilityContainer] || applicationIsDumpRenderTree());
</del><ins>+    ASSERT([parentView accessibilityContainer] || IOSApplication::isDumpRenderTree());
</ins><span class="cx">     
</span><span class="cx">     return [parentView accessibilityContainer];
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMWindowBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -264,7 +264,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(MAC)
</span><del>-        if (applicationIsITunes() || applicationIsIBooks() || Settings::shouldRewriteConstAsVar())
</del><ins>+        if (MacApplication::isITunes() || MacApplication::isIBooks() || Settings::shouldRewriteConstAsVar())
</ins><span class="cx">             vm-&gt;setShouldRewriteConstAsVar(true);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSLocationCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/bindings/js/JSLocationCustom.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx">     // FIXME: HipChat tries to set Location.reload which causes an exception to be thrown in strict mode (see &lt;rdar://problem/24931959&gt;).
</span><del>-    if (applicationIsHipChat())
</del><ins>+    if (MacApplication::isHipChat())
</ins><span class="cx">         slot.setStrictMode(false);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#include &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #include &quot;WebVideoFullscreenInterfaceAVKit.h&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLObjectElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLObjectElement.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLObjectElement.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/html/HTMLObjectElement.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #include &quot;DynamicLinkerSPI.h&quot;
</span><del>-#include &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#include &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> static bool shouldNotPerformURLAdjustment()
</span><span class="cx"> {
</span><del>-    static bool shouldNotPerformURLAdjustment = applicationIsNASAHD() &amp;&amp; dyld_get_program_sdk_version() &lt; DYLD_IOS_VERSION_5_0;
</del><ins>+    static bool shouldNotPerformURLAdjustment = IOSApplication::isNASAHD() &amp;&amp; dyld_get_program_sdk_version() &lt; DYLD_IOS_VERSION_5_0;
</ins><span class="cx">     return shouldNotPerformURLAdjustment;
</span><span class="cx"> }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlMediaElementSessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/MediaElementSession.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/MediaElementSession.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/html/MediaElementSession.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #include &quot;AudioSession.h&quot;
</span><del>-#include &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#include &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorTimelineAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> #include &lt;wtf/Stopwatch.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#include &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #include &lt;WebCore/WebCoreThread.h&gt;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">     // we still allow this, see &lt;rdar://problem/7403328&gt;. Since the race condition and subsequent
</span><span class="cx">     // crash are especially troublesome for iBooks, we never allow the observer to be added to the
</span><span class="cx">     // main run loop in iBooks.
</span><del>-    if (applicationIsIBooksOnIOS())
</del><ins>+    if (IOSApplication::isIBooks())
</ins><span class="cx">         return WebThreadRunLoop();
</span><span class="cx"> #endif
</span><span class="cx">     return CFRunLoopGetCurrent();
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderFrameLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/FrameLoader.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/FrameLoader.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/loader/FrameLoader.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -135,7 +135,7 @@
</span><span class="cx"> #include &quot;DocumentType.h&quot;
</span><span class="cx"> #include &quot;MemoryPressureHandler.h&quot;
</span><span class="cx"> #include &quot;ResourceLoader.h&quot;
</span><del>-#include &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#include &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #include &quot;SystemMemory.h&quot;
</span><span class="cx"> #include &quot;WKContentObservation.h&quot;
</span><span class="cx"> #endif
</span><span class="lines">@@ -1475,7 +1475,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     // MobileStore depends on the iOS 4.0 era client delegate method because webView:resource:willSendRequest:redirectResponse:fromDataSource
</span><span class="cx">     // doesn't let them tell when a load request is coming from a media element. See &lt;rdar://problem/8266916&gt; for more details.
</span><del>-    if (applicationIsMobileStore())
</del><ins>+    if (IOSApplication::isMobileStore())
</ins><span class="cx">         return m_client.shouldLoadMediaElementURL(url);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderSubresourceLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/SubresourceLoader.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/SubresourceLoader.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/loader/SubresourceLoader.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx"> #include &lt;wtf/text/CString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include &lt;RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#include &lt;RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CONTENT_EXTENSIONS)
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx"> {
</span><span class="cx">     RefPtr&lt;SubresourceLoader&gt; subloader(adoptRef(new SubresourceLoader(frame, resource, options)));
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-    if (!applicationIsWebProcess()) {
</del><ins>+    if (!IOSApplication::isWebProcess()) {
</ins><span class="cx">         // On iOS, do not invoke synchronous resource load delegates while resource load scheduling
</span><span class="cx">         // is disabled to avoid re-entering style selection from a different thread (see &lt;rdar://problem/9121719&gt;).
</span><span class="cx">         // FIXME: This should be fixed for all ports in &lt;https://bugs.webkit.org/show_bug.cgi?id=56647&gt;.
</span><span class="lines">@@ -116,7 +116,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> bool SubresourceLoader::startLoading()
</span><span class="cx"> {
</span><del>-    ASSERT(!applicationIsWebProcess());
</del><ins>+    ASSERT(!IOSApplication::isWebProcess());
</ins><span class="cx">     if (!init(m_iOSOriginalRequest))
</span><span class="cx">         return false;
</span><span class="cx">     m_iOSOriginalRequest = ResourceRequest();
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedScriptcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedScript.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedScript.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/loader/cache/CachedScript.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -131,14 +131,16 @@
</span><span class="cx"> 
</span><span class="cx"> bool CachedScript::shouldIgnoreHTTPStatusCodeErrors() const
</span><span class="cx"> {
</span><ins>+#if PLATFORM(MAC)
</ins><span class="cx">     // This is a workaround for &lt;rdar://problem/13916291&gt;
</span><span class="cx">     // REGRESSION (r119759): Adobe Flash Player &quot;smaller&quot; installer relies on the incorrect firing
</span><span class="cx">     // of a load event and needs an app-specific hack for compatibility.
</span><span class="cx">     // The installer in question tries to load .js file that doesn't exist, causing the server to
</span><span class="cx">     // return a 404 response. Normally, this would trigger an error event to be dispatched, but the
</span><span class="cx">     // installer expects a load event instead so we work around it here.
</span><del>-    if (applicationIsSolidStateNetworksDownloader())
</del><ins>+    if (MacApplication::isSolidStateNetworksDownloader())
</ins><span class="cx">         return true;
</span><ins>+#endif
</ins><span class="cx"> 
</span><span class="cx">     return CachedResource::shouldIgnoreHTTPStatusCodeErrors();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationCheckscpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,183 +0,0 @@
</span><del>-/*
- * Copyright (C) 2011 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-#include &quot;RuntimeApplicationChecks.h&quot;
-
-#include &lt;wtf/NeverDestroyed.h&gt;
-#include &lt;wtf/RunLoop.h&gt;
-#include &lt;wtf/text/WTFString.h&gt;
-
-#if USE(CF)
-#include &lt;CoreFoundation/CoreFoundation.h&gt;
-#include &lt;wtf/RetainPtr.h&gt;
-#endif
-
-namespace WebCore {
-
-#if USE(CF)
-static CFStringRef mainBundleIdentifier()
-{
-    CFBundleRef mainBundle = CFBundleGetMainBundle();
-    if (!mainBundle)
-        return nullptr;
-
-    return CFBundleGetIdentifier(mainBundle);
-}
-#endif
-
-// The application bundle identifier gets set to the UIProcess bundle identifier by the WebProcess and
-// the networking process upon initialization.
-// If not explicitly set, this will return the main bundle identifier which is accurate for WK1 or
-// the WK2 UIProcess.
-static String&amp; applicationBundleIdentifier()
-{
-    ASSERT(RunLoop::isMain());
-
-#if USE(CF)
-    static NeverDestroyed&lt;String&gt; identifier(mainBundleIdentifier());
-#else
-    static NeverDestroyed&lt;String&gt; identifier;
-#endif
-
-    return identifier;
-}
-
-// FIXME: This should probably be renamed to applicationBundleIsEqualTo() and use applicationBundleIdentifier()
-// instead of mainBundleIdentifier() internally. This would have the benefit of working for both WebKit1 and
-// WebKit2.
-static bool mainBundleIsEqualTo(const String&amp; bundleIdentifierString)
-{
-    // FIXME: We should consider merging this file with RuntimeApplicationChecksIOS.mm.
-    // Then we can remove the PLATFORM(IOS)-guard.
-#if USE(CF) &amp;&amp; !PLATFORM(IOS)
-    CFStringRef bundleIdentifier = mainBundleIdentifier();
-    if (!bundleIdentifier)
-        return false;
-
-    return CFStringCompare(bundleIdentifier, bundleIdentifierString.createCFString().get(), 0) == kCFCompareEqualTo;
-#else
-    UNUSED_PARAM(bundleIdentifierString);
-    return false;
-#endif
-}
-
-bool applicationIsSafari()
-{
-    static bool isSafari = mainBundleIsEqualTo(&quot;com.apple.Safari&quot;);
-    return isSafari;
-}
-
-bool applicationIsAppleMail()
-{
-    static bool isAppleMail = mainBundleIsEqualTo(&quot;com.apple.mail&quot;);
-    return isAppleMail;
-}
-
-bool applicationIsIBooks()
-{
-    static bool isIBooks = mainBundleIsEqualTo(&quot;com.apple.iBooksX&quot;);
-    return isIBooks;
-}
-
-bool applicationIsITunes()
-{
-    static bool isITunes = mainBundleIsEqualTo(&quot;com.apple.iTunes&quot;);
-    return isITunes;
-}
-
-bool applicationIsMicrosoftMessenger()
-{
-    static bool isMicrosoftMessenger = mainBundleIsEqualTo(&quot;com.microsoft.Messenger&quot;);
-    return isMicrosoftMessenger;
-}
-
-bool applicationIsAdobeInstaller()
-{
-    static bool isAdobeInstaller = mainBundleIsEqualTo(&quot;com.adobe.Installers.Setup&quot;);
-    return isAdobeInstaller;
-}
-
-bool applicationIsAOLInstantMessenger()
-{
-    static bool isAOLInstantMessenger = mainBundleIsEqualTo(&quot;com.aol.aim.desktop&quot;);
-    return isAOLInstantMessenger;
-}
-
-bool applicationIsMicrosoftMyDay()
-{
-    static bool isMicrosoftMyDay = mainBundleIsEqualTo(&quot;com.microsoft.myday&quot;);
-    return isMicrosoftMyDay;
-}
-
-bool applicationIsMicrosoftOutlook()
-{
-    static bool isMicrosoftOutlook = mainBundleIsEqualTo(&quot;com.microsoft.Outlook&quot;);
-    return isMicrosoftOutlook;
-}
-
-bool applicationIsQuickenEssentials()
-{
-    static bool isQuickenEssentials = mainBundleIsEqualTo(&quot;com.intuit.QuickenEssentials&quot;);
-    return isQuickenEssentials;
-}
-
-bool applicationIsAperture()
-{
-    static bool isAperture = mainBundleIsEqualTo(&quot;com.apple.Aperture&quot;);
-    return isAperture;
-}
-
-bool applicationIsVersions()
-{
-    static bool isVersions = mainBundleIsEqualTo(&quot;com.blackpixel.versions&quot;);
-    return isVersions;
-}
-
-bool applicationIsHRBlock()
-{
-    static bool isHRBlock = mainBundleIsEqualTo(&quot;com.hrblock.tax.2010&quot;);
-    return isHRBlock;
-}
-
-bool applicationIsSolidStateNetworksDownloader()
-{
-    static bool isSolidStateNetworksDownloader = mainBundleIsEqualTo(&quot;com.solidstatenetworks.awkhost&quot;);
-    return isSolidStateNetworksDownloader;
-}
-
-bool applicationIsHipChat()
-{
-    static bool isHipChat = applicationBundleIdentifier() == &quot;com.hipchat.HipChat&quot;;
-    ASSERT_WITH_MESSAGE(isHipChat == (applicationBundleIdentifier() == &quot;com.hipchat.HipChat&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
-    return isHipChat;
-}
-
-void setApplicationBundleIdentifier(const String&amp; bundleIdentifier)
-{
-    applicationBundleIdentifier() = bundleIdentifier;
-}
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/RuntimeApplicationChecks.h (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecks.h        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecks.h        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -26,28 +26,60 @@
</span><span class="cx"> #ifndef RuntimeApplicationChecks_h
</span><span class="cx"> #define RuntimeApplicationChecks_h
</span><span class="cx"> 
</span><ins>+#if PLATFORM(COCOA)
</ins><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-WEBCORE_EXPORT bool applicationIsAOLInstantMessenger();
-WEBCORE_EXPORT bool applicationIsAdobeInstaller();
-WEBCORE_EXPORT bool applicationIsAperture();
-WEBCORE_EXPORT bool applicationIsAppleMail();
-WEBCORE_EXPORT bool applicationIsIBooks();
-WEBCORE_EXPORT bool applicationIsITunes();
-WEBCORE_EXPORT bool applicationIsMicrosoftMessenger();
-WEBCORE_EXPORT bool applicationIsMicrosoftMyDay();
-WEBCORE_EXPORT bool applicationIsMicrosoftOutlook();
-bool applicationIsQuickenEssentials();
-WEBCORE_EXPORT bool applicationIsSafari();
-bool applicationIsSolidStateNetworksDownloader();
-WEBCORE_EXPORT bool applicationIsVersions();
-WEBCORE_EXPORT bool applicationIsHRBlock();
-WEBCORE_EXPORT bool applicationIsHipChat();
-
</del><span class="cx"> WEBCORE_EXPORT void setApplicationBundleIdentifier(const String&amp;);
</span><span class="cx"> 
</span><ins>+#if PLATFORM(MAC)
+
+namespace MacApplication {
+
+WEBCORE_EXPORT bool isAOLInstantMessenger();
+WEBCORE_EXPORT bool isAdobeInstaller();
+WEBCORE_EXPORT bool isAperture();
+WEBCORE_EXPORT bool isAppleMail();
+WEBCORE_EXPORT bool isIBooks();
+WEBCORE_EXPORT bool isITunes();
+WEBCORE_EXPORT bool isMicrosoftMessenger();
+WEBCORE_EXPORT bool isMicrosoftMyDay();
+WEBCORE_EXPORT bool isMicrosoftOutlook();
+bool isQuickenEssentials();
+WEBCORE_EXPORT bool isSafari();
+bool isSolidStateNetworksDownloader();
+WEBCORE_EXPORT bool isVersions();
+WEBCORE_EXPORT bool isHRBlock();
+WEBCORE_EXPORT bool isHipChat();
+
+} // MacApplication
+
+#endif // PLATFORM(MAC)
+
+#if PLATFORM(IOS)
+
+namespace IOSApplication {
+
+WEBCORE_EXPORT bool isMobileMail();
+WEBCORE_EXPORT bool isMobileSafari();
+bool isDumpRenderTree();
+bool isMobileStore();
+WEBCORE_EXPORT bool isWebApp();
+WEBCORE_EXPORT bool isOkCupid();
+WEBCORE_EXPORT bool isFacebook();
+WEBCORE_EXPORT bool isDaijisenDictionary();
+bool isNASAHD();
+WEBCORE_EXPORT bool isTheEconomistOnIphone();
+WEBCORE_EXPORT bool isWebProcess();
+bool isIBooks();
+
+} // IOSApplication
+
+#endif // PLATFORM(IOS)
+
</ins><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><ins>+#endif // PLATFORM(COCOA)
+
</ins><span class="cx"> #endif // RuntimeApplicationChecks_h
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksmm"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm (0 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm                                (rev 0)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecks.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -0,0 +1,261 @@
</span><ins>+/*
+ * Copyright (C) 2011, 2016 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import &quot;config.h&quot;
+#import &quot;RuntimeApplicationChecks.h&quot;
+
+#import &lt;Foundation/NSBundle.h&gt;
+#import &lt;wtf/NeverDestroyed.h&gt;
+#import &lt;wtf/RunLoop.h&gt;
+#import &lt;wtf/text/WTFString.h&gt;
+
+namespace WebCore {
+
+// The application bundle identifier gets set to the UIProcess bundle identifier by the WebProcess and
+// the networking process upon initialization.
+// If not explicitly set, this will return the main bundle identifier which is accurate for WK1 or
+// the WK2 UIProcess.
+static String&amp; applicationBundleIdentifier()
+{
+    ASSERT(RunLoop::isMain());
+
+    static NeverDestroyed&lt;String&gt; identifier([[NSBundle mainBundle] bundleIdentifier]);
+
+    return identifier;
+}
+
+void setApplicationBundleIdentifier(const String&amp; bundleIdentifier)
+{
+    applicationBundleIdentifier() = bundleIdentifier;
+}
+
+static bool applicationBundleIsEqualTo(const String&amp; bundleIdentifierString)
+{
+    return applicationBundleIdentifier() == bundleIdentifierString;
+}
+
+#if PLATFORM(MAC)
+
+bool MacApplication::isSafari()
+{
+    static bool isSafari = applicationBundleIsEqualTo(&quot;com.apple.Safari&quot;);
+    ASSERT_WITH_MESSAGE(isSafari == applicationBundleIsEqualTo(&quot;com.apple.Safari&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isSafari;
+}
+
+bool MacApplication::isAppleMail()
+{
+    static bool isAppleMail = applicationBundleIsEqualTo(&quot;com.apple.mail&quot;);
+    ASSERT_WITH_MESSAGE(isAppleMail == applicationBundleIsEqualTo(&quot;com.apple.mail&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isAppleMail;
+}
+
+bool MacApplication::isIBooks()
+{
+    static bool isIBooks = applicationBundleIsEqualTo(&quot;com.apple.iBooksX&quot;);
+    ASSERT_WITH_MESSAGE(isIBooks == applicationBundleIsEqualTo(&quot;com.apple.iBooksX&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isIBooks;
+}
+
+bool MacApplication::isITunes()
+{
+    static bool isITunes = applicationBundleIsEqualTo(&quot;com.apple.iTunes&quot;);
+    ASSERT_WITH_MESSAGE(isITunes == applicationBundleIsEqualTo(&quot;com.apple.iTunes&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isITunes;
+}
+
+bool MacApplication::isMicrosoftMessenger()
+{
+    static bool isMicrosoftMessenger = applicationBundleIsEqualTo(&quot;com.microsoft.Messenger&quot;);
+    ASSERT_WITH_MESSAGE(isMicrosoftMessenger == applicationBundleIsEqualTo(&quot;com.microsoft.Messenger&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isMicrosoftMessenger;
+}
+
+bool MacApplication::isAdobeInstaller()
+{
+    static bool isAdobeInstaller = applicationBundleIsEqualTo(&quot;com.adobe.Installers.Setup&quot;);
+    ASSERT_WITH_MESSAGE(isAdobeInstaller == applicationBundleIsEqualTo(&quot;com.adobe.Installers.Setup&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isAdobeInstaller;
+}
+
+bool MacApplication::isAOLInstantMessenger()
+{
+    static bool isAOLInstantMessenger = applicationBundleIsEqualTo(&quot;com.aol.aim.desktop&quot;);
+    ASSERT_WITH_MESSAGE(isAOLInstantMessenger == applicationBundleIsEqualTo(&quot;com.aol.aim.desktop&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isAOLInstantMessenger;
+}
+
+bool MacApplication::isMicrosoftMyDay()
+{
+    static bool isMicrosoftMyDay = applicationBundleIsEqualTo(&quot;com.microsoft.myday&quot;);
+    ASSERT_WITH_MESSAGE(isMicrosoftMyDay == applicationBundleIsEqualTo(&quot;com.microsoft.myday&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isMicrosoftMyDay;
+}
+
+bool MacApplication::isMicrosoftOutlook()
+{
+    static bool isMicrosoftOutlook = applicationBundleIsEqualTo(&quot;com.microsoft.Outlook&quot;);
+    ASSERT_WITH_MESSAGE(isMicrosoftOutlook == applicationBundleIsEqualTo(&quot;com.microsoft.Outlook&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isMicrosoftOutlook;
+}
+
+bool MacApplication::isQuickenEssentials()
+{
+    static bool isQuickenEssentials = applicationBundleIsEqualTo(&quot;com.intuit.QuickenEssentials&quot;);
+    ASSERT_WITH_MESSAGE(isQuickenEssentials == applicationBundleIsEqualTo(&quot;com.intuit.QuickenEssentials&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isQuickenEssentials;
+}
+
+bool MacApplication::isAperture()
+{
+    static bool isAperture = applicationBundleIsEqualTo(&quot;com.apple.Aperture&quot;);
+    ASSERT_WITH_MESSAGE(isAperture == applicationBundleIsEqualTo(&quot;com.apple.Aperture&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isAperture;
+}
+
+bool MacApplication::isVersions()
+{
+    static bool isVersions = applicationBundleIsEqualTo(&quot;com.blackpixel.versions&quot;);
+    ASSERT_WITH_MESSAGE(isVersions == applicationBundleIsEqualTo(&quot;com.blackpixel.versions&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isVersions;
+}
+
+bool MacApplication::isHRBlock()
+{
+    static bool isHRBlock = applicationBundleIsEqualTo(&quot;com.hrblock.tax.2010&quot;);
+    ASSERT_WITH_MESSAGE(isHRBlock == applicationBundleIsEqualTo(&quot;com.hrblock.tax.2010&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isHRBlock;
+}
+
+bool MacApplication::isSolidStateNetworksDownloader()
+{
+    static bool isSolidStateNetworksDownloader = applicationBundleIsEqualTo(&quot;com.solidstatenetworks.awkhost&quot;);
+    ASSERT_WITH_MESSAGE(isSolidStateNetworksDownloader == applicationBundleIsEqualTo(&quot;com.solidstatenetworks.awkhost&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+
+    return isSolidStateNetworksDownloader;
+}
+
+bool MacApplication::isHipChat()
+{
+    static bool isHipChat = applicationBundleIsEqualTo(&quot;com.hipchat.HipChat&quot;);
+    ASSERT_WITH_MESSAGE(isHipChat == applicationBundleIsEqualTo(&quot;com.hipchat.HipChat&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isHipChat;
+}
+
+#endif // PLATFORM(MAC)
+
+#if PLATFORM(IOS)
+
+bool IOSApplication::isMobileMail()
+{
+    static bool isMobileMail = applicationBundleIsEqualTo(&quot;com.apple.mobilemail&quot;);
+    ASSERT_WITH_MESSAGE(isMobileMail == applicationBundleIsEqualTo(&quot;com.apple.mobilemail&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isMobileMail;
+}
+
+bool IOSApplication::isMobileSafari()
+{
+    static bool isMobileSafari = applicationBundleIsEqualTo(&quot;com.apple.mobilesafari&quot;);
+    ASSERT_WITH_MESSAGE(isMobileSafari == applicationBundleIsEqualTo(&quot;com.apple.mobilesafari&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isMobileSafari;
+}
+
+bool IOSApplication::isDumpRenderTree()
+{
+    // We use a prefix match instead of strict equality since LayoutTestRelay may launch multiple instances of
+    // DumpRenderTree where the bundle identifier of each instance has a unique suffix.
+    static bool isDumpRenderTree = applicationBundleIsEqualTo(&quot;org.webkit.DumpRenderTree&quot;); // e.g. org.webkit.DumpRenderTree0
+    ASSERT_WITH_MESSAGE(isDumpRenderTree == applicationBundleIsEqualTo(&quot;org.webkit.DumpRenderTree&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isDumpRenderTree;
+}
+
+bool IOSApplication::isMobileStore()
+{
+    static bool isMobileStore = applicationBundleIsEqualTo(&quot;com.apple.MobileStore&quot;);
+    ASSERT_WITH_MESSAGE(isMobileStore == applicationBundleIsEqualTo(&quot;com.apple.MobileStore&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isMobileStore;
+}
+
+bool IOSApplication::isWebApp()
+{
+    static bool isWebApp = applicationBundleIsEqualTo(&quot;com.apple.webapp&quot;);
+    ASSERT_WITH_MESSAGE(isWebApp == applicationBundleIsEqualTo(&quot;com.apple.webapp&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isWebApp;
+}
+
+bool IOSApplication::isOkCupid()
+{
+    static bool isOkCupid = applicationBundleIsEqualTo(&quot;com.okcupid.app&quot;);
+    ASSERT_WITH_MESSAGE(isOkCupid == applicationBundleIsEqualTo(&quot;com.okcupid.app&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isOkCupid;
+}
+
+bool IOSApplication::isFacebook()
+{
+    static bool isFacebook = applicationBundleIsEqualTo(&quot;com.facebook.Facebook&quot;);
+    ASSERT_WITH_MESSAGE(isFacebook == applicationBundleIsEqualTo(&quot;com.facebook.Facebook&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isFacebook;
+}
+
+bool IOSApplication::isDaijisenDictionary()
+{
+    static bool isDaijisenDictionary = applicationBundleIsEqualTo(&quot;jp.co.shogakukan.daijisen2009i&quot;);
+    ASSERT_WITH_MESSAGE(isDaijisenDictionary == applicationBundleIsEqualTo(&quot;jp.co.shogakukan.daijisen2009i&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isDaijisenDictionary;
+}
+
+bool IOSApplication::isNASAHD()
+{
+    static bool isNASAHD = applicationBundleIsEqualTo(&quot;gov.nasa.NASAHD&quot;);
+    ASSERT_WITH_MESSAGE(isNASAHD == applicationBundleIsEqualTo(&quot;gov.nasa.NASAHD&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isNASAHD;
+}
+
+bool IOSApplication::isTheEconomistOnIphone()
+{
+    static bool isTheEconomistOnIphone = applicationBundleIsEqualTo(&quot;com.economist.iphone&quot;);
+    ASSERT_WITH_MESSAGE(isTheEconomistOnIphone == applicationBundleIsEqualTo(&quot;com.economist.iphone&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isTheEconomistOnIphone;
+}
+
+// FIXME: this needs to be changed when the WebProcess is changed to an XPC service.
+bool IOSApplication::isWebProcess()
+{
+    static bool isWebProcess = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.WebKit.WebContent.Development&quot;]
+        || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.WebKit.WebContent&quot;]
+        || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.WebProcess&quot;];
+    return isWebProcess;
+}
+
+bool IOSApplication::isIBooks()
+{
+    static bool isIBooks = applicationBundleIsEqualTo(&quot;com.apple.iBooks&quot;);
+    ASSERT_WITH_MESSAGE(isIBooks == applicationBundleIsEqualTo(&quot;com.apple.iBooks&quot;), &quot;Should not be called before setApplicationBundleIdentifier()&quot;);
+    return isIBooks;
+}
+
+#endif
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksIOSh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.h (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.h        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.h        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,47 +0,0 @@
</span><del>-/*
- * Copyright (C) 2009 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1.  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer. 
- * 2.  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution. 
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef RuntimeApplicationChecksIOS_h
-#define RuntimeApplicationChecksIOS_h
-
-// FIXME: We should consider merging this file with RuntimeApplicationChecks.h.
-namespace WebCore {
-
-WEBCORE_EXPORT bool applicationIsMobileMail();
-WEBCORE_EXPORT bool applicationIsMobileSafari();
-bool applicationIsDumpRenderTree();
-bool applicationIsMobileStore();
-WEBCORE_EXPORT bool applicationIsWebApp();
-WEBCORE_EXPORT bool applicationIsOkCupid();
-WEBCORE_EXPORT bool applicationIsFacebook();
-WEBCORE_EXPORT bool applicationIsDaijisenDictionary();
-bool applicationIsNASAHD();
-WEBCORE_EXPORT bool applicationIsTheEconomistOnIPhone();
-WEBCORE_EXPORT bool applicationIsWebProcess();
-bool applicationIsIBooksOnIOS();
-
-} // namespace WebCore
-
-#endif // RuntimeApplicationChecksIOS_h
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformRuntimeApplicationChecksIOSmm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/RuntimeApplicationChecksIOS.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,111 +0,0 @@
</span><del>-/*
- * Copyright (C) 2009 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1.  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer. 
- * 2.  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution. 
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import &quot;config.h&quot;
-#import &quot;RuntimeApplicationChecksIOS.h&quot;
-
-// FIXME: We should consider merging this file with RuntimeApplicationChecks.cpp.
-#if PLATFORM(IOS)
-
-namespace WebCore {
-
-bool applicationIsMobileMail()
-{
-    static const bool isMobileMail = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.mobilemail&quot;];
-    return isMobileMail;
-}
-
-bool applicationIsMobileSafari()
-{
-    static const bool isMobileSafari = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.mobilesafari&quot;];
-    return isMobileSafari;
-}
-
-bool applicationIsDumpRenderTree()
-{
-    // We use a prefix match instead of strict equality since LayoutTestRelay may launch multiple instances of
-    // DumpRenderTree where the bundle identifier of each instance has a unique suffix.
-    static const bool isDumpRenderTree = [[[NSBundle mainBundle] bundleIdentifier] hasPrefix:@&quot;org.webkit.DumpRenderTree&quot;]; // e.g. org.webkit.DumpRenderTree0
-    return isDumpRenderTree;
-}
-
-bool applicationIsMobileStore()
-{
-    static const bool isMobileStore = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.MobileStore&quot;];
-    return isMobileStore;
-}
-
-bool applicationIsWebApp()
-{
-    static const bool isWebApp = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.webapp&quot;];
-    return isWebApp;
-}
-
-bool applicationIsOkCupid()
-{
-    static const bool isOkCupid = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.okcupid.app&quot;];
-    return isOkCupid;
-}
-
-bool applicationIsFacebook()
-{
-    static const bool isFacebook = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.facebook.Facebook&quot;];
-    return isFacebook;
-}
-
-bool applicationIsDaijisenDictionary()
-{
-    static const bool isDaijisenDictionary = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;jp.co.shogakukan.daijisen2009i&quot;];
-    return isDaijisenDictionary;
-}
-
-bool applicationIsNASAHD()
-{
-    static const bool isNASAHD = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;gov.nasa.NASAHD&quot;];
-    return isNASAHD;
-}
-
-bool applicationIsTheEconomistOnIPhone()
-{
-    static const bool isTheEconomistOnIPhone = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.economist.iphone&quot;];
-    return isTheEconomistOnIPhone;
-}
-
-// FIXME: this needs to be changed when the WebProcess is changed to an XPC service.
-bool applicationIsWebProcess()
-{
-    static const bool isWebProcess = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.WebKit.WebContent.Development&quot;] || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.WebKit.WebContent&quot;] || [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.WebProcess&quot;];
-    return isWebProcess;
-}
-
-bool applicationIsIBooksOnIOS()
-{
-    static const bool isIBooksOnIOS = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@&quot;com.apple.iBooks&quot;];
-    return isIBooksOnIOS;
-}
-
-} // namespace WebCore
-
-#endif // PLATFORM(IOS)
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformaudioiosAudioDestinationIOScpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> #include &quot;Page.h&quot;
</span><span class="cx"> #include &quot;SoftLinking.h&quot;
</span><span class="cx"> #include &lt;AudioToolbox/AudioServices.h&gt;
</span><del>-#include &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#include &lt;WebCore/RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><span class="cx"> #include &lt;wtf/NeverDestroyed.h&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformcfURLCFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/cf/URLCF.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/cf/URLCF.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/cf/URLCF.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -31,7 +31,7 @@
</span><span class="cx"> #include &lt;wtf/text/CString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#include &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscacocoaLayerFlushSchedulerMaccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/graphics/ca/cocoa/LayerFlushSchedulerMac.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx"> #include &lt;wtf/AutodrainedPool.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#include &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #include &lt;CoreFoundation/CFBundle.h&gt;
</span><span class="cx"> #include &lt;WebCore/WebCoreThread.h&gt;
</span><span class="cx"> #endif
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">     // we still allow this, see &lt;rdar://problem/7403328&gt;. Since the race condition and subsequent
</span><span class="cx">     // crash are especially troublesome for iBooks, we never allow the observer to be added to the
</span><span class="cx">     // main run loop in iBooks.
</span><del>-    if (applicationIsIBooksOnIOS())
</del><ins>+    if (IOSApplication::isIBooks())
</ins><span class="cx">         return WebThreadRunLoop();
</span><span class="cx"> #endif
</span><span class="cx">     return CFRunLoopGetCurrent();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosPasteboardIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/PasteboardIOS.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/PasteboardIOS.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/ios/PasteboardIOS.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> #import &quot;PasteboardStrategy.h&quot;
</span><span class="cx"> #import &quot;PlatformStrategies.h&quot;
</span><span class="cx"> #import &quot;RenderImage.h&quot;
</span><del>-#import &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#import &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #import &quot;SharedBuffer.h&quot;
</span><span class="cx"> #import &quot;SoftLinking.h&quot;
</span><span class="cx"> #import &quot;Text.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosWebVideoFullscreenInterfaceAVKitmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx"> #import &quot;AVKitSPI.h&quot;
</span><span class="cx"> #import &quot;GeometryUtilities.h&quot;
</span><span class="cx"> #import &quot;Logging.h&quot;
</span><del>-#import &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#import &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #import &quot;TimeRanges.h&quot;
</span><span class="cx"> #import &quot;WebCoreSystemInterface.h&quot;
</span><span class="cx"> #import &quot;WebVideoFullscreenChangeObserver.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformioswakWebCoreThreadmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/ios/wak/WebCoreThread.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -30,8 +30,8 @@
</span><span class="cx"> 
</span><span class="cx"> #import &quot;FloatingPointEnvironment.h&quot;
</span><span class="cx"> #import &quot;JSDOMWindowBase.h&quot;
</span><ins>+#import &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #import &quot;ThreadGlobalData.h&quot;
</span><del>-#import &quot;RuntimeApplicationChecksIOS.h&quot;
</del><span class="cx"> #import &quot;WebCoreThreadInternal.h&quot;
</span><span class="cx"> #import &quot;WebCoreThreadMessage.h&quot;
</span><span class="cx"> #import &quot;WebCoreThreadRun.h&quot;
</span><span class="lines">@@ -1000,7 +1000,7 @@
</span><span class="cx"> 
</span><span class="cx"> void WebThreadEnable(void)
</span><span class="cx"> {
</span><del>-    RELEASE_ASSERT_WITH_MESSAGE(!WebCore::applicationIsWebProcess(), &quot;The WebProcess should never run a Web Thread&quot;);
</del><ins>+    RELEASE_ASSERT_WITH_MESSAGE(!WebCore::IOSApplication::isWebProcess(), &quot;The WebProcess should never run a Web Thread&quot;);
</ins><span class="cx"> 
</span><span class="cx">     static pthread_once_t initControl = PTHREAD_ONCE_INIT;
</span><span class="cx">     pthread_once(&amp;initControl, StartWebThread);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacWidgetMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/WidgetMac.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/WidgetMac.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/mac/WidgetMac.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -194,9 +194,13 @@
</span><span class="cx">     // We don't want to paint the view at all if it's layer backed, because then we'll end up
</span><span class="cx">     // with multiple copies of the view contents, one in the view's layer itself and one in the
</span><span class="cx">     // WebHTMLView's backing store (either a layer or the window backing store).
</span><del>-    // However, Quicken Essentials has a plug-in that depends on drawing to update the layer (see &lt;rdar://problem/15221231&gt;).
-    if (view.layer &amp;&amp; !applicationIsQuickenEssentials())
</del><ins>+    if (view.layer) {
+#if PLATFORM(MAC)
+        // However, Quicken Essentials has a plug-in that depends on drawing to update the layer (see &lt;rdar://problem/15221231&gt;).
+        if (!MacApplication::isQuickenEssentials())
+#endif
</ins><span class="cx">         return;
</span><ins>+    }
</ins><span class="cx"> 
</span><span class="cx">     // Take a reference to this Widget, because sending messages to the views can invoke arbitrary
</span><span class="cx">     // code, which can deref it.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkiosQuickLookmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/ios/QuickLook.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/ios/QuickLook.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/network/ios/QuickLook.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx"> #import &quot;ResourceError.h&quot;
</span><span class="cx"> #import &quot;ResourceHandle.h&quot;
</span><span class="cx"> #import &quot;ResourceLoader.h&quot;
</span><del>-#import &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#import &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #import &quot;SynchronousResourceHandleCFURLConnectionDelegate.h&quot;
</span><span class="cx"> #import &quot;WebCoreResourceHandleAsDelegate.h&quot;
</span><span class="cx"> #import &quot;WebCoreURLResponseIOS.h&quot;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkmacResourceHandleMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #import &quot;CFNetworkSPI.h&quot;
</span><del>-#import &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#import &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #import &quot;WebCoreThreadRun.h&quot;
</span><span class="cx"> 
</span><span class="cx"> @interface NSURLRequest ()
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerBackingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include &quot;RuntimeApplicationChecksIOS.h&quot;
</del><ins>+#include &quot;RuntimeApplicationChecks.h&quot;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -352,7 +352,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool RenderLayerBacking::needsIOSDumpRenderTreeMainFrameRenderViewLayerIsAlwaysOpaqueHack(const GraphicsLayer&amp; layer) const
</span><span class="cx"> {
</span><del>-    if (m_isMainFrameRenderViewLayer &amp;&amp; applicationIsDumpRenderTree()) {
</del><ins>+    if (m_isMainFrameRenderViewLayer &amp;&amp; IOSApplication::isDumpRenderTree()) {
</ins><span class="cx">         // In iOS WebKit1 the main frame's RenderView layer is always transparent. We lie that it is opaque so that
</span><span class="cx">         // internals.layerTreeAsText() tests succeed.
</span><span class="cx">         ASSERT_UNUSED(layer, !layer.contentsOpaque());
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-03-05  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+        https://bugs.webkit.org/show_bug.cgi?id=155035
+
+        Reviewed by Darin Adler.
+
+        Update runtime application checks.
+
+        * WebCoreSupport/WebResourceLoadScheduler.cpp:
+        (WebResourceLoadScheduler::servePendingRequests):
+
</ins><span class="cx"> 2016-03-04  Alex Christensen  &lt;achristensen@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove vcxproj build system
</span></span></pre></div>
<a id="trunkSourceWebKitWebCoreSupportWebResourceLoadSchedulercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/WebCoreSupport/WebResourceLoadScheduler.cpp        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> #include &lt;wtf/text/CString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#include &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#include &lt;WebCore/RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if USE(QUICK_LOOK)
</span><span class="lines">@@ -261,7 +261,7 @@
</span><span class="cx">             requestsPending.removeFirst();
</span><span class="cx">             host-&gt;addLoadInProgress(resourceLoader.get());
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-            if (!applicationIsWebProcess()) {
</del><ins>+            if (!IOSApplication::isWebProcess()) {
</ins><span class="cx">                 resourceLoader-&gt;startLoading();
</span><span class="cx">                 return;
</span><span class="cx">             }
</span></span></pre></div>
<a id="trunkSourceWebKitiosChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/ios/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2016-03-05  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+        https://bugs.webkit.org/show_bug.cgi?id=155035
+
+        Reviewed by Darin Adler.
+
+        Update runtime application checks.
+
+        * WebCoreSupport/WebChromeClientIOS.mm:
+
</ins><span class="cx"> 2016-02-17  David Kilzer  &lt;ddkilzer@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [iOS WK1] NSTimer in WebGeolocationProviderIOS.mm fires on the main thread without the WebThreadLock
</span></span></pre></div>
<a id="trunkSourceWebKitiosWebCoreSupportWebChromeClientIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx"> #import &lt;WebCore/PlatformScreen.h&gt;
</span><span class="cx"> #import &lt;WebCore/RenderBox.h&gt;
</span><span class="cx"> #import &lt;WebCore/RenderObject.h&gt;
</span><del>-#import &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#import &lt;WebCore/RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #import &lt;WebCore/ScrollingConstraints.h&gt;
</span><span class="cx"> #import &lt;WebCore/WAKWindow.h&gt;
</span><span class="cx"> #import &lt;WebCore/WebCoreThreadMessage.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,34 @@
</span><ins>+2016-03-05  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+        https://bugs.webkit.org/show_bug.cgi?id=155035
+
+        Reviewed by Darin Adler.
+
+        Update runtime application checks.
+
+        * Plugins/WebPluginController.mm:
+        (initializeAudioSession):
+        * WebCoreSupport/WebFrameLoaderClient.mm:
+        * WebView/WebFrame.mm:
+        (needsMicrosoftMessengerDOMDocumentWorkaround):
+        * WebView/WebImmediateActionController.mm:
+        (-[WebImmediateActionController _updateImmediateActionItem]):
+        * WebView/WebView.mm:
+        (WebKitInitializeApplicationCachePathIfNecessary):
+        (shouldEnableLoadDeferring):
+        (shouldRestrictWindowFocus):
+        (needsOutlookQuirksScript):
+        (shouldTransformsAffectOverflow):
+        (shouldDispatchJavaScriptWindowOnErrorEvents):
+        (shouldUseLegacyBackgroundSizeShorthandBehavior):
+        (-[WebView _commonInitializationWithFrameName:groupName:]):
+        (+[WebView enableWebThread]):
+        (+[WebView registerForMemoryNotifications]):
+        (-[WebView _needsKeyboardEventDisambiguationQuirks]):
+        (needsSelfRetainWhileLoadingQuirk):
+        (-[WebView _needsPreHTML5ParserQuirks]):
+
</ins><span class="cx"> 2016-03-05  Yusuke Suzuki  &lt;utatane.tea@gmail.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [ES6] Support Reflect.construct
</span></span></pre></div>
<a id="trunkSourceWebKitmacPluginsWebPluginControllermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Plugins/WebPluginController.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Plugins/WebPluginController.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/Plugins/WebPluginController.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> #import &lt;WebCore/FrameView.h&gt;
</span><span class="cx"> #import &lt;WebCore/GraphicsLayer.h&gt;
</span><span class="cx"> #import &lt;WebCore/Page.h&gt;
</span><del>-#import &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#import &lt;WebCore/RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #import &lt;WebCore/SoftLinking.h&gt;
</span><span class="cx"> #import &lt;WebCore/WebCoreThreadRun.h&gt;
</span><span class="cx"> #endif
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     wasAudioSessionInitialized = true;
</span><del>-    if (!WebCore::applicationIsMobileSafari())
</del><ins>+    if (!WebCore::IOSApplication::isMobileSafari())
</ins><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     AudioSession::sharedSession().setCategory(AudioSession::MediaPlayback);
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebFrameLoaderClientmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -148,7 +148,7 @@
</span><span class="cx"> #import &lt;WebCore/FileSystemIOS.h&gt;
</span><span class="cx"> #import &lt;WebCore/NSFileManagerSPI.h&gt;
</span><span class="cx"> #import &lt;WebCore/QuickLook.h&gt;
</span><del>-#import &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#import &lt;WebCore/RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if HAVE(APP_LINKS)
</span><span class="lines">@@ -2239,7 +2239,7 @@
</span><span class="cx">             : m_firstRequestURL(handle.firstRequestURL())
</span><span class="cx">         {
</span><span class="cx">             NSURL *previewRequestURL = handle.previewRequestURL();
</span><del>-            if (!applicationIsMobileSafari()) {
</del><ins>+            if (!IOSApplication::isMobileSafari()) {
</ins><span class="cx">                 // This keeps the QLPreviewConverter alive to serve any subresource requests.
</span><span class="cx">                 // It is removed by -[WebDataSource dealloc].
</span><span class="cx">                 addQLPreviewConverterWithFileForURL(previewRequestURL, handle.converter(), nil);
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebFramemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebFrame.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebFrame.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/WebView/WebFrame.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -2411,8 +2411,12 @@
</span><span class="cx"> 
</span><span class="cx"> static bool needsMicrosoftMessengerDOMDocumentWorkaround()
</span><span class="cx"> {
</span><del>-    static bool needsWorkaround = applicationIsMicrosoftMessenger() &amp;&amp; [[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey] compare:@&quot;7.1&quot; options:NSNumericSearch] == NSOrderedAscending;
</del><ins>+#if PLATFORM(IOS)
+    return false;
+#else
+    static bool needsWorkaround = MacApplication::isMicrosoftMessenger() &amp;&amp; [[[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey] compare:@&quot;7.1&quot; options:NSNumericSearch] == NSOrderedAscending;
</ins><span class="cx">     return needsWorkaround;
</span><ins>+#endif
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (DOMDocument *)DOMDocument
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebImmediateActionControllermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebImmediateActionController.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebImmediateActionController.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/WebView/WebImmediateActionController.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -318,11 +318,19 @@
</span><span class="cx">         customClientAnimationController = [(id)[_webView UIDelegate] _webView:_webView immediateActionAnimationControllerForHitTestResult:webHitTestResult.get() withType:_type];
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    if (customClientAnimationController == [NSNull null]) {
+        [self _cancelImmediateAction];
+        return;
+    }
+
+#if PLATFORM(MAC)
</ins><span class="cx">     // FIXME: We should not permanently disable this for iTunes. rdar://problem/19461358
</span><del>-    if (customClientAnimationController == [NSNull null] || applicationIsITunes()) {
</del><ins>+    if (MacApplication::isITunes()) {
</ins><span class="cx">         [self _cancelImmediateAction];
</span><span class="cx">         return;
</span><span class="cx">     }
</span><ins>+#endif
+
</ins><span class="cx">     if (customClientAnimationController &amp;&amp; [customClientAnimationController conformsToProtocol:@protocol(NSImmediateActionAnimationController)])
</span><span class="cx">         [_immediateActionRecognizer setAnimationController:(id &lt;NSImmediateActionAnimationController&gt;)customClientAnimationController];
</span><span class="cx">     else
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebView.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -254,7 +254,6 @@
</span><span class="cx"> #import &lt;WebCore/PlatformScreen.h&gt;
</span><span class="cx"> #import &lt;WebCore/ResourceLoadStatistics.h&gt;
</span><span class="cx"> #import &lt;WebCore/ResourceLoadStatisticsStore.h&gt;
</span><del>-#import &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><span class="cx"> #import &lt;WebCore/SQLiteDatabaseTracker.h&gt;
</span><span class="cx"> #import &lt;WebCore/SmartReplace.h&gt;
</span><span class="cx"> #import &lt;WebCore/TextRun.h&gt;
</span><span class="lines">@@ -741,7 +740,7 @@
</span><span class="cx">     if (!appName)
</span><span class="cx">         appName = [[NSProcessInfo processInfo] processName];
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-    if (WebCore::applicationIsMobileSafari() || WebCore::applicationIsWebApp())
</del><ins>+    if (WebCore::IOSApplication::isMobileSafari() || WebCore::IOSApplication::isWebApp())
</ins><span class="cx">         appName = @&quot;com.apple.WebAppCache&quot;;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -776,7 +775,11 @@
</span><span class="cx"> 
</span><span class="cx"> static bool shouldEnableLoadDeferring()
</span><span class="cx"> {
</span><del>-    return !applicationIsAdobeInstaller();
</del><ins>+#if PLATFORM(IOS)
+    return true;
+#else
+    return !MacApplication::isAdobeInstaller();
+#endif
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static bool shouldRestrictWindowFocus()
</span><span class="lines">@@ -784,7 +787,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     return true;
</span><span class="cx"> #else
</span><del>-    return !applicationIsHRBlock();
</del><ins>+    return !MacApplication::isHRBlock();
</ins><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -807,7 +810,7 @@
</span><span class="cx"> static bool needsOutlookQuirksScript()
</span><span class="cx"> {
</span><span class="cx">     static bool isOutlookNeedingQuirksScript = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER)
</span><del>-        &amp;&amp; applicationIsMicrosoftOutlook();
</del><ins>+        &amp;&amp; MacApplication::isMicrosoftOutlook();
</ins><span class="cx">     return isOutlookNeedingQuirksScript;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -842,13 +845,13 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> static bool shouldTransformsAffectOverflow()
</span><span class="cx"> {
</span><del>-    static bool shouldTransformsAffectOverflow = !applicationIsOkCupid() || WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_CSS_TRANSFORMS_AFFECTING_OVERFLOW);
</del><ins>+    static bool shouldTransformsAffectOverflow = !IOSApplication::isOkCupid() || WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_CSS_TRANSFORMS_AFFECTING_OVERFLOW);
</ins><span class="cx">     return shouldTransformsAffectOverflow;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static bool shouldDispatchJavaScriptWindowOnErrorEvents()
</span><span class="cx"> {
</span><del>-    static bool shouldDispatchJavaScriptWindowOnErrorEvents = !applicationIsFacebook() || WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_WINDOW_ON_ERROR);
</del><ins>+    static bool shouldDispatchJavaScriptWindowOnErrorEvents = !IOSApplication::isFacebook() || WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_WINDOW_ON_ERROR);
</ins><span class="cx">     return shouldDispatchJavaScriptWindowOnErrorEvents;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -866,7 +869,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     static bool shouldUseLegacyBackgroundSizeShorthandBehavior = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITHOUT_LEGACY_BACKGROUNDSIZE_SHORTHAND_BEHAVIOR);
</span><span class="cx"> #else
</span><del>-    static bool shouldUseLegacyBackgroundSizeShorthandBehavior = applicationIsVersions()
</del><ins>+    static bool shouldUseLegacyBackgroundSizeShorthandBehavior = MacApplication::isVersions()
</ins><span class="cx">         &amp;&amp; !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITHOUT_LEGACY_BACKGROUNDSIZE_SHORTHAND_BEHAVIOR);
</span><span class="cx"> #endif
</span><span class="cx">     return shouldUseLegacyBackgroundSizeShorthandBehavior;
</span><span class="lines">@@ -976,7 +979,7 @@
</span><span class="cx">         Settings::setShouldRespectPriorityInCSSAttributeSetters(shouldRespectPriorityInCSSAttributeSetters());
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-        if (applicationIsMobileSafari())
</del><ins>+        if (IOSApplication::isMobileSafari())
</ins><span class="cx">             Settings::setShouldManageAudioSessionCategory(true);
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -1201,7 +1204,7 @@
</span><span class="cx">         WebCoreObjCDeallocOnWebThread([WebPolicyDecisionListener class]);
</span><span class="cx">         WebCoreObjCDeallocOnWebThread([WebView class]);
</span><span class="cx">         WebCoreObjCDeallocOnWebThread([WebVisiblePosition class]);
</span><del>-        if (applicationIsTheEconomistOnIPhone() &amp;&amp; !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_DELEGATE_CALLS_IN_COMMON_RUNLOOP_MODES))
</del><ins>+        if (IOSApplication::isTheEconomistOnIphone() &amp;&amp; !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_DELEGATE_CALLS_IN_COMMON_RUNLOOP_MODES))
</ins><span class="cx">             WebThreadSetDelegateSourceRunLoopMode(kCFRunLoopDefaultMode);
</span><span class="cx">         WebThreadEnable();
</span><span class="cx">         isWebThreadEnabled = YES;
</span><span class="lines">@@ -1327,7 +1330,7 @@
</span><span class="cx"> 
</span><span class="cx"> + (void)registerForMemoryNotifications
</span><span class="cx"> {
</span><del>-    BOOL shouldAutoClearPressureOnMemoryRelease = !WebCore::applicationIsMobileSafari();
</del><ins>+    BOOL shouldAutoClearPressureOnMemoryRelease = !WebCore::IOSApplication::isMobileSafari();
</ins><span class="cx"> 
</span><span class="cx">     MemoryPressureHandler::singleton().installMemoryReleaseBlock(^{
</span><span class="cx">         [WebView _handleMemoryWarning];
</span><span class="lines">@@ -2148,7 +2151,7 @@
</span><span class="cx"> 
</span><span class="cx"> - (BOOL)_needsKeyboardEventDisambiguationQuirks
</span><span class="cx"> {
</span><del>-    static BOOL needsQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_IE_COMPATIBLE_KEYBOARD_EVENT_DISPATCH) &amp;&amp; !applicationIsSafari();
</del><ins>+    static BOOL needsQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_IE_COMPATIBLE_KEYBOARD_EVENT_DISPATCH) &amp;&amp; !MacApplication::isSafari();
</ins><span class="cx">     return needsQuirks;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2160,7 +2163,7 @@
</span><span class="cx"> 
</span><span class="cx"> static bool needsSelfRetainWhileLoadingQuirk()
</span><span class="cx"> {
</span><del>-    static bool needsQuirk = applicationIsAperture();
</del><ins>+    static bool needsQuirk = MacApplication::isAperture();
</ins><span class="cx">     return needsQuirk;
</span><span class="cx"> }
</span><span class="cx"> #endif // !PLATFORM(IOS)
</span><span class="lines">@@ -2175,10 +2178,10 @@
</span><span class="cx">     // &lt;https://bugs.webkit.org/show_bug.cgi?id=46134&gt; and
</span><span class="cx">     // &lt;https://bugs.webkit.org/show_bug.cgi?id=46334&gt;.
</span><span class="cx">     static bool isApplicationNeedingParserQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER)
</span><del>-        &amp;&amp; (applicationIsAOLInstantMessenger() || applicationIsMicrosoftMyDay());
</del><ins>+        &amp;&amp; (MacApplication::isAOLInstantMessenger() || MacApplication::isMicrosoftMyDay());
</ins><span class="cx">     
</span><span class="cx">     // Mail.app must continue to display HTML email that contains quirky markup.
</span><del>-    static bool isAppleMail = applicationIsAppleMail();
</del><ins>+    static bool isAppleMail = MacApplication::isAppleMail();
</ins><span class="cx"> 
</span><span class="cx">     return isApplicationNeedingParserQuirks
</span><span class="cx">         || isAppleMail
</span><span class="lines">@@ -2189,7 +2192,7 @@
</span><span class="cx"> #endif
</span><span class="cx">         || [[self preferences] usePreHTML5ParserQuirks];
</span><span class="cx"> #else
</span><del>-    static bool isApplicationNeedingParserQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER) &amp;&amp; applicationIsDaijisenDictionary();
</del><ins>+    static bool isApplicationNeedingParserQuirks = !WebKitLinkedOnOrAfter(WEBKIT_FIRST_VERSION_WITH_HTML5_PARSER) &amp;&amp; IOSApplication::isDaijisenDictionary();
</ins><span class="cx">     return isApplicationNeedingParserQuirks || [[self preferences] usePreHTML5ParserQuirks];
</span><span class="cx"> #endif
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/ChangeLog        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2016-03-05  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
+        https://bugs.webkit.org/show_bug.cgi?id=155035
+
+        Reviewed by Darin Adler.
+
+        Update runtime application checks.
+
+        * UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm:
+        (API::WebsiteDataStore::defaultApplicationCacheDirectory):
+        * UIProcess/Cocoa/VersionChecks.mm:
+        (WebKit::linkedOnOrAfter):
+        * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
+        (WebKit::WebProcessPool::platformInitializeWebProcess):
+        (WebKit::WebProcessPool::legacyPlatformDefaultApplicationCacheDirectory):
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        * UIProcess/mac/WebPageProxyMac.mm:
+        (WebKit::expectsLegacyImplicitRubberBandControl):
+        (WebKit::WebPageProxy::appleMailPaginationQuirkEnabled):
+
</ins><span class="cx"> 2016-03-05  Sam Weinig  &lt;sam@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Add support for processing the autofill field name out of form control elements ultimately to aid input methods
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaAPIWebsiteDataStoreCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/APIWebsiteDataStoreCocoa.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> #include &quot;SandboxUtilities.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#import &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#import &lt;WebCore/RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> namespace API {
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx">     // Preserving it avoids the need to migrate data when upgrading.
</span><span class="cx">     // FIXME: Ideally we should just have Safari and WebApp create a data store with
</span><span class="cx">     // this application cache path, but that's not supported as of right now.
</span><del>-    if (WebCore::applicationIsMobileSafari() || WebCore::applicationIsWebApp()) {
</del><ins>+    if (WebCore::IOSApplication::isMobileSafari() || WebCore::IOSApplication::isWebApp()) {
</ins><span class="cx">         NSString *cachePath = [NSHomeDirectory() stringByAppendingPathComponent:@&quot;Library/Caches/com.apple.WebAppCache&quot;];
</span><span class="cx"> 
</span><span class="cx">         return WebKit::stringByResolvingSymlinksInPath(cachePath.stringByStandardizingPath);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaVersionChecksmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/VersionChecks.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/VersionChecks.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/VersionChecks.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx"> #import &lt;mach-o/dyld.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#import &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#import &lt;WebCore/RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> namespace WebKit {
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> {
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     // Always make new features available for Safari.
</span><del>-    if (WebCore::applicationIsMobileSafari())
</del><ins>+    if (WebCore::IOSApplication::isMobileSafari())
</ins><span class="cx">         return true;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaWebProcessPoolCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -52,7 +52,6 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx"> #import &quot;ArgumentCodersCF.h&quot;
</span><span class="cx"> #import &quot;WebMemoryPressureHandlerIOS.h&quot;
</span><del>-#import &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><span class="cx"> #else
</span><span class="cx"> #import &lt;QuartzCore/CARemoteLayerServer.h&gt;
</span><span class="cx"> #endif
</span><span class="lines">@@ -180,7 +179,7 @@
</span><span class="cx">     parameters.shouldSuppressMemoryPressureHandler = [defaults boolForKey:WebKitSuppressMemoryPressureHandlerDefaultsKey];
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(MAC)
</span><del>-    parameters.shouldRewriteConstAsVar = applicationIsIBooks();
</del><ins>+    parameters.shouldRewriteConstAsVar = MacApplication::isIBooks();
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #if HAVE(HOSTED_CORE_ANIMATION)
</span><span class="lines">@@ -365,7 +364,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     // This quirk used to make these apps share application cache storage, but doesn't accomplish that any more.
</span><span class="cx">     // Preserving it avoids the need to migrate data when upgrading.
</span><del>-    if (applicationIsMobileSafari() || applicationIsWebApp())
</del><ins>+    if (IOSApplication::isMobileSafari() || IOSApplication::isWebApp())
</ins><span class="cx">         appName = @&quot;com.apple.WebAppCache&quot;;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessiosWKContentViewInteractionmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx"> #import &lt;WebCore/Pasteboard.h&gt;
</span><span class="cx"> #import &lt;WebCore/Path.h&gt;
</span><span class="cx"> #import &lt;WebCore/PathUtilities.h&gt;
</span><del>-#import &lt;WebCore/RuntimeApplicationChecksIOS.h&gt;
</del><ins>+#import &lt;WebCore/RuntimeApplicationChecks.h&gt;
</ins><span class="cx"> #import &lt;WebCore/Scrollbar.h&gt;
</span><span class="cx"> #import &lt;WebCore/SoftLinking.h&gt;
</span><span class="cx"> #import &lt;WebCore/TextIndicator.h&gt;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWebPageProxyMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm (197627 => 197628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm        2016-03-06 03:10:21 UTC (rev 197627)
+++ trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm        2016-03-06 03:28:54 UTC (rev 197628)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> 
</span><span class="cx"> static inline bool expectsLegacyImplicitRubberBandControl()
</span><span class="cx"> {
</span><del>-    if (applicationIsSafari()) {
</del><ins>+    if (MacApplication::isSafari()) {
</ins><span class="cx">         const int32_t firstVersionOfSafariNotExpectingImplicitRubberBandControl = 0x021A0F00; // 538.15.0
</span><span class="cx">         bool linkedAgainstSafariExpectingImplicitRubberBandControl = NSVersionOfLinkTimeLibrary(&quot;Safari&quot;) &lt; firstVersionOfSafariNotExpectingImplicitRubberBandControl;
</span><span class="cx">         return linkedAgainstSafariExpectingImplicitRubberBandControl;
</span><span class="lines">@@ -547,7 +547,7 @@
</span><span class="cx"> 
</span><span class="cx"> bool WebPageProxy::appleMailPaginationQuirkEnabled()
</span><span class="cx"> {
</span><del>-    return applicationIsAppleMail();
</del><ins>+    return MacApplication::isAppleMail();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebPageProxy::setFont(const String&amp; fontFamily, double fontSize, uint64_t fontTraits)
</span></span></pre>
</div>
</div>

</body>
</html>