fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron

git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%meer.net
2006-03-30 18:40:56 +00:00
parent 4abf2f1f94
commit 70deb5f58d
57 changed files with 112 additions and 112 deletions

View File

@@ -1315,8 +1315,8 @@ SinkContext::CloseContainer(const nsHTMLTag aTag, PRBool aMalformed)
"SinkContext::CloseContainer",
aTag, mStackPos - 1, mSink);
NS_WARN_IF_FALSE(mStackPos > 0,
"stack out of bounds. wrong context probably!");
NS_ASSERTION(mStackPos > 0,
"stack out of bounds. wrong context probably!");
if (mStackPos <= 0) {
return NS_OK; // Fix crash - Ref. bug 45975 or 45007
@@ -2052,7 +2052,7 @@ HTMLContentSink::Init(nsIDocument* aDoc,
service->GetTopicObservers(NS_LITERAL_STRING("text/html"),
getter_AddRefs(mObservers));
NS_WARN_IF_FALSE(mDocShell, "oops no docshell!");
NS_ASSERTION(mDocShell, "oops no docshell!");
// Find out if subframes are enabled
if (mDocShell) {