зеркало из https://github.com/mozilla/pjs.git
119038 - Make sure that WillResume() and WillInterrupt() get called on the sink. This should fix the fast loader assertion. r=heikki, sr=brendan
This commit is contained in:
Родитель
720ebc13e5
Коммит
d90fad4f02
|
@ -163,7 +163,7 @@ public:
|
|||
* @update gess5/18/98
|
||||
* @return ignored
|
||||
*/
|
||||
NS_IMETHOD WillResumeParse(nsIContentSink* aSink = 0) = 0;
|
||||
NS_IMETHOD WillResumeParse(nsIContentSink* aSink) = 0;
|
||||
|
||||
/**
|
||||
* If the parse process gets interrupted, this method is called by
|
||||
|
@ -171,7 +171,7 @@ public:
|
|||
* @update gess5/18/98
|
||||
* @return ignored
|
||||
*/
|
||||
NS_IMETHOD WillInterruptParse(nsIContentSink* aSink = 0) = 0;
|
||||
NS_IMETHOD WillInterruptParse(nsIContentSink* aSink) = 0;
|
||||
|
||||
/**
|
||||
* This method is called to determine whether or not a tag of one
|
||||
|
|
|
@ -1823,7 +1823,7 @@ nsresult nsParser::ResumeParse(PRBool allowIteration, PRBool aIsFinalChunk, PRBo
|
|||
result=WillBuildModel(mParserContext->mScanner->GetFilename());
|
||||
if(mParserContext->mDTD) {
|
||||
|
||||
mParserContext->mDTD->WillResumeParse();
|
||||
mParserContext->mDTD->WillResumeParse(mSink);
|
||||
PRBool theFirstTime=PR_TRUE;
|
||||
PRBool theIterationIsOk=(theFirstTime || allowIteration||(!mParserContext->mPrevContext));
|
||||
|
||||
|
@ -1930,7 +1930,7 @@ nsresult nsParser::ResumeParse(PRBool allowIteration, PRBool aIsFinalChunk, PRBo
|
|||
if((kEOF==theTokenizerResult) || (result==NS_ERROR_HTMLPARSER_INTERRUPTED)) {
|
||||
result = (result == NS_ERROR_HTMLPARSER_INTERRUPTED) ? NS_OK : result;
|
||||
if (mParserContext->mDTD) {
|
||||
mParserContext->mDTD->WillInterruptParse();
|
||||
mParserContext->mDTD->WillInterruptParse(mSink);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ public:
|
|||
* @update gess5/18/98
|
||||
* @return ignored
|
||||
*/
|
||||
NS_IMETHOD WillResumeParse(nsIContentSink* aSink = 0) = 0;
|
||||
NS_IMETHOD WillResumeParse(nsIContentSink* aSink) = 0;
|
||||
|
||||
/**
|
||||
* If the parse process gets interrupted, this method is called by
|
||||
|
@ -171,7 +171,7 @@ public:
|
|||
* @update gess5/18/98
|
||||
* @return ignored
|
||||
*/
|
||||
NS_IMETHOD WillInterruptParse(nsIContentSink* aSink = 0) = 0;
|
||||
NS_IMETHOD WillInterruptParse(nsIContentSink* aSink) = 0;
|
||||
|
||||
/**
|
||||
* This method is called to determine whether or not a tag of one
|
||||
|
|
|
@ -1823,7 +1823,7 @@ nsresult nsParser::ResumeParse(PRBool allowIteration, PRBool aIsFinalChunk, PRBo
|
|||
result=WillBuildModel(mParserContext->mScanner->GetFilename());
|
||||
if(mParserContext->mDTD) {
|
||||
|
||||
mParserContext->mDTD->WillResumeParse();
|
||||
mParserContext->mDTD->WillResumeParse(mSink);
|
||||
PRBool theFirstTime=PR_TRUE;
|
||||
PRBool theIterationIsOk=(theFirstTime || allowIteration||(!mParserContext->mPrevContext));
|
||||
|
||||
|
@ -1930,7 +1930,7 @@ nsresult nsParser::ResumeParse(PRBool allowIteration, PRBool aIsFinalChunk, PRBo
|
|||
if((kEOF==theTokenizerResult) || (result==NS_ERROR_HTMLPARSER_INTERRUPTED)) {
|
||||
result = (result == NS_ERROR_HTMLPARSER_INTERRUPTED) ? NS_OK : result;
|
||||
if (mParserContext->mDTD) {
|
||||
mParserContext->mDTD->WillInterruptParse();
|
||||
mParserContext->mDTD->WillInterruptParse(mSink);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче