Make use of the wonders of inline-block to produce a much smaller DOM for XML
prettyprinting (fewer nodes, fewer frames, etc). Speeds up prettyprinting by a factor of 2 or so over here, with a 25% memory usage decrease. Bug 379683, r+sr=sicking git-svn-id: svn://10.0.0.236/trunk@226370 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -62,9 +62,9 @@
|
||||
<![CDATA[
|
||||
try {
|
||||
var par = event.originalTarget;
|
||||
if (par.nodeName == 'td' && par.className == 'expander') {
|
||||
if (par.nodeName == 'div' && par.className == 'expander') {
|
||||
if (par.parentNode.className == 'expander-closed') {
|
||||
par.parentNode.className = '';
|
||||
par.parentNode.className = 'expander-open';
|
||||
event.originalTarget.firstChild.data = '\u2212';
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user