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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. 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/css/parser/CSSParserTokenRange.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.cpp
index 1ebc8b3ecd4ba928e594200d712254ecdbb4ede8..dd8c3765893c84a3df84f51301a19b1a812c0f92 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.cpp
@@ -22,12 +22,12 @@ CSSParserTokenRange CSSParserTokenRange::makeSubRange(
first = m_last;
if (last == &staticEOFToken)
last = m_last;
- ASSERT(first <= last);
+ DCHECK_LE(first, last);
return CSSParserTokenRange(first, last);
}
CSSParserTokenRange CSSParserTokenRange::consumeBlock() {
- ASSERT(peek().getBlockType() == CSSParserToken::BlockStart);
+ DCHECK_EQ(peek().getBlockType(), CSSParserToken::BlockStart);
const CSSParserToken* start = &peek() + 1;
unsigned nestingLevel = 0;
do {

Powered by Google App Engine
This is Rietveld 408576698