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

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

Issue 2777793002: Refactored out need to use CSSPropertyID to parse counter properties. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index 74aa3fbf21b20bbf860a9e9468f641f10c2c8a53..b35fda0aaa17b11f89f88d6c65c13c11e9eb877e 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1864,9 +1864,9 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
case CSSPropertyFontWeight:
return CSSPropertyFontUtils::consumeFontWeight(m_range);
case CSSPropertyCounterIncrement:
+ return consumeCounter(m_range, 1);
suzyh_UTC10 (ex-contributor) 2017/03/27 04:29:57 These magic numbers should be replaced with meanin
case CSSPropertyCounterReset:
- return consumeCounter(m_range,
- property == CSSPropertyCounterIncrement ? 1 : 0);
+ return consumeCounter(m_range, 0);
case CSSPropertyMaxWidth:
case CSSPropertyMaxHeight:
return CSSPropertyLengthUtils::consumeMaxWidthOrHeight(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698