Bug 100231. Use nsCheapVoidArray to save a word in nsXULElement. r=brendan,rjesup; sr=jst

This commit is contained in:
waterson%netscape.com 2001-10-18 03:47:32 +00:00
parent b5931459cb
commit b9ffb7bd1f
6 changed files with 11 additions and 1 deletions

View File

@ -99,6 +99,8 @@ public:
PRBool RemoveElementAt(PRInt32 aIndex);
void Compact();
void* operator[](PRInt32 aIndex) const { return ElementAt(aIndex); }
private:
typedef unsigned long PtrBits;

View File

@ -77,6 +77,8 @@
#include "nsXULAttributeValue.h"
#include "nsIXBLService.h"
#include "nsGenericElement.h" // for nsCheapVoidArray
class nsISizeOfHandler;
class nsIDocument;
@ -525,7 +527,7 @@ protected:
nsXULPrototypeElement* mPrototype;
nsIDocument* mDocument; // [WEAK]
nsIContent* mParent; // [WEAK]
nsVoidArray mChildren; // [OWNER]
nsCheapVoidArray mChildren; // [OWNER]
nsCOMPtr<nsIEventListenerManager> mListenerManager; // [OWNER]
#ifdef DEBUG
PRBool mIsScriptObjectRooted;

View File

@ -53,6 +53,7 @@ REQUIRES = xpcom \
pref \
xul \
xultmpl \
webshell \
$(NULL)
CPPSRCS = \

View File

@ -47,6 +47,7 @@ REQUIRES = xpcom \
gfx \
layout_xul \
content \
webshell \
$(NULL)
DEFINES=-D_IMPL_NS_HTML -DWIN32_LEAN_AND_MEAN

View File

@ -35,6 +35,7 @@ REQUIRES = xpcom \
timer \
caps \
gfx \
htmlparser \
layout \
content \
widget \
@ -45,6 +46,7 @@ REQUIRES = xpcom \
unicharutil \
xul \
xuldoc \
webshell \
$(NULL)
CPPSRCS = \

View File

@ -37,8 +37,10 @@ REQUIRES = xpcom \
unicharutil \
layout \
gfx \
htmlparser \
layout_xul \
content \
webshell \
$(NULL)
DEFINES=-D_IMPL_NS_HTML -DWIN32_LEAN_AND_MEAN