Fix some indenting within OperatorList.

This commit is contained in:
Nicholas Nethercote 2014-03-15 06:01:07 -07:00
parent 1802ffffb8
commit 42d175efd4

View File

@ -1277,26 +1277,25 @@ var OperatorList = (function OperatorListClosure() {
var CHUNK_SIZE = 1000; var CHUNK_SIZE = 1000;
var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
function getTransfers(queue) { function getTransfers(queue) {
var transfers = []; var transfers = [];
var fnArray = queue.fnArray, argsArray = queue.argsArray; var fnArray = queue.fnArray, argsArray = queue.argsArray;
for (var i = 0, ii = queue.length; i < ii; i++) { for (var i = 0, ii = queue.length; i < ii; i++) {
switch (fnArray[i]) { switch (fnArray[i]) {
case OPS.paintInlineImageXObject: case OPS.paintInlineImageXObject:
case OPS.paintInlineImageXObjectGroup: case OPS.paintInlineImageXObjectGroup:
case OPS.paintImageMaskXObject: case OPS.paintImageMaskXObject:
var arg = argsArray[i][0]; // first param in imgData var arg = argsArray[i][0]; // first param in imgData
if (!arg.cached) { if (!arg.cached) {
transfers.push(arg.data.buffer); transfers.push(arg.data.buffer);
} }
break; break;
}
} }
return transfers;
} }
return transfers;
}
function OperatorList(intent, messageHandler, pageIndex) {
function OperatorList(intent, messageHandler, pageIndex) {
this.messageHandler = messageHandler; this.messageHandler = messageHandler;
// When there isn't a message handler the fn array needs to be able to grow // When there isn't a message handler the fn array needs to be able to grow
// since we can't flush the operators. // since we can't flush the operators.