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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2367293002: Changed EListStyleType to an enum class and renamed its members to keywords (Closed)
Patch Set: Final patch + formatting Created 4 years, 1 month 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/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index acbc03e5766f9903ec16a22f27d14748ae6aa8a0..0c8ab2472cb5acb14d08a98fa94207d8f447c4ba 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -1481,9 +1481,12 @@ static CSSValue* valueForContentData(const ComputedStyle& style) {
CSSCustomIdentValue::create(counter->identifier());
CSSStringValue* separator = CSSStringValue::create(counter->separator());
CSSValueID listStyleIdent = CSSValueNone;
- if (counter->listStyle() != NoneListStyle)
+ if (counter->listStyle() != EListStyleType::NoneListStyle) {
+ // TODO(sashab): Change this to use a converter instead of
+ // CSSPrimitiveValueMappings.
listStyleIdent =
- static_cast<CSSValueID>(CSSValueDisc + counter->listStyle());
+ CSSIdentifierValue::create(counter->listStyle())->getValueID();
+ }
CSSIdentifierValue* listStyle =
CSSIdentifierValue::create(listStyleIdent);
list->append(*CSSCounterValue::create(identifier, listStyle, separator));

Powered by Google App Engine
This is Rietveld 408576698