Remove mozImageSmoothingEnabled
fallback in CanvasGraphics.endGroup
This was added all the way back in PR 2936, however it's been unnecessary ever since Firefox 51 (released on 2017-01-24); please see the MDN compatibility data: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled#browser_compatibility
This commit is contained in:
parent
9ce63a6dc6
commit
bd51bbfd16
@ -2458,11 +2458,8 @@ class CanvasGraphics {
|
||||
this.ctx = this.groupStack.pop();
|
||||
// Turn off image smoothing to avoid sub pixel interpolation which can
|
||||
// look kind of blurry for some pdfs.
|
||||
if (this.ctx.imageSmoothingEnabled !== undefined) {
|
||||
this.ctx.imageSmoothingEnabled = false;
|
||||
} else {
|
||||
this.ctx.mozImageSmoothingEnabled = false;
|
||||
}
|
||||
this.ctx.imageSmoothingEnabled = false;
|
||||
|
||||
if (group.smask) {
|
||||
this.tempSMask = this.smaskStack.pop();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user