summaryrefslogtreecommitdiff
path: root/ext/js/dom/document-util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-10 20:26:53 -0500
committerGitHub <noreply@github.com>2021-03-10 20:26:53 -0500
commitb1f96a7ca7c37d9269b59d14b2cd67cc21db4d13 (patch)
treebdc0f94e160ec60c6153fc9b99bfef2cb2153a7e /ext/js/dom/document-util.js
parent4f4990820eb4ee9abbd4fc6fdcd439704550c7eb (diff)
Fix previousStyles being recreated for every transparent element (#1512)
Diffstat (limited to 'ext/js/dom/document-util.js')
-rw-r--r--ext/js/dom/document-util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/dom/document-util.js b/ext/js/dom/document-util.js
index 393ef294..8284ffa5 100644
--- a/ext/js/dom/document-util.js
+++ b/ext/js/dom/document-util.js
@@ -578,7 +578,7 @@ class DocumentUtil {
startContinerPre = startContainer;
}
- previousStyles = new Map();
+ if (previousStyles === null) { previousStyles = new Map(); }
i = this._disableTransparentElement(elements, i, previousStyles);
if (i < 0) {
return null;