Currently, this method is implemented via Cairo, and so does not have access to the richer set of image types that GdkPixbuf supports. Unfortunately, GdkPixbuf cannot write GIF files, so that format will still be unsupported.
Created attachment 62763 [details] Use GdkPixbuf for toDataURL
Attachment 62763 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebCore/platform/graphics/gtk/CairoUtilities.h:29: cairo_surface_t is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] WebCore/platform/graphics/gtk/ImageBufferGtk.cpp:64: Use 0 instead of NULL. [readability/null] [5] WebCore/platform/graphics/gtk/ImageBufferGtk.cpp:66: Use 0 instead of NULL. [readability/null] [5] Total errors found: 3 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
The first error is a false positive, because I just add the cairo typedef to avoid the include. The second error I've filed a bug for here: https://bugs.webkit.org/show_bug.cgi?id=43090
Comment on attachment 62763 [details] Use GdkPixbuf for toDataURL The code in ImageBufferGtk should probably be LGPL, but other than that it looks OK.
Committed r64506: <http://trac.webkit.org/changeset/64506>
http://trac.webkit.org/changeset/64506 might have broken GTK Linux 64-bit Debug The following changes are on the blame list: http://trac.webkit.org/changeset/64506 http://trac.webkit.org/changeset/64507
Committed r64521: <http://trac.webkit.org/changeset/64521>
http://trac.webkit.org/changeset/64521 might have broken Leopard Intel Debug (Tests) The following changes are on the blame list: http://trac.webkit.org/changeset/64517 http://trac.webkit.org/changeset/64518 http://trac.webkit.org/changeset/64519 http://trac.webkit.org/changeset/64520 http://trac.webkit.org/changeset/64521 http://trac.webkit.org/changeset/64522 http://trac.webkit.org/changeset/64523 http://trac.webkit.org/changeset/64524 http://trac.webkit.org/changeset/64525 http://trac.webkit.org/changeset/64526 http://trac.webkit.org/changeset/64527