Bug 782602 - Use NS_FAILED instead of boolean test (parser/html/); r=hsivonen
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user