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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSValueIDMappings_h 5 #ifndef CSSValueIDMappings_h
6 #define CSSValueIDMappings_h 6 #define CSSValueIDMappings_h
7 7
8 #include "core/CSSValueIDMappingsGenerated.h" 8 #include "core/CSSValueIDMappingsGenerated.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 case CSSValueVerticalLr: 58 case CSSValueVerticalLr:
59 return WritingMode::kVerticalLr; 59 return WritingMode::kVerticalLr;
60 default: 60 default:
61 break; 61 break;
62 } 62 }
63 63
64 NOTREACHED(); 64 NOTREACHED();
65 return WritingMode::kHorizontalTb; 65 return WritingMode::kHorizontalTb;
66 } 66 }
67 67
68 template <>
69 inline ECursor cssValueIDToPlatformEnum(CSSValueID v) {
70 if (v == CSSValueWebkitZoomIn)
71 return ECursor::kZoomIn;
72 if (v == CSSValueWebkitZoomOut)
73 return ECursor::kZoomOut;
74 return detail::cssValueIDToPlatformEnumGenerated<ECursor>(v);
75 }
76
68 } // namespace blink 77 } // namespace blink
69 78
70 #endif 79 #endif
OLDNEW
« 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