Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -129,11 +129,9 @@ NS_NewHTMLTextAreaElement(nsIHTMLContent** aInstancePtrResult, nsIAtom* aTag)
|
||||
return it->QueryInterface(kIHTMLContentIID, (void**) aInstancePtrResult);
|
||||
}
|
||||
|
||||
MOZ_DECL_CTOR_COUNTER(nsHTMLTextAreaElement);
|
||||
|
||||
nsHTMLTextAreaElement::nsHTMLTextAreaElement(nsIAtom* aTag)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsHTMLTextAreaElement);
|
||||
NS_INIT_REFCNT();
|
||||
mInner.Init(this, aTag);
|
||||
mForm = nsnull;
|
||||
@@ -141,7 +139,6 @@ nsHTMLTextAreaElement::nsHTMLTextAreaElement(nsIAtom* aTag)
|
||||
|
||||
nsHTMLTextAreaElement::~nsHTMLTextAreaElement()
|
||||
{
|
||||
MOZ_COUNT_DTOR(nsHTMLTextAreaElement);
|
||||
if (nsnull != mForm) {
|
||||
// prevent mForm from decrementing its ref count on us
|
||||
mForm->RemoveElement(this, PR_FALSE);
|
||||
|
||||
Reference in New Issue
Block a user