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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp

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/HTMLSourceTracker.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp b/third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp
index e4e329fb837e227f1a88132dd33f1bb8023c5c6c..75c7be0cecfaba3f067da4e6e6c5d5ab8f45a803 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLSourceTracker.cpp
@@ -76,7 +76,7 @@ String HTMLSourceTracker::sourceForToken(const HTMLToken& token) {
// mark the end of the file.
length = m_previousSource.length() + m_currentSource.length() - 1;
} else {
- ASSERT(!token.startIndex());
+ DCHECK(!token.startIndex());
length = static_cast<size_t>(token.endIndex() - token.startIndex());
}
@@ -89,7 +89,7 @@ String HTMLSourceTracker::sourceForToken(const HTMLToken& token) {
m_previousSource.advance();
}
for (; i < length; ++i) {
- ASSERT(!m_currentSource.isEmpty());
+ DCHECK(!m_currentSource.isEmpty());
source.append(m_currentSource.currentChar());
m_currentSource.advance();
}

Powered by Google App Engine
This is Rietveld 408576698