Changeset 80546 in webkit


Ignore:
Timestamp:
Mar 8, 2011 12:10:04 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-03-08 Zan Dobersek <zandobersek@gmail.com>

Reviewed by Martin Robinson.

[Gtk] toDataURL uses incorrect quality value when saving GdkPixbuf to buffer
https://bugs.webkit.org/show_bug.cgi?id=55878

Enable a passing test now that we properly use the quality value when requesting
a GdkPixbuf to be saved into a buffer.

  • platform/gtk/Skipped:

2011-03-08 Zan Dobersek <zandobersek@gmail.com>

Reviewed by Martin Robinson.

[Gtk] toDataURL uses incorrect quality value when saving GdkPixbuf to buffer
https://bugs.webkit.org/show_bug.cgi?id=55878

Multiply the quality parameter by 100 to put it in the range [0, 100] as needed
when saving GdkPixbuf to a buffer.

  • platform/graphics/gtk/ImageBufferGtk.cpp: (WebCore::ImageBuffer::toDataURL):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r80545 r80546  
     12011-03-08  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [Gtk] toDataURL uses incorrect quality value when saving GdkPixbuf to buffer
     6        https://bugs.webkit.org/show_bug.cgi?id=55878
     7
     8        Enable a passing test now that we properly use the quality value when requesting
     9        a GdkPixbuf to be saved into a buffer.
     10
     11        * platform/gtk/Skipped:
     12
    1132011-03-07  Fumitoshi Ukai  <ukai@chromium.org>
    214
  • trunk/LayoutTests/platform/gtk/Skipped

    r80536 r80546  
    10021002canvas/philip/tests/2d.pattern.paint.repeaty.coord1.html
    10031003canvas/philip/tests/2d.pattern.paint.repeaty.outside.html
    1004 canvas/philip/tests/toDataURL.jpeg.quality.basic.html
    10051004
    10061005# Failing tests after sync with Philip Taylor's upstream tests
  • trunk/Source/WebCore/ChangeLog

    r80544 r80546  
     12011-03-08  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [Gtk] toDataURL uses incorrect quality value when saving GdkPixbuf to buffer
     6        https://bugs.webkit.org/show_bug.cgi?id=55878
     7
     8        Multiply the quality parameter by 100 to put it in the range [0, 100] as needed
     9        when saving GdkPixbuf to a buffer.
     10
     11        * platform/graphics/gtk/ImageBufferGtk.cpp:
     12        (WebCore::ImageBuffer::toDataURL):
     13
    1142011-03-07  Daniel Cheng  <dcheng@chromium.org>
    215
  • trunk/Source/WebCore/platform/graphics/gtk/ImageBufferGtk.cpp

    r75009 r80546  
    5555    gboolean success = FALSE;
    5656    if (type == "jpeg" && quality && *quality >= 0.0 && *quality <= 1.0) {
    57         String qualityString = String::format("%f", *quality);
     57        String qualityString = String::format("%f", *quality * 100.0);
    5858        success = gdk_pixbuf_save_to_buffer(pixbuf.get(), &buffer.outPtr(), &bufferSize,
    5959            type.utf8().data(), &error, "quality", qualityString.utf8().data(), NULL);
Note: See TracChangeset for help on using the changeset viewer.