2015-11-03 Geoffrey Garen <ggaren@apple.com>
[WebKit-https.git] / Source / WebKit2 / UIProcess / Cocoa / WebProcessPoolCocoa.mm
index e32f3a0c99f2562195b2c95a255ed06daebdccb7..424b99718df40778a4e69e98b8562f95f77b02ac 100644 (file)
@@ -44,6 +44,7 @@
 #import <WebCore/NotImplemented.h>
 #import <WebCore/PlatformPasteboard.h>
 #import <WebCore/SharedBuffer.h>
+#import <WebCore/RuntimeApplicationChecks.h>
 #import <sys/param.h>
 
 #if ENABLE(NETWORK_PROCESS)
@@ -174,6 +175,10 @@ void WebProcessPool::platformInitializeWebProcess(WebProcessCreationParameters&
     parameters.shouldEnableFTLJIT = [[NSUserDefaults standardUserDefaults] boolForKey:WebKitJSCFTLJITEnabledDefaultsKey];
     parameters.shouldEnableMemoryPressureReliefLogging = [[NSUserDefaults standardUserDefaults] boolForKey:@"LogMemoryJetsamDetails"];
 
+#if PLATFORM(MAC)
+    parameters.shouldRewriteConstAsVar = applicationIsIBooks();
+#endif
+
 #if HAVE(HOSTED_CORE_ANIMATION)
 #if !PLATFORM(IOS)
     parameters.acceleratedCompositingPort = MachSendRight::create([CARemoteLayerServer sharedServer].serverPort);