Create a new instance of the DTD when called by
the JS engine ( only when creating a new parser context ).
r=rickg.
This commit is contained in:
harishd%netscape.com 2000-03-18 06:48:09 +00:00
Родитель 0413d7071d
Коммит 6c8c90c444
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -958,7 +958,7 @@ aContentType,PRBool aVerifyEnabled,PRBool aLastCall,eParseMode aMode){
eAutoDetectResult theStatus=eUnknownDetect;
if(mParserContext && (mParserContext->mSourceType==aContentType)) {
theDTD=mParserContext->mDTD;
mParserContext->mDTD->CreateNewInstance(&theDTD); // To fix bug 32263
theStatus=mParserContext->mAutoDetectStatus;
//added this to fix bug 32022.
@ -966,7 +966,6 @@ aContentType,PRBool aVerifyEnabled,PRBool aLastCall,eParseMode aMode){
pc=new CParserContext(theScanner,aKey, 0,theDTD,theStatus,aLastCall);
if(pc && theScanner) {
PushContext(*pc);

Просмотреть файл

@ -958,7 +958,7 @@ aContentType,PRBool aVerifyEnabled,PRBool aLastCall,eParseMode aMode){
eAutoDetectResult theStatus=eUnknownDetect;
if(mParserContext && (mParserContext->mSourceType==aContentType)) {
theDTD=mParserContext->mDTD;
mParserContext->mDTD->CreateNewInstance(&theDTD); // To fix bug 32263
theStatus=mParserContext->mAutoDetectStatus;
//added this to fix bug 32022.
@ -966,7 +966,6 @@ aContentType,PRBool aVerifyEnabled,PRBool aLastCall,eParseMode aMode){
pc=new CParserContext(theScanner,aKey, 0,theDTD,theStatus,aLastCall);
if(pc && theScanner) {
PushContext(*pc);