Merge pull request #12368 from Snuffleupagus/revert-12363-better-cancelation

Revert "canvas: Properly restore all the remaining items in stateStack in endDrawing"
This commit is contained in:
Tim van der Meij 2020-09-12 16:32:24 +02:00 committed by GitHub
commit b058266a7a
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();