Title: [213893] trunk/Source/WebCore
Revision
213893
Author
[email protected]
Date
2017-03-14 01:30:32 -0700 (Tue, 14 Mar 2017)

Log Message

[GLib] Use USE(GLIB) guards in WebCore/workers/
https://bugs.webkit.org/show_bug.cgi?id=169595

Reviewed by Carlos Garcia Campos.

Utilize the USE(GLIB) build guards in the WorkerRunLoop and WorkerThread
class implementations to guard GLib-specific header inclusions and GLib
API invocations, instead of the more specific PLATFORM(GTK) guards.

* workers/WorkerRunLoop.cpp:
(WebCore::WorkerRunLoop::runInMode):
* workers/WorkerThread.cpp:
(WebCore::WorkerThread::workerThread):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (213892 => 213893)


--- trunk/Source/WebCore/ChangeLog	2017-03-14 08:29:31 UTC (rev 213892)
+++ trunk/Source/WebCore/ChangeLog	2017-03-14 08:30:32 UTC (rev 213893)
@@ -1,5 +1,21 @@
 2017-03-14  Zan Dobersek  <[email protected]>
 
+        [GLib] Use USE(GLIB) guards in WebCore/workers/
+        https://bugs.webkit.org/show_bug.cgi?id=169595
+
+        Reviewed by Carlos Garcia Campos.
+
+        Utilize the USE(GLIB) build guards in the WorkerRunLoop and WorkerThread
+        class implementations to guard GLib-specific header inclusions and GLib
+        API invocations, instead of the more specific PLATFORM(GTK) guards.
+
+        * workers/WorkerRunLoop.cpp:
+        (WebCore::WorkerRunLoop::runInMode):
+        * workers/WorkerThread.cpp:
+        (WebCore::WorkerThread::workerThread):
+
+2017-03-14  Zan Dobersek  <[email protected]>
+
         [Soup] Suppress compiler warnings in NetworkStorageSession
         https://bugs.webkit.org/show_bug.cgi?id=169593
 

Modified: trunk/Source/WebCore/workers/WorkerRunLoop.cpp (213892 => 213893)


--- trunk/Source/WebCore/workers/WorkerRunLoop.cpp	2017-03-14 08:29:31 UTC (rev 213892)
+++ trunk/Source/WebCore/workers/WorkerRunLoop.cpp	2017-03-14 08:30:32 UTC (rev 213893)
@@ -40,7 +40,7 @@
 #include "WorkerThread.h"
 #include <wtf/CurrentTime.h>
 
-#if PLATFORM(GTK)
+#if USE(GLIB)
 #include <glib.h>
 #endif
 
@@ -152,7 +152,7 @@
     ASSERT(context);
     ASSERT(context->thread().threadID() == currentThread());
 
-#if PLATFORM(GTK)
+#if USE(GLIB)
     GMainContext* mainContext = g_main_context_get_thread_default();
     if (g_main_context_pending(mainContext))
         g_main_context_iteration(mainContext, FALSE);

Modified: trunk/Source/WebCore/workers/WorkerThread.cpp (213892 => 213893)


--- trunk/Source/WebCore/workers/WorkerThread.cpp	2017-03-14 08:29:31 UTC (rev 213892)
+++ trunk/Source/WebCore/workers/WorkerThread.cpp	2017-03-14 08:30:32 UTC (rev 213893)
@@ -47,7 +47,7 @@
 #include "WebCoreThread.h"
 #endif
 
-#if PLATFORM(GTK)
+#if USE(GLIB)
 #include <wtf/glib/GRefPtr.h>
 #endif
 
@@ -156,7 +156,7 @@
     FloatingPointEnvironment::singleton().propagateMainThreadEnvironment();
 #endif
 
-#if PLATFORM(GTK)
+#if USE(GLIB)
     GRefPtr<GMainContext> mainContext = adoptGRef(g_main_context_new());
     g_main_context_push_thread_default(mainContext.get());
 #endif
@@ -189,7 +189,7 @@
 
     runEventLoop();
 
-#if PLATFORM(GTK)
+#if USE(GLIB)
     g_main_context_pop_thread_default(mainContext.get());
 #endif
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to