diff --git a/htmlparser/public/nsIDTD.h b/htmlparser/public/nsIDTD.h index ac3970b5b09..a57417c63ec 100644 --- a/htmlparser/public/nsIDTD.h +++ b/htmlparser/public/nsIDTD.h @@ -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 diff --git a/htmlparser/src/nsParser.cpp b/htmlparser/src/nsParser.cpp index 4bcc25bad75..eb2e1df4ab9 100644 --- a/htmlparser/src/nsParser.cpp +++ b/htmlparser/src/nsParser.cpp @@ -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); } } diff --git a/parser/htmlparser/public/nsIDTD.h b/parser/htmlparser/public/nsIDTD.h index ac3970b5b09..a57417c63ec 100644 --- a/parser/htmlparser/public/nsIDTD.h +++ b/parser/htmlparser/public/nsIDTD.h @@ -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 diff --git a/parser/htmlparser/src/nsParser.cpp b/parser/htmlparser/src/nsParser.cpp index 4bcc25bad75..eb2e1df4ab9 100644 --- a/parser/htmlparser/src/nsParser.cpp +++ b/parser/htmlparser/src/nsParser.cpp @@ -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); } }