fixed a state problem in parser related to nesting levels

This commit is contained in:
rickg%netscape.com 1998-07-25 01:02:01 +00:00
parent 5639f27847
commit 7693865115
4 changed files with 6 additions and 2 deletions

View File

@ -427,9 +427,9 @@ nsresult CNavDTD::WillBuildModel(nsString& aFilename,PRInt32 aLevel){
nsresult result=NS_OK;
mFilename=aFilename;
mLineNumber=1;
if((1==aLevel) && (mSink)) {
mLineNumber=1;
result = mSink->WillBuildModel();
}

View File

@ -497,6 +497,7 @@ PRInt32 nsParser::Parse(fstream& aStream){
pc=PopContext();
delete pc;
mParseLevel--;
return status;
}
@ -528,6 +529,7 @@ PRInt32 nsParser::Parse(nsString& aSourceBuffer,PRBool anHTMLString){
}
pc=PopContext();
delete pc;
mParseLevel--;
return result;
}

View File

@ -427,9 +427,9 @@ nsresult CNavDTD::WillBuildModel(nsString& aFilename,PRInt32 aLevel){
nsresult result=NS_OK;
mFilename=aFilename;
mLineNumber=1;
if((1==aLevel) && (mSink)) {
mLineNumber=1;
result = mSink->WillBuildModel();
}

View File

@ -497,6 +497,7 @@ PRInt32 nsParser::Parse(fstream& aStream){
pc=PopContext();
delete pc;
mParseLevel--;
return status;
}
@ -528,6 +529,7 @@ PRInt32 nsParser::Parse(nsString& aSourceBuffer,PRBool anHTMLString){
}
pc=PopContext();
delete pc;
mParseLevel--;
return result;
}