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

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

Issue 682893002: Parse comments according to parsing.md (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 | « sky/engine/core/html/parser/CompactHTMLToken.cpp ('k') | sky/engine/core/html/parser/HTMLTokenizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLToken.h
diff --git a/sky/engine/core/html/parser/HTMLToken.h b/sky/engine/core/html/parser/HTMLToken.h
index 2934593421732cd916b1d0604b2e3689037d4f70..d716906bbf7247d908ec3b5ca2f32f7fde64a385 100644
--- a/sky/engine/core/html/parser/HTMLToken.h
+++ b/sky/engine/core/html/parser/HTMLToken.h
@@ -50,7 +50,6 @@ public:
Uninitialized,
StartTag,
EndTag,
- Comment,
Character,
EndOfFile,
};
@@ -114,7 +113,7 @@ public:
const DataVector& data() const
{
- ASSERT(m_type == Character || m_type == Comment || m_type == StartTag || m_type == EndTag);
+ ASSERT(m_type == Character || m_type == StartTag || m_type == EndTag);
return m_data;
}
@@ -298,28 +297,6 @@ public:
m_data.appendVector(characters);
}
- /* Comment Tokens */
-
- const DataVector& comment() const
- {
- ASSERT(m_type == Comment);
- return m_data;
- }
-
- void beginComment()
- {
- ASSERT(m_type == Uninitialized);
- m_type = Comment;
- }
-
- void appendToComment(UChar character)
- {
- ASSERT(character);
- ASSERT(m_type == Comment);
- m_data.append(character);
- m_orAllData |= character;
- }
-
private:
Type m_type;
Attribute::Range m_range; // Always starts at zero.
« no previous file with comments | « sky/engine/core/html/parser/CompactHTMLToken.cpp ('k') | sky/engine/core/html/parser/HTMLTokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698