Title: [191338] trunk/Source/WebKit2
- Revision
- 191338
- Author
- [email protected]
- Date
- 2015-10-20 03:40:55 -0700 (Tue, 20 Oct 2015)
Log Message
[GTK] Fix build for ENABLE_PLUGIN_PROCESS_GTK2=OFF
https://bugs.webkit.org/show_bug.cgi?id=150086
Reviewed by Darin Adler.
* UIProcess/cairo/BackingStoreCairo.cpp:
(WebKit::BackingStore::createBackend):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (191337 => 191338)
--- trunk/Source/WebKit2/ChangeLog 2015-10-20 10:07:36 UTC (rev 191337)
+++ trunk/Source/WebKit2/ChangeLog 2015-10-20 10:40:55 UTC (rev 191338)
@@ -1,3 +1,13 @@
+2015-10-20 Sergio Villar Senin <[email protected]>
+
+ [GTK] Fix build for ENABLE_PLUGIN_PROCESS_GTK2=OFF
+ https://bugs.webkit.org/show_bug.cgi?id=150086
+
+ Reviewed by Darin Adler.
+
+ * UIProcess/cairo/BackingStoreCairo.cpp:
+ (WebKit::BackingStore::createBackend):
+
2015-10-20 Yoav Weiss <[email protected]>
Rename the PICTURE_SIZES flag to CURRENTSRC
Modified: trunk/Source/WebKit2/UIProcess/cairo/BackingStoreCairo.cpp (191337 => 191338)
--- trunk/Source/WebKit2/UIProcess/cairo/BackingStoreCairo.cpp 2015-10-20 10:07:36 UTC (rev 191337)
+++ trunk/Source/WebKit2/UIProcess/cairo/BackingStoreCairo.cpp 2015-10-20 10:40:55 UTC (rev 191338)
@@ -36,6 +36,10 @@
#include <WebCore/RefPtrCairo.h>
#include <cairo.h>
+#if PLATFORM(GTK)
+#include <gtk/gtk.h>
+#endif
+
#if PLATFORM(GTK) && PLATFORM(X11) && defined(GDK_WINDOWING_X11)
#include <WebCore/BackingStoreBackendCairoX11.h>
#include <WebCore/PlatformDisplayX11.h>
@@ -48,7 +52,7 @@
std::unique_ptr<BackingStoreBackendCairo> BackingStore::createBackend()
{
-#if PLATFORM(GTK) && PLATFORM(X11)
+#if PLATFORM(GTK) && PLATFORM(X11) && defined(GDK_WINDOWING_X11)
const auto& sharedDisplay = PlatformDisplay::sharedDisplay();
if (is<PlatformDisplayX11>(sharedDisplay)) {
GdkVisual* visual = gtk_widget_get_visual(m_webPageProxy.viewWidget());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes