Commit ab67b3f8 authored by kouhei@chromium.org's avatar kouhei@chromium.org

remove DocumentParser::startParsing()

This CL removes |DocumentParser::startParsing()|.
This was only used from XMLDocumentParser, but it was a no-op.
The method initializes |m_state| to |ParsingState|, however the state should
already be in |ParsingState| from c-tor initializer.

BUG=404107

Review URL: https://codereview.chromium.org/471423002

git-svn-id: svn://svn.chromium.org/blink/trunk@180425 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3a11771d
......@@ -65,11 +65,6 @@ TextResourceDecoder* DocumentParser::decoder()
return 0;
}
void DocumentParser::startParsing()
{
m_state = ParsingState;
}
void DocumentParser::prepareToStopParsing()
{
ASSERT(m_state == ParsingState);
......
......@@ -79,9 +79,6 @@ public:
bool isStopped() const { return m_state >= StoppedState; }
bool isDetached() const { return m_state == DetachedState; }
// FIXME: Is this necessary? Does XMLDocumentParserLibxml2 really need to set this?
virtual void startParsing();
// prepareToStop() is used when the EOF token is encountered and parsing is to be
// stopped normally.
virtual void prepareToStopParsing();
......
......@@ -1434,7 +1434,6 @@ void XMLDocumentParser::initializeParserContext(const CString& chunk)
sax.ignorableWhitespace = ignorableWhitespaceHandler;
sax.entityDecl = xmlSAX2EntityDecl;
sax.initialized = XML_SAX2_MAGIC;
DocumentParser::startParsing();
m_sawError = false;
m_sawCSS = false;
m_sawXSLTransform = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment