Unreviewed build fix after http://trac.webkit.org/changeset/195474.
authorenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jan 2016 22:42:28 +0000 (22:42 +0000)
committerenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jan 2016 22:42:28 +0000 (22:42 +0000)
* WebKitTestRunner/cocoa/TestControllerCocoa.mm:
(WTR::TestController::platformCreateWebView):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195481 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm

index d4b3407..a0c8af7 100644 (file)
@@ -1,3 +1,10 @@
+2016-01-22  Enrica Casucci  <enrica@apple.com>
+
+        Unreviewed build fix after http://trac.webkit.org/changeset/195474.
+
+        * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
+        (WTR::TestController::platformCreateWebView):
+
 2016-01-22  Tim Horton  <timothy_horton@apple.com>
 
         Reproducible "Unhanded web process message 'WebUserContentController:AddUserScripts'" and friends
index 75725e7..8d61334 100644 (file)
@@ -79,11 +79,15 @@ WKPreferencesRef TestController::platformPreferences()
 
 void TestController::platformCreateWebView(WKPageConfigurationRef, const TestOptions& options)
 {
+#if WK_API_ENABLED
     RetainPtr<WKWebViewConfiguration> copiedConfiguration = adoptNS([globalWebViewConfiguration copy]);
     if (options.useDataDetection)
         [copiedConfiguration setDataDetectorTypes:WKDataDetectorTypeAll];
 
     m_mainWebView = std::make_unique<PlatformWebView>(copiedConfiguration.get(), options);
+#else
+    m_mainWebView = std::make_unique<PlatformWebView>(globalWebViewConfiguration, options);
+#endif
 }
 
 PlatformWebView* TestController::platformCreateOtherPage(PlatformWebView* parentView, WKPageConfigurationRef, const TestOptions& options)