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

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

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/HTMLTokenizer.cpp ('k') | sky/tests/parser/comments.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLTreeBuilder.cpp
diff --git a/sky/engine/core/html/parser/HTMLTreeBuilder.cpp b/sky/engine/core/html/parser/HTMLTreeBuilder.cpp
index 89fc3a85492e3d31c01bc31f651bc5ecc318019f..710a99df3c15da05a024bd78d5d821ae84ef7858 100644
--- a/sky/engine/core/html/parser/HTMLTreeBuilder.cpp
+++ b/sky/engine/core/html/parser/HTMLTreeBuilder.cpp
@@ -128,8 +128,7 @@ void HTMLTreeBuilder::constructTree(AtomicHTMLToken* token)
} else if (type == HTMLToken::EndOfFile) {
processEndOfFile(token);
} else {
- // We ignore Comments.
- ASSERT(type == HTMLToken::Comment);
+ ASSERT_NOT_REACHED();
}
m_tree.executeQueuedTasks();
« no previous file with comments | « sky/engine/core/html/parser/HTMLTokenizer.cpp ('k') | sky/tests/parser/comments.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698