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

Unified Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 1293793007: Unprefix min-content, max-content, fit-content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: unprefix more tests Created 5 years, 4 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: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index 1a7dd782a11896b30b0c432d377037f9a86c6bfd..4406c74575a134559b02dcbd7d0d9a16b46b36a1 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -369,7 +369,9 @@ static bool isGeneratedImageValue(CSSParserValue* val)
bool CSSPropertyParser::validWidthOrHeight(CSSParserValue* value, Units unitless)
{
int id = value->id;
- if (id == CSSValueIntrinsic || id == CSSValueMinIntrinsic || id == CSSValueWebkitMinContent || id == CSSValueWebkitMaxContent || id == CSSValueWebkitFillAvailable || id == CSSValueWebkitFitContent) {
+ if (id == CSSValueIntrinsic || id == CSSValueMinIntrinsic
+ || id == CSSValueWebkitMinContent || id == CSSValueWebkitMaxContent || id == CSSValueWebkitFillAvailable || id == CSSValueWebkitFitContent
+ || id == CSSValueMinContent || id == CSSValueMaxContent || id == CSSValueFitContent) {
if (m_context.useCounter()) {
switch (value->id) {
case CSSValueIntrinsic:
@@ -391,7 +393,7 @@ bool CSSPropertyParser::validWidthOrHeight(CSSParserValue* value, Units unitless
m_context.useCounter()->count(UseCounter::CSSValuePrefixedFitContent);
break;
default:
- ASSERT_NOT_REACHED();
+ break;
}
}
return true;

Powered by Google App Engine
This is Rietveld 408576698