Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Unified Diff: sky/engine/core/html/parser/HTMLTokenizer.cpp

Issue 676133002: Remove HTMLParserOptions (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixup Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/parser/HTMLTokenizer.h ('k') | sky/engine/core/html/parser/HTMLTreeBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLTokenizer.cpp
diff --git a/sky/engine/core/html/parser/HTMLTokenizer.cpp b/sky/engine/core/html/parser/HTMLTokenizer.cpp
index e64cfbea3b17476645ca7c6f5eb3b16b06a488c8..ee05b5d1120c5348e8ce36a97125e88a1952294c 100644
--- a/sky/engine/core/html/parser/HTMLTokenizer.cpp
+++ b/sky/engine/core/html/parser/HTMLTokenizer.cpp
@@ -101,9 +101,8 @@ static inline bool isEndTagBufferingState(HTMLTokenizer::State state)
#define HTML_ADVANCE_TO(stateName) ADVANCE_TO(HTMLTokenizer, stateName)
#define HTML_SWITCH_TO(stateName) SWITCH_TO(HTMLTokenizer, stateName)
-HTMLTokenizer::HTMLTokenizer(const HTMLParserOptions& options)
+HTMLTokenizer::HTMLTokenizer()
: m_inputStreamPreprocessor(this)
- , m_options(options)
{
reset();
}
@@ -119,35 +118,6 @@ void HTMLTokenizer::reset()
m_additionalAllowedCharacter = '\0';
}
-bool HTMLTokenizer::canCreateCheckpoint() const
-{
- if (!m_appropriateEndTagName.isEmpty())
- return false;
- if (!m_temporaryBuffer.isEmpty())
- return false;
- if (!m_bufferedEndTagName.isEmpty())
- return false;
- return true;
-}
-
-void HTMLTokenizer::createCheckpoint(Checkpoint& result) const
-{
- ASSERT(canCreateCheckpoint());
- result.options = m_options;
- result.state = m_state;
- result.additionalAllowedCharacter = m_additionalAllowedCharacter;
- result.skipNextNewLine = m_inputStreamPreprocessor.skipNextNewLine();
-}
-
-void HTMLTokenizer::restoreFromCheckpoint(const Checkpoint& checkpoint)
-{
- m_token = 0;
- m_options = checkpoint.options;
- m_state = checkpoint.state;
- m_additionalAllowedCharacter = checkpoint.additionalAllowedCharacter;
- m_inputStreamPreprocessor.reset(checkpoint.skipNextNewLine);
-}
-
inline bool HTMLTokenizer::processEntity(SegmentedString& source)
{
bool notEnoughCharacters = false;
« no previous file with comments | « sky/engine/core/html/parser/HTMLTokenizer.h ('k') | sky/engine/core/html/parser/HTMLTreeBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698