OLD | NEW |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 template <> | 68 template <> |
69 inline ECursor cssValueIDToPlatformEnum(CSSValueID v) { | 69 inline ECursor cssValueIDToPlatformEnum(CSSValueID v) { |
70 if (v == CSSValueWebkitZoomIn) | 70 if (v == CSSValueWebkitZoomIn) |
71 return ECursor::kZoomIn; | 71 return ECursor::kZoomIn; |
72 if (v == CSSValueWebkitZoomOut) | 72 if (v == CSSValueWebkitZoomOut) |
73 return ECursor::kZoomOut; | 73 return ECursor::kZoomOut; |
74 return detail::cssValueIDToPlatformEnumGenerated<ECursor>(v); | 74 return detail::cssValueIDToPlatformEnumGenerated<ECursor>(v); |
75 } | 75 } |
76 | 76 |
| 77 template <> |
| 78 inline EDisplay cssValueIDToPlatformEnum(CSSValueID v) { |
| 79 if (v == CSSValueWebkitFlex) |
| 80 return EDisplay::kFlex; |
| 81 if (v == CSSValueWebkitInlineFlex) |
| 82 return EDisplay::kInlineFlex; |
| 83 return detail::cssValueIDToPlatformEnumGenerated<EDisplay>(v); |
| 84 } |
| 85 |
77 } // namespace blink | 86 } // namespace blink |
78 | 87 |
79 #endif | 88 #endif |
OLD | NEW |