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

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

Issue 2742253002: Move cursor property to be generated in ComputedStyleBase. (Closed)
Patch Set: Rebase Created 3 years, 9 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 ce922e3cd2d94724c2c75a0948635785b339d706..97b573935e24fad7d172c1fdb709a6c3dc98869d 100644
--- a/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSValueIDMappings.h
@@ -65,6 +65,15 @@ inline WritingMode cssValueIDToPlatformEnum(CSSValueID v) {
return WritingMode::kHorizontalTb;
}
+template <>
+inline ECursor cssValueIDToPlatformEnum(CSSValueID v) {
+ if (v == CSSValueWebkitZoomIn)
+ return ECursor::kZoomIn;
+ if (v == CSSValueWebkitZoomOut)
+ return ECursor::kZoomOut;
+ return detail::cssValueIDToPlatformEnumGenerated<ECursor>(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