Add debugging code for random assertion bug 563980.

This commit is contained in:
L. David Baron
2010-05-05 12:39:47 -07:00
parent 3e82acefea
commit eed5400921

View File

@@ -2075,6 +2075,12 @@ nsGenericElement::~nsGenericElement()
{
NS_PRECONDITION(!IsInDoc(),
"Please remove this from the document properly");
#ifdef DEBUG
if (IsInDoc()) {
printf("The element still in the document is:\n");
List(stdout, 2, nsCString());
}
#endif
}
NS_IMETHODIMP