Bug 5569. Make sure that Terminate() can propogate DidBuildModel() to the sink, and that the sink will ensure an initial reflow has occurred. r=harishd, sr=jst

git-svn-id: svn://10.0.0.236/trunk@91801 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2001-04-10 00:49:49 +00:00
parent 30ef619211
commit 957ccfdaba
3 changed files with 17 additions and 9 deletions

View File

@@ -1414,7 +1414,7 @@ nsresult nsParser::DidBuildModel(nsresult anErrorCode) {
//One last thing...close any open containers.
nsresult result=anErrorCode;
if(mParserEnabled && mParserContext && !mParserContext->mPrevContext) {
if(mParserContext && !mParserContext->mPrevContext) {
if(mParserContext->mDTD) {
result=mParserContext->mDTD->DidBuildModel(anErrorCode,PRBool(0==mParserContext->mPrevContext),this,mSink);
}
@@ -1491,11 +1491,10 @@ nsresult nsParser::Terminate(void){
// Hack - Hold a reference until we are completely done...
nsCOMPtr<nsIParser> kungFuDeathGrip(this);
mInternalState=result;
result=DidBuildModel(result);
return result;
DidBuildModel(result);
}
}
return mInternalState;
return result;
}