[Pkg-javascript-commits] [pdf.js] 53/116: Fix thumbnail rendering regression, when using |draw|, for PDF files with blend modes (issue 5637)

David Prévot taffit at moszumanska.debian.org
Fri Mar 6 16:20:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit c149d4d75ed6e09b3d61e71cc39c46bed13992f8
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Mon Jan 19 21:39:38 2015 +0100

    Fix thumbnail rendering regression, when using |draw|, for PDF files with blend modes (issue 5637)
---
 web/thumbnail_view.js | 7 +------
 web/viewer.css        | 2 ++
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/web/thumbnail_view.js b/web/thumbnail_view.js
index 3b4120a..fb4685c 100644
--- a/web/thumbnail_view.js
+++ b/web/thumbnail_view.js
@@ -127,12 +127,7 @@ var ThumbnailView = function thumbnailView(container, id, defaultViewport,
 
     ring.appendChild(canvas);
 
-    var ctx = canvas.getContext('2d');
-    ctx.save();
-    ctx.fillStyle = 'rgb(255, 255, 255)';
-    ctx.fillRect(0, 0, this.canvasWidth, this.canvasHeight);
-    ctx.restore();
-    return ctx;
+    return canvas.getContext('2d');
   };
 
   this.drawingRequired = function thumbnailViewDrawingRequired() {
diff --git a/web/viewer.css b/web/viewer.css
index 1dd872a..47b24d5 100644
--- a/web/viewer.css
+++ b/web/viewer.css
@@ -1124,6 +1124,8 @@ html[dir='rtl'] .verticalToolbarSeparator {
   box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
   opacity: 0.8;
   z-index: 99;
+  background-color: white;
+  background-clip: content-box;
 }
 
 .thumbnailSelectionRing {

-- 
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