mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Don't create zero-width text node after each render
This fixes rendering the same node getting slower each time when using Opera.
This commit is contained in:
parent
81ae37cbd1
commit
3164e5bae0
@ -363,7 +363,10 @@ _html2canvas.Parse = function ( images, options ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
newTextNode = oldTextNode.splitText(renderList[c].length);
|
||||
if (i < listLen-1)
|
||||
newTextNode = oldTextNode.splitText(renderList[c].length);
|
||||
else
|
||||
newTextNode = null;
|
||||
|
||||
parent = oldTextNode.parentNode;
|
||||
wrapElement = doc.createElement('wrapper');
|
||||
|
Loading…
Reference in New Issue
Block a user