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();
|
this.ctx = this.groupStack.pop();
|
||||||
// Turn off image smoothing to avoid sub pixel interpolation which can
|
// Turn off image smoothing to avoid sub pixel interpolation which can
|
||||||
// look kind of blurry for some pdfs.
|
// look kind of blurry for some pdfs.
|
||||||
if (this.ctx.imageSmoothingEnabled !== undefined) {
|
|
||||||
this.ctx.imageSmoothingEnabled = false;
|
this.ctx.imageSmoothingEnabled = false;
|
||||||
} else {
|
|
||||||
this.ctx.mozImageSmoothingEnabled = false;
|
|
||||||
}
|
|
||||||
if (group.smask) {
|
if (group.smask) {
|
||||||
this.tempSMask = this.smaskStack.pop();
|
this.tempSMask = this.smaskStack.pop();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user