diff --git a/parser/htmlparser/nsExpatDriver.cpp b/parser/htmlparser/nsExpatDriver.cpp index 2d18786f77b6..61fc02a817c1 100644 --- a/parser/htmlparser/nsExpatDriver.cpp +++ b/parser/htmlparser/nsExpatDriver.cpp @@ -1228,7 +1228,7 @@ void nsExpatDriver::ParseBuffer(const char16_t* aBuffer, uint32_t aLength, } NS_IMETHODIMP -nsExpatDriver::ConsumeToken(nsScanner& aScanner, bool& aFlushTokens) { +nsExpatDriver::ConsumeToken(nsScanner& aScanner) { // We keep the scanner pointing to the position where Expat will start // parsing. nsScannerIterator currentExpatPosition; diff --git a/parser/htmlparser/nsHTMLTokenizer.cpp b/parser/htmlparser/nsHTMLTokenizer.cpp index ca4a5c7f4ff2..ed65809a013b 100644 --- a/parser/htmlparser/nsHTMLTokenizer.cpp +++ b/parser/htmlparser/nsHTMLTokenizer.cpp @@ -46,7 +46,6 @@ nsresult nsHTMLTokenizer::WillTokenize(bool aIsFinalChunk) { return NS_OK; } * reach a -- Ref: Bug# 22485 -- - // Also remember to update the marked position. - mFlags |= NS_PARSER_FLAG_FLUSH_TOKENS; - mParserContext->mScanner->Mark(); - break; } }