From b7394c2d04e1670fd3f6c522dccf1382f9fce682 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Tue, 12 May 2015 18:55:38 +0100 Subject: [PATCH] PDF.js version 1.1.124 --- bower.json | 2 +- build/pdf.combined.js | 12 +++++++++--- build/pdf.js | 12 +++++++++--- build/pdf.worker.js | 4 ++-- package.json | 2 +- 5 files changed, 22 insertions(+), 10 deletions(-) diff --git a/bower.json b/bower.json index 1cc3f8313..aac3b7094 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.122", + "version": "1.1.124", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index b9e71d2d2..e294670a7 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.122'; -PDFJS.build = '00f3756'; +PDFJS.version = '1.1.124'; +PDFJS.build = 'd87c1ec'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -2321,6 +2321,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() { this.commonObjs, intentState.operatorList, this.pageNumber); + internalRenderTask.useRequestAnimationFrame = renderingIntent !== 'print'; if (!intentState.renderTasks) { intentState.renderTasks = []; } @@ -3082,6 +3083,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() { this.running = false; this.graphicsReadyCallback = null; this.graphicsReady = false; + this.useRequestAnimationFrame = false; this.cancelled = false; this.capability = createPromiseCapability(); this.task = new RenderTask(this); @@ -3155,7 +3157,11 @@ var InternalRenderTask = (function InternalRenderTaskClosure() { }, _scheduleNext: function InternalRenderTask__scheduleNext() { - window.requestAnimationFrame(this._nextBound); + if (this.useRequestAnimationFrame) { + window.requestAnimationFrame(this._nextBound); + } else { + Promise.resolve(undefined).then(this._nextBound); + } }, _next: function InternalRenderTask__next() { diff --git a/build/pdf.js b/build/pdf.js index 97849e3a8..94f6f3546 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.122'; -PDFJS.build = '00f3756'; +PDFJS.version = '1.1.124'; +PDFJS.build = 'd87c1ec'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -2321,6 +2321,7 @@ var PDFPageProxy = (function PDFPageProxyClosure() { this.commonObjs, intentState.operatorList, this.pageNumber); + internalRenderTask.useRequestAnimationFrame = renderingIntent !== 'print'; if (!intentState.renderTasks) { intentState.renderTasks = []; } @@ -3126,6 +3127,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() { this.running = false; this.graphicsReadyCallback = null; this.graphicsReady = false; + this.useRequestAnimationFrame = false; this.cancelled = false; this.capability = createPromiseCapability(); this.task = new RenderTask(this); @@ -3199,7 +3201,11 @@ var InternalRenderTask = (function InternalRenderTaskClosure() { }, _scheduleNext: function InternalRenderTask__scheduleNext() { - window.requestAnimationFrame(this._nextBound); + if (this.useRequestAnimationFrame) { + window.requestAnimationFrame(this._nextBound); + } else { + Promise.resolve(undefined).then(this._nextBound); + } }, _next: function InternalRenderTask__next() { diff --git a/build/pdf.worker.js b/build/pdf.worker.js index a3f538800..9d5209fd9 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.122'; -PDFJS.build = '00f3756'; +PDFJS.version = '1.1.124'; +PDFJS.build = 'd87c1ec'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 2446f3f16..4a7bc66b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.122", + "version": "1.1.124", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",