[GLib] Use USE(GLIB) guards in JavaScriptCore/inspector/EventLoop.cpp
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Mar 2017 08:29:31 +0000 (08:29 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Mar 2017 08:29:31 +0000 (08:29 +0000)
https://bugs.webkit.org/show_bug.cgi?id=169594

Reviewed by Carlos Garcia Campos.

Instead of PLATFORM(GTK) guards, utilize the USE(GLIB) build guards
to guard the GLib-specific includes and invocations in the JSC
inspector's EventLoop class implementation.

* inspector/EventLoop.cpp:
(Inspector::EventLoop::cycle):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/EventLoop.cpp

index d696006..ab191eb 100644 (file)
@@ -1,3 +1,17 @@
+2017-03-14  Zan Dobersek  <zdobersek@igalia.com>
+
+        [GLib] Use USE(GLIB) guards in JavaScriptCore/inspector/EventLoop.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=169594
+
+        Reviewed by Carlos Garcia Campos.
+
+        Instead of PLATFORM(GTK) guards, utilize the USE(GLIB) build guards
+        to guard the GLib-specific includes and invocations in the JSC
+        inspector's EventLoop class implementation.
+
+        * inspector/EventLoop.cpp:
+        (Inspector::EventLoop::cycle):
+
 2017-03-13  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [JSC][Linux] Implement VMTrap in Linux ports
index 1995b1d..7af75c1 100644 (file)
@@ -28,7 +28,7 @@
 
 #if OS(WINDOWS)
 #include <windows.h>
-#elif PLATFORM(GTK)
+#elif USE(GLIB)
 #include <glib.h>
 #endif
 
@@ -65,7 +65,7 @@ void EventLoop::cycle()
     // paused and can still access and evalute script in the JSContext.
     CFTimeInterval timeInterval = 0.05;
     CFRunLoopRunInMode(remoteInspectorRunLoopMode(), timeInterval, true);
-#elif PLATFORM(GTK)
+#elif USE(GLIB)
     g_main_context_iteration(NULL, FALSE);
 #endif
 }