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

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

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/HTMLParserOptions.cpp ('k') | sky/engine/core/html/parser/HTMLTokenizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLTokenizer.h
diff --git a/sky/engine/core/html/parser/HTMLTokenizer.h b/sky/engine/core/html/parser/HTMLTokenizer.h
index 1e66a8c4e4d82c284e5e3e73601ae1083bb5c984..243e9982f6cd66dbbcb435b24effd3ae66da74a3 100644
--- a/sky/engine/core/html/parser/HTMLTokenizer.h
+++ b/sky/engine/core/html/parser/HTMLTokenizer.h
@@ -27,7 +27,6 @@
#ifndef HTMLTokenizer_h
#define HTMLTokenizer_h
-#include "core/html/parser/HTMLParserOptions.h"
#include "core/html/parser/HTMLToken.h"
#include "core/html/parser/InputStreamPreprocessor.h"
#include "platform/text/SegmentedString.h"
@@ -38,7 +37,7 @@ class HTMLTokenizer {
WTF_MAKE_NONCOPYABLE(HTMLTokenizer);
WTF_MAKE_FAST_ALLOCATED;
public:
- static PassOwnPtr<HTMLTokenizer> create(const HTMLParserOptions& options) { return adoptPtr(new HTMLTokenizer(options)); }
+ static PassOwnPtr<HTMLTokenizer> create() { return adoptPtr(new HTMLTokenizer()); }
~HTMLTokenizer();
void reset();
@@ -96,25 +95,6 @@ public:
CommentEndBangState,
};
- struct Checkpoint {
- HTMLParserOptions options;
- State state;
- UChar additionalAllowedCharacter;
- bool skipNextNewLine;
-
- Checkpoint()
- : options(0)
- , state()
- , additionalAllowedCharacter('\0')
- , skipNextNewLine(false)
- {
- }
- };
-
- bool canCreateCheckpoint() const;
- void createCheckpoint(Checkpoint&) const;
- void restoreFromCheckpoint(const Checkpoint&);
-
// This function returns true if it emits a token. Otherwise, callers
// must provide the same (in progress) token on the next call (unless
// they call reset() first).
@@ -153,7 +133,7 @@ public:
void setState(State state) { m_state = state; }
private:
- explicit HTMLTokenizer(const HTMLParserOptions&);
+ HTMLTokenizer();
inline bool processEntity(SegmentedString&);
@@ -239,8 +219,6 @@ private:
// token (e.g., when lexing script). We buffer the name of the end tag
// token here so we remember it next time we re-enter the tokenizer.
Vector<LChar, 32> m_bufferedEndTagName;
-
- HTMLParserOptions m_options;
};
}
« no previous file with comments | « sky/engine/core/html/parser/HTMLParserOptions.cpp ('k') | sky/engine/core/html/parser/HTMLTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698