Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent MozReview-Commit-ID: KuUsnVe2h8L
This commit is contained in:
@@ -785,7 +785,7 @@ HTMLContentSink::DidBuildModel(bool aTerminated)
|
||||
NS_IMETHODIMP
|
||||
HTMLContentSink::SetParser(nsParserBase* aParser)
|
||||
{
|
||||
NS_PRECONDITION(aParser, "Should have a parser here!");
|
||||
MOZ_ASSERT(aParser, "Should have a parser here!");
|
||||
mParser = aParser;
|
||||
return NS_OK;
|
||||
}
|
||||
@@ -968,7 +968,7 @@ HTMLContentSink::NotifyInsert(nsIContent* aContent,
|
||||
void
|
||||
HTMLContentSink::NotifyRootInsertion()
|
||||
{
|
||||
NS_PRECONDITION(!mNotifiedRootInsertion, "Double-notifying on root?");
|
||||
MOZ_ASSERT(!mNotifiedRootInsertion, "Double-notifying on root?");
|
||||
NS_ASSERTION(!mLayoutStarted,
|
||||
"How did we start layout without notifying on root?");
|
||||
// Now make sure to notify that we have now inserted our root. If
|
||||
|
||||
Reference in New Issue
Block a user