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

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

Issue 2916523002: Generate enum/getters/setters/mappings for text-combine-upright. (Closed)
Patch Set: shend@ suggestions 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..f99e804f47b42c6bb27043e3bc391ddc6c1ea4a5 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) // -webkit-text-combine
+ 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