Reverts #4556 due to flicker on Chome
This commit is contained in:
parent
012a727eed
commit
f6c631bc31
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user