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

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

Issue 678903002: Remove more unused HTMLTokenizer features (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « no previous file | 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 243e9982f6cd66dbbcb435b24effd3ae66da74a3..3e31f9675d3d690655f37f542c22bc6c6820550e 100644
--- a/sky/engine/core/html/parser/HTMLTokenizer.h
+++ b/sky/engine/core/html/parser/HTMLTokenizer.h
@@ -47,7 +47,6 @@ public:
CharacterReferenceInDataState,
RAWTEXTState,
ScriptDataState,
- PLAINTEXTState,
TagOpenState,
EndTagOpenState,
TagNameState,
@@ -100,35 +99,6 @@ public:
// they call reset() first).
bool nextToken(SegmentedString&, HTMLToken&);
- // Returns a copy of any characters buffered internally by the tokenizer.
- // The tokenizer buffers characters when searching for the </script> token
- // that terminates a script element.
- String bufferedCharacters() const;
-
- size_t numberOfBufferedCharacters() const
- {
- // Notice that we add 2 to the length of the m_temporaryBuffer to
- // account for the "</" characters, which are effecitvely buffered in
- // the tokenizer's state machine.
- return m_temporaryBuffer.size() ? m_temporaryBuffer.size() + 2 : 0;
- }
-
- // Updates the tokenizer's state according to the given tag name. This is
- // an approximation of how the tree builder would update the tokenizer's
- // state. This method is useful for approximating HTML tokenization. To
- // get exactly the correct tokenization, you need the real tree builder.
- //
- // The main failures in the approximation are as follows:
- //
- // * The first set of character tokens emitted for a <pre> element might
- // contain an extra leading newline.
- // * The replacement of U+0000 with U+FFFD will not be sensitive to the
- // tree builder's insertion mode.
- // * CDATA sections in foreign content will be tokenized as bogus comments
- // instead of as character tokens.
- //
- void updateStateFor(const String& tagName);
-
State state() const { return m_state; }
void setState(State state) { m_state = state; }
« no previous file with comments | « no previous file | sky/engine/core/html/parser/HTMLTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698