Title: [223502] trunk/Tools
Revision
223502
Author
tpop...@redhat.com
Date
2017-10-17 02:38:54 -0700 (Tue, 17 Oct 2017)

Log Message

Undefined WK_API_ENABLED warning when compiling COCOA content on WebKitGTK+
https://bugs.webkit.org/show_bug.cgi?id=178208

Check whether we are on COCOA platform before checking for
WK_API_ENABLED.

Reviewed by Ryosuke Niwa.

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::clearDOMCache):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (223501 => 223502)


--- trunk/Tools/ChangeLog	2017-10-17 09:30:44 UTC (rev 223501)
+++ trunk/Tools/ChangeLog	2017-10-17 09:38:54 UTC (rev 223502)
@@ -1,3 +1,16 @@
+2017-10-17  Tomas Popela  <tpop...@redhat.com>
+
+        Undefined WK_API_ENABLED warning when compiling COCOA content on WebKitGTK+
+        https://bugs.webkit.org/show_bug.cgi?id=178208
+
+        Check whether we are on COCOA platform before checking for
+        WK_API_ENABLED.
+
+        Reviewed by Ryosuke Niwa.
+
+        * WebKitTestRunner/TestController.cpp:
+        (WTR::TestController::clearDOMCache):
+
 2017-10-17  Keith Miller  <keith_mil...@apple.com>
 
         Change WebCore sources to work with unified source builds

Modified: trunk/Tools/WebKitTestRunner/TestController.cpp (223501 => 223502)


--- trunk/Tools/WebKitTestRunner/TestController.cpp	2017-10-17 09:30:44 UTC (rev 223501)
+++ trunk/Tools/WebKitTestRunner/TestController.cpp	2017-10-17 09:38:54 UTC (rev 223502)
@@ -2299,7 +2299,7 @@
 
 #endif
 
-#if WK_API_ENABLED
+#if PLATFORM(COCOA) && WK_API_ENABLED
 struct ClearDOMCacheCallbackContext {
     explicit ClearDOMCacheCallbackContext(TestController& controller)
         : testController(controller)
@@ -2320,7 +2320,7 @@
 
 void TestController::clearDOMCache(WKStringRef origin)
 {
-#if WK_API_ENABLED
+#if PLATFORM(COCOA) && WK_API_ENABLED
     auto websiteDataStore = WKContextGetWebsiteDataStore(platformContext());
     ClearDOMCacheCallbackContext context(*this);
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to