Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt
This commit is contained in:
blythe%netscape.com 2005-11-02 16:04:58 +00:00
Родитель 3e60b6f7c1
Коммит 00e4d1adc5
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -333,17 +333,23 @@ private:
// XXX we're really re-implementing the whole nsVoidArray interface here -
// some form of abstract class would be useful
// I disagree on the abstraction here. If the point of this class is to be
// as small as possible, and no one will ever derive from it, as I found
// today, there should not be any virtualness to it to avoid the vtable
// ptr overhead.
class NS_COM nsSmallVoidArray
{
public:
nsSmallVoidArray();
virtual ~nsSmallVoidArray();
~nsSmallVoidArray();
nsSmallVoidArray& operator=(nsSmallVoidArray& other);
void* operator[](PRInt32 aIndex) const { return ElementAt(aIndex); }
#ifdef DEBUG
virtual void SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const;
void SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const;
#endif
PRInt32 GetArraySize() const;