Fix previousStyles being recreated for every transparent element (#1512)

This commit is contained in:
toasted-nutbread 2021-03-10 20:26:53 -05:00 committed by GitHub
parent 4f4990820e
commit b1f96a7ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -578,7 +578,7 @@ class DocumentUtil {
startContinerPre = startContainer; startContinerPre = startContainer;
} }
previousStyles = new Map(); if (previousStyles === null) { previousStyles = new Map(); }
i = this._disableTransparentElement(elements, i, previousStyles); i = this._disableTransparentElement(elements, i, previousStyles);
if (i < 0) { if (i < 0) {
return null; return null;