From 32a852c0bfc384f919c7d0b642fd723426df6a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Breitbart?= Date: Tue, 1 Aug 2023 18:30:06 +0200 Subject: [PATCH] remove private binding of document in width cache ctor --- src/browser/renderer/dom/WidthCache.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/browser/renderer/dom/WidthCache.ts b/src/browser/renderer/dom/WidthCache.ts index 76ac2be5..2fe4ef02 100644 --- a/src/browser/renderer/dom/WidthCache.ts +++ b/src/browser/renderer/dom/WidthCache.ts @@ -37,9 +37,7 @@ export class WidthCache implements IDisposable { private _container: HTMLDivElement; private _measureElements: HTMLSpanElement[] = []; - constructor( - private readonly _document: Document - ) { + constructor(_document: Document) { this._container = _document.createElement('div'); this._container.style.position = 'absolute'; this._container.style.top = '-50000px';