38601 - Calling DidBuildModel(), through nsParser::Terminate(),
        for documents stopped abruptly ( stopped before a complete load ).
Fixed a few warnings.
r=nisheeth


git-svn-id: svn://10.0.0.236/trunk@69863 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2000-05-15 21:08:57 +00:00
parent 7223f6a8e3
commit 0389aba1fa
8 changed files with 18 additions and 18 deletions

View File

@@ -1049,9 +1049,13 @@ void nsParser::SetUnusedInput(nsString& aBuffer) {
*/
nsresult nsParser::Terminate(void){
nsresult result=NS_OK;
if(mParserContext && mParserContext->mDTD)
if(mParserContext && mParserContext->mDTD) {
result=mParserContext->mDTD->Terminate();
mInternalState=result;
if(result==NS_ERROR_HTMLPARSER_STOPPARSING) {
mInternalState=result;
result=DidBuildModel(result);
}
}
return result;
}