mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Attempt to clean-up/restore pending rendering operations on RenderTask.cancel
(issue 10200)
Please note that, given the lack of a runnable example, I'm not totally sure if this first of all is enough to *completely* address the issue as filed and second of all if we actually want this new behaviour.
This commit is contained in:
parent
42b7bb4751
commit
f77b463339
1 changed files with 3 additions and 0 deletions
|
@ -2439,6 +2439,9 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
|
||||||
cancel: function InternalRenderTask_cancel() {
|
cancel: function InternalRenderTask_cancel() {
|
||||||
this.running = false;
|
this.running = false;
|
||||||
this.cancelled = true;
|
this.cancelled = true;
|
||||||
|
if (this.gfx) {
|
||||||
|
this.gfx.endDrawing();
|
||||||
|
}
|
||||||
if (this._canvas) {
|
if (this._canvas) {
|
||||||
canvasInRendering.delete(this._canvas);
|
canvasInRendering.delete(this._canvas);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue