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:
bzbarsky%mit.edu
2007-05-14 03:00:14 +00:00
parent aab2440d75
commit cd70f7ed7e
4 changed files with 61 additions and 68 deletions

View File

@@ -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 {