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

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

Issue 2913723002: Generate enum/getters/setters/mappings for text-orientation. (Closed)
Patch Set: Rebase 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..e22888af9cdf26f18c63702a2fcd3ed969b27ffb 100644
--- a/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
@@ -43,6 +43,15 @@ inline ETextAlign CssValueIDToPlatformEnum(CSSValueID v) {
}
template <>
+inline ETextOrientation CssValueIDToPlatformEnum(CSSValueID v) {
+ if (v == CSSValueSidewaysRight) // Legacy -webkit-auto. Eqiuvalent to start.
+ return ETextOrientation::kSideways;
+ if (v == CSSValueVerticalRight)
+ return ETextOrientation::kMixed;
+ return detail::cssValueIDToPlatformEnumGenerated<ETextOrientation>(v);
+}
+
+template <>
inline WritingMode CssValueIDToPlatformEnum(CSSValueID v) {
switch (v) {
case CSSValueHorizontalTb:

Powered by Google App Engine
This is Rietveld 408576698