aboutsummaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-10 20:26:53 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-10 20:28:40 -0500
commit2acd9bd45d23838bbee61561aaa05c1443d5ebb0 (patch)
tree50710b6a74b5a9af6c29f72732ddc00c2df7d2d0 /ext/js
parent04f36b3163dfdc50c818f133a7269cdecd1613b3 (diff)
Fix previousStyles being recreated for every transparent element (#1512)
Diffstat (limited to 'ext/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;