[chromium] Use data decoding swizzle for turbo JPEG grayscale images
authornoel.gordon@gmail.com <noel.gordon@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jan 2012 06:09:11 +0000 (06:09 +0000)
committernoel.gordon@gmail.com <noel.gordon@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jan 2012 06:09:11 +0000 (06:09 +0000)
commit878047e7bac92ff2ef2a6c7d9946315cc2d1e300
tree51ddfcf40d7b86c12d54da6093e5a257ced0d587
parenta608fc6736cc7d77230dc465c1a971b981ea1722
[chromium] Use data decoding swizzle for turbo JPEG grayscale images
https://bugs.webkit.org/show_bug.cgi?id=75189

Reviewed by Adam Barth.

No new tests.  Covered by exiting tests, in particular for grayscale
images that were corrupted by earlier versions on libjpeg-turbo:

tables/mozilla/bugs/bug29314.html
tables/mozilla/bugs/bug13169.html
tables/mozilla/bugs/bug10565.html
tables/mozilla/bugs/bug11026.html
fast/repaint/backgroundSizeRepaint.html
fast/repaint/block-layout-inline-children-replaced.html
fast/repaint/clipped-relative.html
fast/repaint/selected-replaced.html
tables/mozilla/bugs/bug12908-1.html

* platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
(WebCore::JPEGImageReader::decode):  Use a data decoding swizzle for
JCS_GRAYSCALE images.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp