From 9538da2b588963ac4c9148de0ec551e32969334c Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 4 Jan 2012 11:56:53 -0800 Subject: [PATCH] Move comments. --- src/stream.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stream.js b/src/stream.js index 3367636b4..2c45d32a1 100644 --- a/src/stream.js +++ b/src/stream.js @@ -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 &&