From 0274245e90cbbefde1ed57aa13d199f5db3d7f5a Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 5 Dec 2022 11:49:14 +0100 Subject: [PATCH] Remove the unused `TextLayerRenderTask._renderingDone` property (PR 15259 follow-up) This is yet another property that I forgot to remove in PR 15259. --- src/display/text_layer.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/display/text_layer.js b/src/display/text_layer.js index d9fbefdd6..e9f0aef0d 100644 --- a/src/display/text_layer.js +++ b/src/display/text_layer.js @@ -284,7 +284,6 @@ function render(task) { // No point in rendering many divs as it would make the browser // unusable even after the divs are rendered. if (textDivsLength > MAX_TEXT_DIVS_TO_RENDER) { - task._renderingDone = true; capability.resolve(); return; } @@ -294,8 +293,6 @@ function render(task) { task._layoutText(textDiv); } } - - task._renderingDone = true; capability.resolve(); } @@ -318,7 +315,6 @@ class TextLayerRenderTask { this._reader = null; this._textDivProperties = textDivProperties || new WeakMap(); - this._renderingDone = false; this._canceled = false; this._capability = createPromiseCapability(); this._layoutTextParams = {