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() {
|
endDrawing: function CanvasGraphics_endDrawing() {
|
||||||
// Finishing all opened operations such as SMask group painting.
|
// Finishing all opened operations such as SMask group painting.
|
||||||
while (this.stateStack.length || this.current.activeSMask !== null) {
|
if (this.current.activeSMask !== null) {
|
||||||
this.restore();
|
this.endSMaskGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ctx.restore();
|
this.ctx.restore();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user