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:
commit
b058266a7a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user