Revert "canvas: Properly restore all the remaining items in stateStack in endDrawing"

This commit is contained in:
Jonas Jenwald 2020-09-12 16:15:33 +02:00 committed by GitHub
parent cdac6f4e68
commit f43d1b316b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1009,8 +1009,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
endDrawing: function CanvasGraphics_endDrawing() {
// Finishing all opened operations such as SMask group painting.
while (this.stateStack.length || this.current.activeSMask !== null) {
this.restore();
if (this.current.activeSMask !== null) {
this.endSMaskGroup();
}
this.ctx.restore();