]> git.parisson.com Git - pdf.js.git/commitdiff
Move comments.
authorBrendan Dahl <brendan.dahl@gmail.com>
Wed, 4 Jan 2012 19:56:53 +0000 (11:56 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Wed, 4 Jan 2012 19:56:53 +0000 (11:56 -0800)
src/stream.js

index 3367636b490967637fc4123c05eea8b04d5c6809..2c45d32a1b02a78c688325d749338f08ef9ab551 100644 (file)
@@ -819,7 +819,6 @@ var JpegStream = (function JpegStreamClosure() {
   JpegStream.prototype = Object.create(DecodeStream.prototype);
 
   JpegStream.prototype.ensureBuffer = function jpegStreamEnsureBuffer(req) {
-    // todo make sure this isn't called on natively supported jpegs
     if (this.bufferLength)
       return;
     var jpegImage = new JpegImage();
@@ -844,6 +843,8 @@ var JpegStream = (function JpegStreamClosure() {
   JpegStream.prototype.isNativelySupported = function isNativelySupported(xref,
                                                                           res) {
     var cs = ColorSpace.parse(this.dict.get('ColorSpace'), xref, res);
+    // when bug 674619 lands, let's check if browser can do
+    // normal cmyk and then we won't need to decode in JS
     if (cs.name === 'DeviceGray' || cs.name === 'DeviceRGB')
       return true;
     if (cs.name === 'DeviceCMYK' && !this.isAdobeImage &&