|
|
|
@ -1,5 +1,6 @@
@@ -1,5 +1,6 @@
|
|
|
|
|
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
|
|
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ |
|
|
|
|
/* globals CanvasGraphics, combineUrl, createScratchCanvas, error, ErrorFont, Font, FontLoader, globalScope, info, isArrayBuffer, loadJpegStream, MessageHandler, PDFJS, PDFObjects, Promise, StatTimer, warn, WorkerMessageHandler */ |
|
|
|
|
/* Copyright 2012 Mozilla Foundation |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
@ -282,7 +283,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
@@ -282,7 +283,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|
|
|
|
promise.reject(error); |
|
|
|
|
else |
|
|
|
|
promise.resolve(); |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
var continueCallback = params.continueCallback; |
|
|
|
|
|
|
|
|
|
// Once the operatorList and fonts are loaded, do the actual rendering.
|
|
|
|
@ -383,7 +384,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
@@ -383,7 +384,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|
|
|
|
|
|
|
|
|
var continueWrapper; |
|
|
|
|
if (continueCallback) |
|
|
|
|
continueWrapper = function() { continueCallback(next); } |
|
|
|
|
continueWrapper = function() { continueCallback(next); }; |
|
|
|
|
else |
|
|
|
|
continueWrapper = next; |
|
|
|
|
|
|
|
|
|