Title: [155329] trunk/Source/WebCore
Revision
155329
Author
[email protected]
Date
2013-09-09 00:31:39 -0700 (Mon, 09 Sep 2013)

Log Message

[GTK]  ghost cursor when mouse hovers over an image file in a tab
https://bugs.webkit.org/show_bug.cgi?id=120675

Reviewed by Carlos Garcia Campos.

No new tests, covered by existing.

* platform/gtk/CursorGtk.cpp:
(WebCore::createNamedCursor): Use new gdk_cursor_new_from_surface()
when compiling against GTK+ 3.9.12 or newer.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (155328 => 155329)


--- trunk/Source/WebCore/ChangeLog	2013-09-09 07:28:33 UTC (rev 155328)
+++ trunk/Source/WebCore/ChangeLog	2013-09-09 07:31:39 UTC (rev 155329)
@@ -1,3 +1,16 @@
+2013-09-09  Claudio Saavedra  <[email protected]>
+
+        [GTK]  ghost cursor when mouse hovers over an image file in a tab
+        https://bugs.webkit.org/show_bug.cgi?id=120675
+
+        Reviewed by Carlos Garcia Campos.
+
+        No new tests, covered by existing.
+
+        * platform/gtk/CursorGtk.cpp:
+        (WebCore::createNamedCursor): Use new gdk_cursor_new_from_surface()
+        when compiling against GTK+ 3.9.12 or newer.
+
 2013-09-08  Santosh Mahto  <[email protected]>
 
         HTMLDocument.h : Removing unnecessary forward declaration.

Modified: trunk/Source/WebCore/platform/gtk/CursorGtk.cpp (155328 => 155329)


--- trunk/Source/WebCore/platform/gtk/CursorGtk.cpp	2013-09-09 07:28:33 UTC (rev 155328)
+++ trunk/Source/WebCore/platform/gtk/CursorGtk.cpp	2013-09-09 07:31:39 UTC (rev 155329)
@@ -54,8 +54,12 @@
     cairo_set_source_surface(cr.get(), source.get(), 0, 0);
     cairo_mask_surface(cr.get(), mask.get(), 0, 0);
 
+#if GTK_CHECK_VERSION(3, 9, 12)
+    return adoptGRef(gdk_cursor_new_from_surface(gdk_display_get_default(), surface.get(), cursor.hot_x, cursor.hot_y));
+#else
     GRefPtr<GdkPixbuf> pixbuf = adoptGRef(gdk_pixbuf_get_from_surface(surface.get(), 0, 0, 32, 32));
     return adoptGRef(gdk_cursor_new_from_pixbuf(gdk_display_get_default(), pixbuf.get(), cursor.hot_x, cursor.hot_y));
+#endif
 }
 
 static GRefPtr<GdkCursor> createCustomCursor(Image* image, const IntPoint& hotSpot)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to