Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -45,10 +45,6 @@
|
||||
#include "nsITextContent.h"
|
||||
#include "nsLayoutAtoms.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#include "nsISizeOfHandler.h"
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
static PRInt32 ctorCount;
|
||||
PRInt32 nsLineBox::GetCtorCount() { return ctorCount; }
|
||||
@@ -507,43 +503,6 @@ nsLineBox::GetCombinedArea(nsRect* aResult)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
nsIAtom*
|
||||
nsLineBox::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const
|
||||
{
|
||||
NS_PRECONDITION(aResult, "null OUT parameter pointer");
|
||||
*aResult = sizeof(*this);
|
||||
|
||||
nsIAtom* atom;
|
||||
if (IsBlock()) {
|
||||
atom = nsLayoutAtoms::lineBoxBlockSmall;
|
||||
if (mBlockData) {
|
||||
atom = nsLayoutAtoms::lineBoxBlockBig;
|
||||
*aResult += sizeof(*mBlockData);
|
||||
}
|
||||
}
|
||||
else {
|
||||
atom = nsLayoutAtoms::lineBoxSmall;
|
||||
if (mInlineData) {
|
||||
atom = nsLayoutAtoms::lineBoxBig;
|
||||
*aResult += sizeof(*mInlineData);
|
||||
|
||||
// Add in the size needed for floaters associated with this line
|
||||
if (HasFloaters()) {
|
||||
PRUint32 floatersSize;
|
||||
mInlineData->mFloaters.SizeOf(aHandler, &floatersSize);
|
||||
|
||||
// Base size of embedded object was included in sizeof(*this) above
|
||||
floatersSize -= sizeof(mInlineData->mFloaters);
|
||||
aHandler->AddSize(nsLayoutAtoms::lineBoxFloaters, floatersSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return atom;
|
||||
}
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -1067,20 +1026,6 @@ nsFloaterCacheList::Remove(nsFloaterCache* aElement)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
nsFloaterCacheList::SizeOf(nsISizeOfHandler* aHandler, PRUint32* aResult) const
|
||||
{
|
||||
NS_PRECONDITION(aResult, "null OUT parameter pointer");
|
||||
*aResult = sizeof(*this);
|
||||
|
||||
// Add in the space for each floater
|
||||
for (nsFloaterCache* cache = Head(); cache; cache = cache->Next()) {
|
||||
*aResult += sizeof(*cache);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user