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:
@@ -2449,8 +2449,8 @@ nsHTMLDocument::GetElementById(const nsAString& aElementId,
|
||||
return GetElementById(aElementId, aReturn);
|
||||
}
|
||||
|
||||
NS_WARN_IF_FALSE(!aElementId.IsEmpty(),
|
||||
"getElementById(\"\") called, fix caller?");
|
||||
NS_ASSERTION(!aElementId.IsEmpty(),
|
||||
"getElementById(\"\") called, fix caller?");
|
||||
|
||||
if (mRootContent && !aElementId.IsEmpty()) {
|
||||
e = nsContentUtils::MatchElementId(mRootContent, idAtom);
|
||||
@@ -3534,7 +3534,7 @@ nsHTMLDocument::CreateAndAddWyciwygChannel(void)
|
||||
channel->SetOriginalURI(wcwgURI);
|
||||
|
||||
rv = loadGroup->AddRequest(mWyciwygChannel, nsnull);
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Failed to add request to load group.");
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "Failed to add request to load group.");
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user