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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 2366243002: Remove all ordering requirements in CSSValueKeywords.in (WIP) (Closed)
Patch Set: Some mor efixes 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/resolver/StyleBuilderCustom.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
index d4f085bcd3c6ff89be5f7899d8d47384ff08ba4d..4dd5087e64ec9cd8ede0e3e498e5f1ddf59ff7bf 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -791,9 +791,10 @@ void StyleBuilderFunctions::applyValueCSSPropertyContent(
const CSSCounterValue* counterValue = toCSSCounterValue(item.get());
EListStyleType listStyleType = NoneListStyle;
CSSValueID listStyleIdent = counterValue->listStyle();
- if (listStyleIdent != CSSValueNone)
+ if (listStyleIdent != CSSValueNone) {
listStyleType =
- static_cast<EListStyleType>(listStyleIdent - CSSValueDisc);
+ CSSValueIDToPlatformEnum<EListStyleType>(listStyleIdent);
+ }
std::unique_ptr<CounterContent> counter = wrapUnique(new CounterContent(
AtomicString(counterValue->identifier()), listStyleType,
AtomicString(counterValue->separator())));

Powered by Google App Engine
This is Rietveld 408576698