2011-02-04 Hironori Bono <hbono@chromium.org>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 03:05:47 +0000 (03:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 03:05:47 +0000 (03:05 +0000)
commitb4c8e6ec7ed200fd592c41cbc8b35f317d32625f
treed4bb50e477188fd9ae38398c67d37d26fb941dbb
parent5a85e5cc8b39fd0a93b6ec6ab7c537725557cfcf
2011-02-04  Hironori Bono  <hbono@chromium.org>

        Reviewed by Adam Barth.

        [chromium] JPEG corruption
        https://bugs.webkit.org/show_bug.cgi?id=53250

        This change adds a new script test that we can render a CMYK JPEG with a
        color profile correctly, i.e. we can render it without color corruption.

        * fast/images/cmyk-jpeg-with-color-profile-expected.txt: Added.
        * fast/images/cmyk-jpeg-with-color-profile.html: Added.
        * fast/images/resources/cmyk-jpeg.jpg: Added.
        * fast/images/script-tests/cmyk-jpeg-with-color-profile.js: Added.
        (image.onload):
2011-02-04  Hironori Bono  <hbono@chromium.org>

        Reviewed by Adam Barth.

        [chromium] JPEG corruption
        https://bugs.webkit.org/show_bug.cgi?id=53250

        Same as gray-scale JPEGs, we convert the colors of CMYK JPEGs with color
        profiles from CMYK to RGB twice and it causes color corruption. This
        change suppresses the color profiles for CMYK JPEGs same as gray-scale
        ones.

        Test: fast/images/cmyk-jpeg-with-color-profile.html

        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
        (WebCore::JPEGImageReader::decode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/images/cmyk-jpeg-with-color-profile-expected.txt [new file with mode: 0644]
LayoutTests/fast/images/cmyk-jpeg-with-color-profile.html [new file with mode: 0644]
LayoutTests/fast/images/resources/cmyk-jpeg.jpg [new file with mode: 0755]
LayoutTests/fast/images/script-tests/cmyk-jpeg-with-color-profile.js [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp