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

@@ -146,7 +146,7 @@ nsHtml5TreeOpExecutor::DidBuildModel(bool aTerminated)
// This comes from nsXMLContentSink and nsHTMLContentSink
// If this parser has been marked as broken, treat the end of parse as
// forced termination.
DidBuildModelImpl(aTerminated || IsBroken());
DidBuildModelImpl(aTerminated || NS_FAILED(IsBroken()));
if (!mLayoutStarted) {
// We never saw the body, and layout never got started. Force
@@ -480,7 +480,7 @@ nsHtml5TreeOpExecutor::RunFlushLoop()
return;
}
if (IsBroken()) {
if (NS_FAILED(IsBroken())) {
return;
}
@@ -936,7 +936,7 @@ nsHtml5TreeOpExecutor::Reset()
mFlushState = eNotFlushing;
mRunFlushLoopOnStack = false;
MOZ_ASSERT(!mReadingFromStage);
MOZ_ASSERT(!mBroken);
MOZ_ASSERT(NS_SUCCEEDED(mBroken));
}
void