Move comments.
This commit is contained in:
parent
702af87731
commit
9538da2b58
@ -819,7 +819,6 @@ var JpegStream = (function JpegStreamClosure() {
|
|||||||
JpegStream.prototype = Object.create(DecodeStream.prototype);
|
JpegStream.prototype = Object.create(DecodeStream.prototype);
|
||||||
|
|
||||||
JpegStream.prototype.ensureBuffer = function jpegStreamEnsureBuffer(req) {
|
JpegStream.prototype.ensureBuffer = function jpegStreamEnsureBuffer(req) {
|
||||||
// todo make sure this isn't called on natively supported jpegs
|
|
||||||
if (this.bufferLength)
|
if (this.bufferLength)
|
||||||
return;
|
return;
|
||||||
var jpegImage = new JpegImage();
|
var jpegImage = new JpegImage();
|
||||||
@ -844,6 +843,8 @@ var JpegStream = (function JpegStreamClosure() {
|
|||||||
JpegStream.prototype.isNativelySupported = function isNativelySupported(xref,
|
JpegStream.prototype.isNativelySupported = function isNativelySupported(xref,
|
||||||
res) {
|
res) {
|
||||||
var cs = ColorSpace.parse(this.dict.get('ColorSpace'), 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')
|
if (cs.name === 'DeviceGray' || cs.name === 'DeviceRGB')
|
||||||
return true;
|
return true;
|
||||||
if (cs.name === 'DeviceCMYK' && !this.isAdobeImage &&
|
if (cs.name === 'DeviceCMYK' && !this.isAdobeImage &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user