mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 100231. Use nsCheapVoidArray to save a word in nsXULElement. r=brendan,rjesup; sr=jst
This commit is contained in:
parent
b5931459cb
commit
b9ffb7bd1f
@ -99,6 +99,8 @@ public:
|
||||
PRBool RemoveElementAt(PRInt32 aIndex);
|
||||
void Compact();
|
||||
|
||||
void* operator[](PRInt32 aIndex) const { return ElementAt(aIndex); }
|
||||
|
||||
private:
|
||||
typedef unsigned long PtrBits;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -53,6 +53,7 @@ REQUIRES = xpcom \
|
||||
pref \
|
||||
xul \
|
||||
xultmpl \
|
||||
webshell \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
|
@ -47,6 +47,7 @@ REQUIRES = xpcom \
|
||||
gfx \
|
||||
layout_xul \
|
||||
content \
|
||||
webshell \
|
||||
$(NULL)
|
||||
|
||||
DEFINES=-D_IMPL_NS_HTML -DWIN32_LEAN_AND_MEAN
|
||||
|
@ -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 = \
|
||||
|
@ -37,8 +37,10 @@ REQUIRES = xpcom \
|
||||
unicharutil \
|
||||
layout \
|
||||
gfx \
|
||||
htmlparser \
|
||||
layout_xul \
|
||||
content \
|
||||
webshell \
|
||||
$(NULL)
|
||||
|
||||
DEFINES=-D_IMPL_NS_HTML -DWIN32_LEAN_AND_MEAN
|
||||
|
Loading…
Reference in New Issue
Block a user