Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst

git-svn-id: svn://10.0.0.236/trunk@105468 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-10-16 05:31:36 +00:00
parent 6148bb21e2
commit 1382ac90eb
158 changed files with 793 additions and 148 deletions

View File

@@ -1807,8 +1807,10 @@ nsEditor::OutputToStream(nsIOutputStream* aOutputStream,
NS_IMETHODIMP
nsEditor::DumpContentTree()
{
#ifdef DEBUG
nsCOMPtr<nsIContent> root = do_QueryInterface(mBodyElement);
if (root) root->List(stdout);
#endif
return NS_OK;
}
@@ -1816,6 +1818,7 @@ nsEditor::DumpContentTree()
NS_IMETHODIMP
nsEditor::DebugDumpContent()
{
#ifdef DEBUG
nsCOMPtr<nsIContent>content;
nsCOMPtr<nsIDOMNodeList>nodeList;
nsAutoString bodyTag; bodyTag.AssignWithConversion("body");
@@ -1834,6 +1837,7 @@ nsEditor::DebugDumpContent()
}
}
content->List();
#endif
return NS_OK;
}
@@ -1841,7 +1845,9 @@ nsEditor::DebugDumpContent()
NS_IMETHODIMP
nsEditor::DebugUnitTests(PRInt32 *outNumTests, PRInt32 *outNumTestsFailed)
{
#ifdef DEBUG
NS_NOTREACHED("This should never get called. Overridden by subclasses");
#endif
return NS_OK;
}