Bug 782602 - Use NS_FAILED instead of boolean test (parser/html/); r=hsivonen

This commit is contained in:
Aryeh Gregor
2012-08-14 12:10:41 +03:00
parent 5b01f29a20
commit 72c6ba883e
3 changed files with 5 additions and 5 deletions

View File

@@ -587,7 +587,7 @@ nsHtml5Parser::IsScriptCreated()
void
nsHtml5Parser::ParseUntilBlocked()
{
if (mBlocked || mExecutor->IsComplete() || mExecutor->IsBroken()) {
if (mBlocked || mExecutor->IsComplete() || NS_FAILED(mExecutor->IsBroken())) {
return;
}
NS_ASSERTION(mExecutor->HasStarted(), "Bad life cycle.");