diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-10 20:26:53 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-10 20:26:53 -0500 | 
| commit | b1f96a7ca7c37d9269b59d14b2cd67cc21db4d13 (patch) | |
| tree | bdc0f94e160ec60c6153fc9b99bfef2cb2153a7e /ext/js | |
| parent | 4f4990820eb4ee9abbd4fc6fdcd439704550c7eb (diff) | |
Fix previousStyles being recreated for every transparent element (#1512)
Diffstat (limited to 'ext/js')
| -rw-r--r-- | ext/js/dom/document-util.js | 2 | 
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; |