Skip to content

Commit

Permalink
Merge pull request mozilla#5659 from Snuffleupagus/issue-5637-2
Browse files Browse the repository at this point in the history
Fix thumbnail rendering regression, when using |draw|, for PDF files with blend modes (issue 5637)
  • Loading branch information
timvandermeij authored and speedplane committed Feb 24, 2015
2 parents 6f582c8 + 82f5859 commit 65322af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 1 addition & 6 deletions web/thumbnail_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 2 additions & 0 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 65322af

Please sign in to comment.