Don't call nsCycleCollector_DEBUG_wasFreed on generic elements since it inevitably leads to false positives. b=420548 r+sr=peterv a=Not part of the default build (DEBUG/DEBUG_CC only)

This commit is contained in:
dbaron@dbaron.org 2008-03-07 09:55:24 -08:00
Родитель 7fc7cca10b
Коммит 8dfb0f2bdf
1 изменённых файлов: 0 добавлений и 7 удалений

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

@ -137,7 +137,6 @@
#include "nsCycleCollectionParticipant.h"
#include "nsCCUncollectableMarker.h"
#include "nsCycleCollector.h"
#ifdef MOZ_SVG
PRBool NS_SVG_TestFeature(const nsAString &fstr);
@ -1200,9 +1199,6 @@ nsGenericElement::~nsGenericElement()
{
NS_PRECONDITION(!IsInDoc(),
"Please remove this from the document properly");
#ifdef DEBUG
nsCycleCollector_DEBUG_wasFreed(static_cast<nsINode*>(this));
#endif
}
NS_IMETHODIMP
@ -2229,9 +2225,6 @@ nsGenericElement::UnbindFromTree(PRBool aDeep, PRBool aNullParent)
}
nsNodeUtils::ParentChainChanged(this);
#ifdef DEBUG
nsCycleCollector_DEBUG_shouldBeFreed(static_cast<nsINode*>(this));
#endif
}
nsresult