From fa2d7fc1787c552f7a1e3bcf0351393d0c17c605 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 26 Sep 2024 15:21:44 +0200 Subject: [PATCH] Remove `trackTransform` arguments from `CachedCanvases.getCanvas`-calls (PR 15281 follow-up) This became unused in PR 15281, however that patch clearly missed some occurrences; sorry about that! --- src/display/pattern_helper.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/display/pattern_helper.js b/src/display/pattern_helper.js index 43c273fc88245..4241695a23aa1 100644 --- a/src/display/pattern_helper.js +++ b/src/display/pattern_helper.js @@ -103,8 +103,7 @@ class RadialAxialShadingPattern extends BaseShadingPattern { const tmpCanvas = owner.cachedCanvases.getCanvas( "pattern", width, - height, - true + height ); const tmpCtx = tmpCanvas.context; @@ -360,8 +359,7 @@ class MeshShadingPattern extends BaseShadingPattern { const tmpCanvas = cachedCanvases.getCanvas( "mesh", paddedWidth, - paddedHeight, - false + paddedHeight ); const tmpCtx = tmpCanvas.context; @@ -556,8 +554,7 @@ class TilingPattern { const tmpCanvas = owner.cachedCanvases.getCanvas( "pattern", dimx.size, - dimy.size, - true + dimy.size ); const tmpCtx = tmpCanvas.context; const graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx); @@ -614,8 +611,7 @@ class TilingPattern { const tmpCanvas2 = owner.cachedCanvases.getCanvas( "pattern-workaround", xSize, - ySize, - true + ySize ); const tmpCtx2 = tmpCanvas2.context; const ii = redrawHorizontally ? Math.floor(width / xstep) : 0;