Apply HCM filters on annotations which have their own canvas (bug 1830850)

This commit is contained in:
Calixte Denizet 2023-05-02 16:37:49 +02:00
parent 797f8d3dca
commit c07149a44f
3 changed files with 29 additions and 7 deletions

View file

@ -3326,7 +3326,8 @@ class InternalRenderTask {
this.canvasFactory,
this.filterFactory,
{ optionalContentConfig },
this.annotationCanvasMap
this.annotationCanvasMap,
this.pageColors
);
this.gfx.beginDrawing({
transform,
@ -3342,7 +3343,7 @@ class InternalRenderTask {
cancel(error = null, extraDelay = 0) {
this.running = false;
this.cancelled = true;
this.gfx?.endDrawing(this.pageColors);
this.gfx?.endDrawing();
if (this._canvas) {
InternalRenderTask.#canvasInUse.delete(this._canvas);