[Pkg-javascript-commits] [pdf.js] 76/161: Fix some indenting within OperatorList.
David Prévot
taffit at moszumanska.debian.org
Sat Apr 19 14:16:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 42d175efd43898709dc829c13609b75463cb5c34
Author: Nicholas Nethercote <nnethercote at mozilla.com>
Date: Sat Mar 15 06:01:07 2014 -0700
Fix some indenting within OperatorList.
---
src/core/evaluator.js | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/src/core/evaluator.js b/src/core/evaluator.js
index 5985b2b..5d70a91 100644
--- a/src/core/evaluator.js
+++ b/src/core/evaluator.js
@@ -1277,26 +1277,25 @@ var OperatorList = (function OperatorListClosure() {
var CHUNK_SIZE = 1000;
var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
- function getTransfers(queue) {
- var transfers = [];
- var fnArray = queue.fnArray, argsArray = queue.argsArray;
- for (var i = 0, ii = queue.length; i < ii; i++) {
- switch (fnArray[i]) {
- case OPS.paintInlineImageXObject:
- case OPS.paintInlineImageXObjectGroup:
- case OPS.paintImageMaskXObject:
- var arg = argsArray[i][0]; // first param in imgData
- if (!arg.cached) {
- transfers.push(arg.data.buffer);
- }
- break;
- }
+ function getTransfers(queue) {
+ var transfers = [];
+ var fnArray = queue.fnArray, argsArray = queue.argsArray;
+ for (var i = 0, ii = queue.length; i < ii; i++) {
+ switch (fnArray[i]) {
+ case OPS.paintInlineImageXObject:
+ case OPS.paintInlineImageXObjectGroup:
+ case OPS.paintImageMaskXObject:
+ var arg = argsArray[i][0]; // first param in imgData
+ if (!arg.cached) {
+ transfers.push(arg.data.buffer);
+ }
+ break;
}
- return transfers;
}
+ return transfers;
+ }
-
- function OperatorList(intent, messageHandler, pageIndex) {
+ function OperatorList(intent, messageHandler, pageIndex) {
this.messageHandler = messageHandler;
// When there isn't a message handler the fn array needs to be able to grow
// since we can't flush the operators.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list