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

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

Issue 2911963004: Generate enum/getters/setters/mappings for user-select. (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..cca59a6fb118975958775800e520f26dc5e3c9ba 100644
--- a/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
@@ -83,6 +83,13 @@ inline EDisplay CssValueIDToPlatformEnum(CSSValueID v) {
return detail::cssValueIDToPlatformEnumGenerated<EDisplay>(v);
}
+template <>
+inline EUserSelect CssValueIDToPlatformEnum(CSSValueID v) {
+ if (v == CSSValueAuto)
+ return EUserSelect::kText;
+ return detail::cssValueIDToPlatformEnumGenerated<EUserSelect>(v);
+}
+
} // namespace blink
#endif
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698