From 0381f72b51655d2a27fadce17716735ad1900145 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Sun, 4 Oct 2015 14:32:39 +0100 Subject: [PATCH] PDF.js version 1.1.496 --- bower.json | 2 +- build/pdf.combined.js | 18 ++++-------------- build/pdf.js | 18 ++++-------------- build/pdf.worker.js | 4 ++-- package.json | 2 +- web/compatibility.js | 6 ++++-- 6 files changed, 16 insertions(+), 34 deletions(-) diff --git a/bower.json b/bower.json index d908e0113..895a95e9b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.494", + "version": "1.1.496", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index c3e3f3173..9b550c69f 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.494'; -PDFJS.build = '82f73df'; +PDFJS.version = '1.1.496'; +PDFJS.build = 'dd9d0b8'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -4350,12 +4350,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { ctx.fill(); ctx.mozFillRule = 'nonzero'; } else { - try { - ctx.fill('evenodd'); - } catch (ex) { - // shouldn't really happen, but browsers might think differently - ctx.fill(); - } + ctx.fill('evenodd'); } this.pendingEOFill = false; } else { @@ -5368,12 +5363,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { ctx.clip(); ctx.mozFillRule = 'nonzero'; } else { - try { - ctx.clip('evenodd'); - } catch (ex) { - // shouldn't really happen, but browsers might think differently - ctx.clip(); - } + ctx.clip('evenodd'); } } else { ctx.clip(); diff --git a/build/pdf.js b/build/pdf.js index dd1ae6a7a..73bfc8441 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.494'; -PDFJS.build = '82f73df'; +PDFJS.version = '1.1.496'; +PDFJS.build = 'dd9d0b8'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -4394,12 +4394,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { ctx.fill(); ctx.mozFillRule = 'nonzero'; } else { - try { - ctx.fill('evenodd'); - } catch (ex) { - // shouldn't really happen, but browsers might think differently - ctx.fill(); - } + ctx.fill('evenodd'); } this.pendingEOFill = false; } else { @@ -5412,12 +5407,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { ctx.clip(); ctx.mozFillRule = 'nonzero'; } else { - try { - ctx.clip('evenodd'); - } catch (ex) { - // shouldn't really happen, but browsers might think differently - ctx.clip(); - } + ctx.clip('evenodd'); } } else { ctx.clip(); diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 25288660a..dd6e609cd 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.494'; -PDFJS.build = '82f73df'; +PDFJS.version = '1.1.496'; +PDFJS.build = 'dd9d0b8'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 2dd3114dd..186627cea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.494", + "version": "1.1.496", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla", diff --git a/web/compatibility.js b/web/compatibility.js index 06f54bff0..6d91057f1 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -522,9 +522,9 @@ if (typeof PDFJS === 'undefined') { if (polyfill) { var contextPrototype = window.CanvasRenderingContext2D.prototype; - contextPrototype._createImageData = contextPrototype.createImageData; + var createImageData = contextPrototype.createImageData; contextPrototype.createImageData = function(w, h) { - var imageData = this._createImageData(w, h); + var imageData = createImageData.call(this, w, h); imageData.data.set = function(arr) { for (var i = 0, ii = this.length; i < ii; i++) { this[i] = arr[i]; @@ -532,6 +532,8 @@ if (typeof PDFJS === 'undefined') { }; return imageData; }; + // this closure will be kept referenced, so clear its vars + contextPrototype = null; } } })();