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); |