[Pkg-javascript-commits] [pdf.js] 104/141: Reverts #4556 due to flicker on Chome
David Prévot
taffit at moszumanska.debian.org
Sat Apr 19 22:40:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit f6c631bc31cd22898678e692807941e2edc7e596
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Fri Apr 11 14:07:36 2014 -0500
Reverts #4556 due to flicker on Chome
---
web/page_view.js | 2 +-
web/text_layer_builder.js | 2 +-
web/thumbnail_view.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/page_view.js b/web/page_view.js
index 388e1c6..07149ad 100644
--- a/web/page_view.js
+++ b/web/page_view.js
@@ -462,7 +462,7 @@ var PageView = function pageView(container, id, scale,
this.canvas = canvas;
var scale = this.scale;
- var ctx = canvas.getContext('2d', {alpha: false});
+ var ctx = canvas.getContext('2d');
var outputScale = getOutputScale(ctx);
if (USE_ONLY_CSS_ZOOM) {
diff --git a/web/text_layer_builder.js b/web/text_layer_builder.js
index c2ed65a..bd75abf 100644
--- a/web/text_layer_builder.js
+++ b/web/text_layer_builder.js
@@ -53,7 +53,7 @@ var TextLayerBuilder = function textLayerBuilder(options) {
this.renderLayer = function textLayerBuilderRenderLayer() {
var textDivs = this.textDivs;
var canvas = document.createElement('canvas');
- var ctx = canvas.getContext('2d', {alpha: false});
+ var ctx = canvas.getContext('2d');
// No point in rendering so many divs as it'd make the browser unusable
// even after the divs are rendered
diff --git a/web/thumbnail_view.js b/web/thumbnail_view.js
index cd3da4b..90d4e89 100644
--- a/web/thumbnail_view.js
+++ b/web/thumbnail_view.js
@@ -111,7 +111,7 @@ var ThumbnailView = function thumbnailView(container, id, defaultViewport) {
ring.appendChild(canvas);
- var ctx = canvas.getContext('2d', {alpha: false});
+ var ctx = canvas.getContext('2d');
ctx.save();
ctx.fillStyle = 'rgb(255, 255, 255)';
ctx.fillRect(0, 0, this.canvasWidth, this.canvasHeight);
--
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