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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLTokenizer.h

Issue 2751483005: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/html/parser/ (Closed)
Patch Set: rebase Created 3 years, 9 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
Index: third_party/WebKit/Source/core/html/parser/HTMLTokenizer.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLTokenizer.h b/third_party/WebKit/Source/core/html/parser/HTMLTokenizer.h
index 50b3717b3960f78a7a4c5c5d5de0009c109e680a..fc0213e481ae364347621248b16fd34c725674a6 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLTokenizer.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLTokenizer.h
@@ -204,7 +204,7 @@ class CORE_EXPORT HTMLTokenizer {
inline void parseError();
inline void bufferCharacter(UChar character) {
- ASSERT(character != kEndOfFileMarker);
+ DCHECK_NE(character, kEndOfFileMarker);
m_token->ensureIsCharacterToken();
m_token->appendToCharacter(character);
}
@@ -245,7 +245,7 @@ class CORE_EXPORT HTMLTokenizer {
inline void addToPossibleEndTag(LChar cc);
inline void saveEndTagNameIfNeeded() {
- ASSERT(m_token->type() != HTMLToken::Uninitialized);
+ DCHECK_NE(m_token->type(), HTMLToken::Uninitialized);
if (m_token->type() == HTMLToken::StartTag)
m_appropriateEndTagName = m_token->name();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLToken.h ('k') | third_party/WebKit/Source/core/html/parser/HTMLTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698