Bug 543930 - Assertion misplaced after code additions above a disconnected #ifdefed else branch. r=bzbarsky.

This commit is contained in:
Henri Sivonen 2010-02-03 10:53:58 +02:00
Родитель 6689c25b48
Коммит 480b328989
1 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -691,6 +691,12 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
mCompatMode = eCompatibility_FullStandards;
loadAsHtml5 = PR_FALSE;
}
#ifdef DEBUG
else {
NS_ASSERTION(mIsRegularHTML,
"Hey, someone forgot to reset mIsRegularHTML!!!");
}
#endif
if (loadAsHtml5 &&
!(contentType.EqualsLiteral("text/html") &&
@ -716,13 +722,6 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
}
}
#ifdef DEBUG
else {
NS_ASSERTION(mIsRegularHTML,
"Hey, someone forgot to reset mIsRegularHTML!!!");
}
#endif
CSSLoader()->SetCompatibilityMode(mCompatMode);
PRBool needsParser = PR_TRUE;