Changeset 73330 in webkit
- Timestamp:
- Dec 4, 2010 6:37:45 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r73323 r73330 1 2010-12-04 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Martin Robinson. 4 5 [GTK] Drop GdkDrawable usage, it's deprecated in GTK+3.x and we can use GdkWindow 6 https://bugs.webkit.org/show_bug.cgi?id=50451 7 8 * wtf/gobject/GTypedefs.h: add GdkWindow defines. 9 1 10 2010-12-03 Gavin Barraclough <barraclough@apple.com> 2 11 -
trunk/JavaScriptCore/wtf/gobject/GTypedefs.h
r70257 r73330 45 45 typedef struct _GdkCursor GdkCursor; 46 46 typedef struct _GdkDragContext GdkDragContext; 47 typedef struct _GdkDrawable GdkDrawable;48 47 typedef struct _GdkEventConfigure GdkEventConfigure; 49 48 typedef struct _GdkEventExpose GdkEventExpose; … … 86 85 #ifdef GTK_API_VERSION_2 87 86 typedef struct _GdkRectangle GdkRectangle; 87 typedef struct _GdkDrawable GdkWindow; 88 88 #else 89 typedef struct _GdkWindow GdkWindow; 89 90 typedef struct _cairo_rectangle_int cairo_rectangle_int_t; 90 91 typedef cairo_rectangle_int_t GdkRectangle; -
trunk/WebCore/ChangeLog
r73319 r73330 1 2010-12-04 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Martin Robinson. 4 5 [GTK] Drop GdkDrawable usage, it's deprecated in GTK+3.x and we can use GdkWindow 6 https://bugs.webkit.org/show_bug.cgi?id=50451 7 8 GdkDrawable has been removed in GTK+3.x. To cope with this we can 9 actually stop using it altogether, since GdkWindow is just a 10 typedef for it and that seems to be good enough for us. 11 12 * platform/graphics/GraphicsContext.h: s/GdkDrawable/GdkWindow/. 13 * platform/graphics/cairo/GraphicsContextCairo.cpp: 14 (WebCore::GraphicsContext::gdkWindow): ditto. 15 * platform/gtk/GtkVersioning.h: declare GDK_WINDOW_XWINDOW for GTK 3.x builds. 16 * platform/gtk/PlatformScreenGtk.cpp: 17 (WebCore::screenAvailableRect): s/GdkDrawable/GdkWindow/. 18 * platform/gtk/WidgetGtk.cpp: 19 (WebCore::gdkWindow): ditto. 20 (WebCore::Widget::setCursor): ditto. 21 * platform/gtk/WidgetRenderingContextGtk2.cpp: ditto. 22 1 23 2010-12-03 Dimitri Glazkov <dglazkov@chromium.org> 2 24 -
trunk/WebCore/platform/Widget.h
r70153 r73330 61 61 62 62 #if PLATFORM(GTK) 63 typedef struct _GdkDrawable GdkDrawable;64 63 typedef struct _GtkWidget GtkWidget; 65 64 typedef struct _GtkContainer GtkContainer; -
trunk/WebCore/platform/graphics/GraphicsContext.h
r73284 r73330 90 90 #endif 91 91 92 #if PLATFORM(GTK)93 typedef struct _GdkDrawable GdkDrawable;94 typedef struct _GdkEventExpose GdkEventExpose;95 #endif96 97 92 #if PLATFORM(WIN) 98 93 typedef struct HDC__* HDC; … … 408 403 #if PLATFORM(GTK) 409 404 void setGdkExposeEvent(GdkEventExpose*); 410 Gdk Drawable* gdkDrawable() const;405 GdkWindow* gdkWindow() const; 411 406 GdkEventExpose* gdkExposeEvent() const; 412 407 #endif -
trunk/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
r72926 r73330 1086 1086 } 1087 1087 1088 Gdk Drawable* GraphicsContext::gdkDrawable() const1088 GdkWindow* GraphicsContext::gdkWindow() const 1089 1089 { 1090 1090 if (!m_data->expose) 1091 1091 return 0; 1092 1092 1093 return GDK_DRAWABLE(m_data->expose->window);1093 return m_data->expose->window; 1094 1094 } 1095 1095 #endif -
trunk/WebCore/platform/gtk/GtkVersioning.h
r72722 r73330 33 33 #ifndef GTK_API_VERSION_2 34 34 #define GDK_DISPLAY() (GDK_DISPLAY_XDISPLAY(gdk_display_get_default())) 35 #define GDK_WINDOW_XWINDOW(window) (gdk_x11_window_get_xid(window)) 35 36 #else 36 37 GdkPixbuf* gdk_pixbuf_get_from_surface(cairo_surface_t* surface, int srcX, int srcY, -
trunk/WebCore/platform/gtk/PlatformScreenGtk.cpp
r69293 r73330 122 122 return screenRect(widget); 123 123 124 Gdk Drawable* rootWindow = GDK_DRAWABLE(gtk_widget_get_root_window(container));124 GdkWindow* rootWindow = gtk_widget_get_root_window(container); 125 125 GdkDisplay* display = gdk_window_get_display(rootWindow); 126 126 Atom xproperty = gdk_x11_get_xatom_by_name_for_display(display, "_NET_WORKAREA"); -
trunk/WebCore/platform/gtk/WidgetGtk.cpp
r64526 r73330 61 61 } 62 62 63 static Gdk Drawable* gdkDrawable(PlatformWidget widget)63 static GdkWindow* gdkWindow(PlatformWidget widget) 64 64 { 65 65 return widget ? gtk_widget_get_window(widget) : 0; … … 79 79 return; 80 80 81 gdk_window_set_cursor(gdk Drawable(platformWidget()) ? GDK_WINDOW(gdkDrawable(platformWidget())) : gtk_widget_get_window(GTK_WIDGET(root()->hostWindow()->platformPageClient())), platformCursor);81 gdk_window_set_cursor(gdkWindow(platformWidget()) ? gdkWindow(platformWidget()) : gtk_widget_get_window(GTK_WIDGET(root()->hostWindow()->platformPageClient())), platformCursor); 82 82 lastSetCursor = platformCursor; 83 83 } -
trunk/WebCore/platform/gtk/WidgetRenderingContextGtk2.cpp
r71791 r73330 90 90 // to a temporary surface and preserve transparency. To ensure decent widget rendering, just 91 91 // paint directly to the target drawable. This will not render CSS rotational transforms properly. 92 if (!theme->m_themePartsHaveRGBAColormap && graphicsContext->gdk Drawable()) {92 if (!theme->m_themePartsHaveRGBAColormap && graphicsContext->gdkWindow()) { 93 93 m_paintRect = graphicsContext->getCTM().mapRect(targetRect); 94 m_target = graphicsContext->gdk Drawable();94 m_target = graphicsContext->gdkWindow(); 95 95 return; 96 96 } … … 132 132 // We do not need to blit back to the target in the fallback case. See above. 133 133 RenderThemeGtk* theme = static_cast<RenderThemeGtk*>(RenderTheme::defaultTheme().get()); 134 if (!theme->m_themePartsHaveRGBAColormap && m_graphicsContext->gdk Drawable())134 if (!theme->m_themePartsHaveRGBAColormap && m_graphicsContext->gdkWindow()) 135 135 return; 136 136
Note: See TracChangeset
for help on using the changeset viewer.