Updated SizeOf methods for html content objects to be more accurate; implemented MOZ_DECL_CTOR_COUNTER for all html content objects

git-svn-id: svn://10.0.0.236/trunk@50066 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-10-07 00:35:04 +00:00
parent 4e6e50c103
commit 99aaa55232
152 changed files with 2028 additions and 80 deletions

View File

@@ -98,14 +98,18 @@ NS_NewHTMLFrameElement(nsIHTMLContent** aInstancePtrResult, nsIAtom* aTag)
return it->QueryInterface(kIHTMLContentIID, (void**) aInstancePtrResult);
}
MOZ_DECL_CTOR_COUNTER(nsHTMLFrameElement);
nsHTMLFrameElement::nsHTMLFrameElement(nsIAtom* aTag)
{
MOZ_COUNT_CTOR(nsHTMLFrameElement);
NS_INIT_REFCNT();
mInner.Init(this, aTag);
}
nsHTMLFrameElement::~nsHTMLFrameElement()
{
MOZ_COUNT_DTOR(nsHTMLFrameElement);
}
NS_IMPL_ADDREF(nsHTMLFrameElement)
@@ -241,3 +245,9 @@ nsHTMLFrameElement::HandleDOMEvent(nsIPresContext& aPresContext,
aFlags, aEventStatus);
}
NS_IMETHODIMP
nsHTMLFrameElement::SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const
{
return mInner.SizeOf(aSizer, aResult, sizeof(*this));
}