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
c6e16e4625
commit
c6372ea0ba
@ -363,7 +363,10 @@ _html2canvas.Parse = function ( images, options ) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i < listLen-1)
|
||||||
newTextNode = oldTextNode.splitText(renderList[c].length);
|
newTextNode = oldTextNode.splitText(renderList[c].length);
|
||||||
|
else
|
||||||
|
newTextNode = null;
|
||||||
|
|
||||||
parent = oldTextNode.parentNode;
|
parent = oldTextNode.parentNode;
|
||||||
wrapElement = doc.createElement('wrapper');
|
wrapElement = doc.createElement('wrapper');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user