Fixing bug 114539. Getting rid of mInner in all our 'data' nodes and making those classes inherit nsGenericDOMDataNode in stead. Also remove mContentID from nsTextNode and push mRangeList and mListenerManager into hashtables since they are used so rarely. This results in a size reduction of nsTextNode from 44 bytes to 28 bytes (~36%). r=peterv@netscape.com, sr=hyatt@netscape.com.

This commit is contained in:
jst@netscape.com
2001-12-16 06:59:31 +00:00
parent fa24811c65
commit e4e3326d2c
15 changed files with 1338 additions and 1910 deletions

View File

@@ -50,6 +50,7 @@
#include "nsCSSOMFactory.h"
#include "nsEventStateManager.h"
#include "nsGenericElement.h"
#include "nsGenericDOMDataNode.h"
#include "nsHTMLAtoms.h"
#include "nsHTMLAtoms.h"
#include "nsHTMLContentSerializer.h"
@@ -218,6 +219,7 @@ Shutdown(nsIModule* aSelf)
nsRange::Shutdown();
nsGenericElement::Shutdown();
nsGenericDOMDataNode::Shutdown();
// Release all of our atoms
nsColorNames::ReleaseTable();