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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserToken.h

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/CSSParserToken.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserToken.h b/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
index 694713c0e529840bbe5aa6471818dca1d58405b9..a82fcbf29f3d1bb7e155996b227beb87ab55abdf 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
@@ -115,7 +115,7 @@ class CORE_EXPORT CSSParserToken {
NumericValueType numericValueType() const;
double numericValue() const;
HashTokenType getHashTokenType() const {
- ASSERT(m_type == HashToken);
+ DCHECK_EQ(m_type, static_cast<unsigned>(HashToken));
return m_hashTokenType;
}
BlockType getBlockType() const { return static_cast<BlockType>(m_blockType); }
@@ -123,11 +123,11 @@ class CORE_EXPORT CSSParserToken {
return static_cast<CSSPrimitiveValue::UnitType>(m_unit);
}
UChar32 unicodeRangeStart() const {
- ASSERT(m_type == UnicodeRangeToken);
+ DCHECK_EQ(m_type, static_cast<unsigned>(UnicodeRangeToken));
return m_unicodeRange.start;
}
UChar32 unicodeRangeEnd() const {
- ASSERT(m_type == UnicodeRangeToken);
+ DCHECK_EQ(m_type, static_cast<unsigned>(UnicodeRangeToken));
return m_unicodeRange.end;
}
CSSValueID id() const;

Powered by Google App Engine
This is Rietveld 408576698