mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #9853 from Snuffleupagus/re-render-after-cancel
Fix re-rendering, using the same canvas, when rendering was previously cancelled (PR 8519 follow-up)
This commit is contained in:
commit
99f8f2c275
2 changed files with 35 additions and 6 deletions
|
@ -2380,9 +2380,10 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
|
|||
|
||||
InternalRenderTask.prototype = {
|
||||
|
||||
initializeGraphics:
|
||||
function InternalRenderTask_initializeGraphics(transparency) {
|
||||
|
||||
initializeGraphics(transparency) {
|
||||
if (this.cancelled) {
|
||||
return;
|
||||
}
|
||||
if (this._canvas) {
|
||||
if (canvasInRendering.has(this._canvas)) {
|
||||
throw new Error(
|
||||
|
@ -2393,9 +2394,6 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
|
|||
canvasInRendering.set(this._canvas, this);
|
||||
}
|
||||
|
||||
if (this.cancelled) {
|
||||
return;
|
||||
}
|
||||
if (this._pdfBug && globalScope.StepperManager &&
|
||||
globalScope.StepperManager.enabled) {
|
||||
this.stepper = globalScope.StepperManager.create(this.pageNumber - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue