From 2021662efc0e7354aa610d5b927e388e4dc98fd1 Mon Sep 17 00:00:00 2001 From: Peter Van der Beken Date: Mon, 14 Feb 2022 13:03:45 +0000 Subject: [PATCH] Bug 1749935 - Remove unused NS_PARSER_FLAG_OBSERVERS_ENABLED and NS_PARSER_FLAG_FLUSH_TOKENS. r=hsivonen Differential Revision: https://phabricator.services.mozilla.com/D135842 --- parser/htmlparser/nsExpatDriver.cpp | 2 +- parser/htmlparser/nsHTMLTokenizer.cpp | 3 +-- parser/htmlparser/nsITokenizer.h | 4 ++-- parser/htmlparser/nsParser.cpp | 26 ++++---------------------- 4 files changed, 8 insertions(+), 27 deletions(-) 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; } }