Fix for
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user