Merge pull request #20980 from Snuffleupagus/CanvasExtraState-rm-preInit

Remove unused `preInit` parameter from the `CanvasExtraState` constructor (PR 19043 follow-up)
This commit is contained in:
Jonas Jenwald 2026-03-26 14:27:39 +01:00 committed by GitHub
commit 9be671dbbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,11 +333,10 @@ class CanvasExtraState {
transferMaps = "none";
constructor(width, height, preInit) {
preInit?.(this);
minMax = MIN_MAX_INIT.slice();
constructor(width, height) {
this.clipBox = new Float32Array([0, 0, width, height]);
this.minMax = MIN_MAX_INIT.slice();
}
clone() {