Changeset 80546 in webkit
- Timestamp:
- Mar 8, 2011 12:10:04 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r80545 r80546 1 2011-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 1 13 2011-03-07 Fumitoshi Ukai <ukai@chromium.org> 2 14 -
trunk/LayoutTests/platform/gtk/Skipped
r80536 r80546 1002 1002 canvas/philip/tests/2d.pattern.paint.repeaty.coord1.html 1003 1003 canvas/philip/tests/2d.pattern.paint.repeaty.outside.html 1004 canvas/philip/tests/toDataURL.jpeg.quality.basic.html1005 1004 1006 1005 # Failing tests after sync with Philip Taylor's upstream tests -
trunk/Source/WebCore/ChangeLog
r80544 r80546 1 2011-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 1 14 2011-03-07 Daniel Cheng <dcheng@chromium.org> 2 15 -
trunk/Source/WebCore/platform/graphics/gtk/ImageBufferGtk.cpp
r75009 r80546 55 55 gboolean success = FALSE; 56 56 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); 58 58 success = gdk_pixbuf_save_to_buffer(pixbuf.get(), &buffer.outPtr(), &bufferSize, 59 59 type.utf8().data(), &error, "quality", qualityString.utf8().data(), NULL);
Note: See TracChangeset
for help on using the changeset viewer.