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

Unified Diff: third_party/WebKit/Source/core/css/CSSValueIDMappings.h

Issue 2916523002: Generate enum/getters/setters/mappings for text-combine-upright. (Closed)
Patch Set: tests Created 3 years, 7 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: third_party/WebKit/Source/core/css/CSSValueIDMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSValueIDMappings.h b/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
index 260e779c2bc8fc82e486da986609983035c55089..9b52d6a4968e86214f7a070003f0555a49c5b0a8 100644
--- a/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
@@ -34,6 +34,13 @@ inline UnicodeBidi CssValueIDToPlatformEnum(CSSValueID v) {
}
template <>
+inline ETextCombine CssValueIDToPlatformEnum(CSSValueID v) {
+ if (v == CSSValueHorizontal)
shend 2017/05/31 07:53:11 nit: keep the comment from the original code.
nainar 2017/05/31 08:24:40 Done.
+ return ETextCombine::kAll;
+ return detail::cssValueIDToPlatformEnumGenerated<ETextCombine>(v);
+}
+
+template <>
inline ETextAlign CssValueIDToPlatformEnum(CSSValueID v) {
if (v == CSSValueWebkitAuto) // Legacy -webkit-auto. Eqiuvalent to start.
return ETextAlign::kStart;

Powered by Google App Engine
This is Rietveld 408576698