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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.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/CSSPropertyParserHelpers.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
index 01574b5f2b11ff0b285f5480da2434a7617a61ad..de3810017f55b2847e8efa4975ed91617d42617c 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
@@ -96,7 +96,7 @@ bool consumeSlashIncludingWhitespace(CSSParserTokenRange& range) {
}
CSSParserTokenRange consumeFunction(CSSParserTokenRange& range) {
- ASSERT(range.peek().type() == FunctionToken);
+ DCHECK_EQ(range.peek().type(), FunctionToken);
CSSParserTokenRange contents = range.consumeBlock();
range.consumeWhitespace();
contents.consumeWhitespace();
@@ -428,7 +428,7 @@ StringView consumeUrlAsStringView(CSSParserTokenRange& range) {
const CSSParserToken& next = urlArgs.consumeIncludingWhitespace();
if (next.type() == BadStringToken || !urlArgs.atEnd())
return StringView();
- ASSERT(next.type() == StringToken);
+ DCHECK_EQ(next.type(), StringToken);
range = urlRange;
range.consumeWhitespace();
return next.value();
@@ -457,7 +457,7 @@ static int clampRGBComponent(const CSSPrimitiveValue& value) {
static bool parseRGBParameters(CSSParserTokenRange& range,
RGBA32& result,
bool parseAlpha) {
- ASSERT(range.peek().functionId() == CSSValueRgb ||
+ DCHECK(range.peek().functionId() == CSSValueRgb ||
range.peek().functionId() == CSSValueRgba);
CSSParserTokenRange args = consumeFunction(range);
CSSPrimitiveValue* colorParameter = consumeInteger(args);
@@ -497,7 +497,7 @@ static bool parseRGBParameters(CSSParserTokenRange& range,
static bool parseHSLParameters(CSSParserTokenRange& range,
RGBA32& result,
bool parseAlpha) {
- ASSERT(range.peek().functionId() == CSSValueHsl ||
+ DCHECK(range.peek().functionId() == CSSValueHsl ||
range.peek().functionId() == CSSValueHsla);
CSSParserTokenRange args = consumeFunction(range);
CSSPrimitiveValue* hslValue = consumeNumber(args, ValueRangeAll);

Powered by Google App Engine
This is Rietveld 408576698