mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
fixed a state problem in parser related to nesting levels
This commit is contained in:
parent
5639f27847
commit
7693865115
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user