Skip to content

Commit

Permalink
Remove trackTransform arguments from CachedCanvases.getCanvas-cal…
Browse files Browse the repository at this point in the history
…ls (PR 15281 follow-up)

This became unused in PR 15281, however that patch clearly missed some occurrences; sorry about that!
  • Loading branch information
Snuffleupagus committed Sep 26, 2024
1 parent 3902a14 commit fa2d7fc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/display/pattern_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ class RadialAxialShadingPattern extends BaseShadingPattern {
const tmpCanvas = owner.cachedCanvases.getCanvas(
"pattern",
width,
height,
true
height
);

const tmpCtx = tmpCanvas.context;
Expand Down Expand Up @@ -360,8 +359,7 @@ class MeshShadingPattern extends BaseShadingPattern {
const tmpCanvas = cachedCanvases.getCanvas(
"mesh",
paddedWidth,
paddedHeight,
false
paddedHeight
);
const tmpCtx = tmpCanvas.context;

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit fa2d7fc

Please sign in to comment.