[Editor] Remove obsolete arguments for setDims calls in the highlight code

The `width` and `height` arguments for `setDims` have been removed in
PR #20285, but for two calls in the highlight code they remained. This
commit removes them as they are no longer used in the method itself.

Fixes 0722faa9.
This commit is contained in:
Tim van der Meij 2025-10-05 13:47:47 +02:00
parent f56dc86014
commit 68ed5be9ac
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -527,7 +527,7 @@ class HighlightEditor extends AnnotationEditor {
highlightOutlines: this.#highlightOutlines.getNewOutline(thickness / 2), highlightOutlines: this.#highlightOutlines.getNewOutline(thickness / 2),
}); });
this.fixAndSetPosition(); this.fixAndSetPosition();
this.setDims(this.width, this.height); this.setDims();
} }
#cleanDrawLayer() { #cleanDrawLayer() {
@ -646,7 +646,7 @@ class HighlightEditor extends AnnotationEditor {
highlightDiv.setAttribute("aria-hidden", "true"); highlightDiv.setAttribute("aria-hidden", "true");
highlightDiv.className = "internal"; highlightDiv.className = "internal";
highlightDiv.style.clipPath = this.#clipPathId; highlightDiv.style.clipPath = this.#clipPathId;
this.setDims(this.width, this.height); this.setDims();
bindEvents(this, this.#highlightDiv, ["pointerover", "pointerleave"]); bindEvents(this, this.#highlightDiv, ["pointerover", "pointerleave"]);
this.enableEditing(); this.enableEditing();