Spanked away SizeOf methods and nsIListFilter

git-svn-id: svn://10.0.0.236/trunk@17895 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-01-16 00:00:50 +00:00
parent 5f839220a3
commit 4e355995e6
108 changed files with 637 additions and 2427 deletions

View File

@@ -26,7 +26,6 @@
#include "nsIStyleContext.h"
#include "nsHTMLAtoms.h"
#include "nsIHTMLContent.h"
#include "nsISizeOfHandler.h"
#include "nsVoidArray.h"
static NS_DEFINE_IID(kIHTMLAttributesIID, NS_IHTML_ATTRIBUTES_IID);
@@ -71,8 +70,6 @@ struct HTMLAttribute {
NS_IF_RELEASE(mAttribute);
}
void SizeOf(nsISizeOfHandler* aHandler) const;
HTMLAttribute& operator=(const HTMLAttribute& aCopy)
{
NS_IF_RELEASE(mAttribute);
@@ -151,20 +148,6 @@ struct HTMLAttribute {
HTMLAttribute* mNext;
};
void
HTMLAttribute::SizeOf(nsISizeOfHandler* aHandler) const
{
if (!aHandler->HaveSeen(mAttribute)) {
mAttribute->SizeOf(aHandler);
}
aHandler->Add(sizeof(*this));
aHandler->Add((size_t) (- ((PRInt32) sizeof(mValue)) ) );
mValue.SizeOf(aHandler);
if (!aHandler->HaveSeen(mNext)) {
mNext->SizeOf(aHandler);
}
}
// ----------------
struct nsClassList {
@@ -245,11 +228,6 @@ public:
NS_IMETHOD GetStrength(PRInt32& aStrength) const;
NS_IMETHOD MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresContext);
/**
* Add this object's size information to the sizeof handler.
*/
NS_IMETHOD SizeOf(nsISizeOfHandler* aHandler) const;
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
private:
@@ -859,18 +837,6 @@ HTMLAttributesImpl::GetStrength(PRInt32& aStrength) const
return NS_OK;
}
NS_IMETHODIMP
HTMLAttributesImpl::SizeOf(nsISizeOfHandler* aHandler) const
{
aHandler->Add(sizeof(*this));
// XXX mID
// XXX mClass
if (!aHandler->HaveSeen(mFirst.mNext)) {
mFirst.mNext->SizeOf(aHandler);
}
return NS_OK;
}
NS_IMETHODIMP
HTMLAttributesImpl::List(FILE* out, PRInt32 aIndent) const
{