From 9ae859f594c4ff57ec97718002d5e645e479d705 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 18 Jul 2012 11:20:20 -0700 Subject: [PATCH 1/4] Fix initial scroll direction detection. --- web/viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/viewer.js b/web/viewer.js index cbe20bb66..92b4bad13 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -912,7 +912,6 @@ var PDFView = { } if ('page' in params) { var pageNumber = (params.page | 0) || 1; - this.page = pageNumber; if ('zoom' in params) { var zoomArgs = params.zoom.split(','); // scale,left,top // building destination array @@ -928,8 +927,9 @@ var PDFView = { (zoomArgs[2] | 0), zoomArg]; var currentPage = this.pages[pageNumber - 1]; currentPage.scrollIntoView(dest); - } else + } else { this.page = params.page; // simple page + } return; } } else if (/^\d+$/.test(hash)) // page number From d9ea503399884eddf83785cbb7ed67d5e73bd7e9 Mon Sep 17 00:00:00 2001 From: gigaherz Date: Tue, 31 Jul 2012 10:48:52 +0200 Subject: [PATCH 2/4] Workaround Opera not supporting 'transparent' background style in background */ } .dropdownToolbarButton > select > option { From a341c66db66cf973dc8118a557bb65be649a36f1 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Tue, 31 Jul 2012 13:58:25 -0700 Subject: [PATCH 3/4] Fix nit. --- web/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/viewer.js b/web/viewer.js index 92b4bad13..96984a22f 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -928,7 +928,7 @@ var PDFView = { var currentPage = this.pages[pageNumber - 1]; currentPage.scrollIntoView(dest); } else { - this.page = params.page; // simple page + this.page = pageNumber; // simple page } return; } From f947b3bb4c8e362d01b1f35d0df3800cc3657973 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Wed, 1 Aug 2012 10:59:21 -0500 Subject: [PATCH 4/4] Fixes Shading.Dummy return type --- src/pattern.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pattern.js b/src/pattern.js index 8d69d3a92..b9715d867 100644 --- a/src/pattern.js +++ b/src/pattern.js @@ -38,6 +38,7 @@ var Pattern = (function PatternClosure() { // Both radial and axial shadings are handled by RadialAxial shading. return new Shadings.RadialAxial(dict, matrix, xref, res); default: + TODO('Unsupported shading type: ' + type); return new Shadings.Dummy(); } }; @@ -174,7 +175,12 @@ Shadings.Dummy = (function DummyClosure() { } Dummy.fromIR = function Dummy_fromIR() { - return 'hotpink'; + return { + type: 'Pattern', + getPattern: function Dummy_fromIR_getPattern() { + return 'hotpink'; + } + }; }; Dummy.prototype = {