diff options
author | Ben Murdoch <benm@google.com> | 2011-02-28 17:44:23 +0000 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-02-28 17:45:53 +0000 |
commit | 99791c639dd95c082f551a62034d8959ce2cf15a (patch) | |
tree | 0fa8274ea5b783cf270dcd7c60fda667d11af553 /WebCore/platform | |
parent | d914e54363c3b0482ac7f4843af11d1beb340afe (diff) | |
download | external_webkit-99791c639dd95c082f551a62034d8959ce2cf15a.zip external_webkit-99791c639dd95c082f551a62034d8959ce2cf15a.tar.gz external_webkit-99791c639dd95c082f551a62034d8959ce2cf15a.tar.bz2 |
Merge WebKit at Chromium 9.0.597.107: Initial merge by git.
Note that we are tracking the Chromium 9.0.597 release branch,
which is WebKit r72805 + stability cherry picks.
This corresponds to r78920 on the 597 release branch.
Change-Id: I610ebdbcba92cfa788b229ee207a405789d45e67
Diffstat (limited to 'WebCore/platform')
-rw-r--r-- | WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp index a2b9f8e..855ba24 100644 --- a/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp +++ b/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp @@ -222,6 +222,12 @@ public: // jpeglib cannot convert these to rgb, but it can convert ycck // to cmyk. m_info.out_color_space = JCS_CMYK; + + // Same as with grayscale images, we convert CMYK images to RGBA + // ones. When we keep the color profiles of these CMYK images, + // CoreGraphics will convert their colors again. So, we discard + // their color profiles to prevent color corruption. + m_decoder->setIgnoreGammaAndColorProfile(true); break; default: return m_decoder->setFailed(); |