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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user