JPEGImageDecoder: Code input color space case entries in numerical order
authornoel.gordon@gmail.com <noel.gordon@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2011 09:12:24 +0000 (09:12 +0000)
committernoel.gordon@gmail.com <noel.gordon@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2011 09:12:24 +0000 (09:12 +0000)
https://bugs.webkit.org/show_bug.cgi?id=73287

Reviewed by Adam Barth.

No new tests. Covered by existing tests.

* platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
(WebCore::JPEGImageReader::decode): JCS_YCbCr is one greater than JSC_RGB.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101461 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp

index cbd280f80226236e3a990b7d47cfa4d32203bda3..b3350d656ed1b14d57900759de77b427cf243819 100644 (file)
@@ -1,3 +1,15 @@
+2011-11-30  Noel Gordon  <noel.gordon@gmail.com>
+
+        JPEGImageDecoder: Code input color space case entries in numerical order
+        https://bugs.webkit.org/show_bug.cgi?id=73287
+
+        Reviewed by Adam Barth.
+
+        No new tests. Covered by existing tests.
+
+        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
+        (WebCore::JPEGImageReader::decode): JCS_YCbCr is one greater than JSC_RGB.
+
 2011-11-30  Alexandru Chiculita  <achicu@adobe.com>
 
         FilterOperation* should stay in rendering/style, because it is directly referenced from RenderStyle
index 00b8b86b4e17e5efd1a6adc3d95e5ca8acceab39..9fcf5b24e92893239d19acd0b1cf4f6bb053c8ec 100644 (file)
@@ -237,8 +237,8 @@ public:
                 m_decoder->setIgnoreGammaAndColorProfile(true);
                 m_info.out_color_space = JCS_RGB;
                 break;
-            case JCS_YCbCr:
             case JCS_RGB:
+            case JCS_YCbCr:
                 m_info.out_color_space = rgbOutputColorSpace();
                 break;
             case JCS_CMYK: