OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 FontVariantNumeric_h | 5 #ifndef FontVariantNumeric_h |
6 #define FontVariantNumeric_h | 6 #define FontVariantNumeric_h |
7 | 7 |
8 #include "wtf/Allocator.h" | 8 #include "platform/wtf/Allocator.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class FontVariantNumeric { | 12 class FontVariantNumeric { |
13 STACK_ALLOCATED(); | 13 STACK_ALLOCATED(); |
14 | 14 |
15 public: | 15 public: |
16 enum NumericFigure { NormalFigure = 0, LiningNums, OldstyleNums }; | 16 enum NumericFigure { NormalFigure = 0, LiningNums, OldstyleNums }; |
17 | 17 |
18 enum NumericSpacing { NormalSpacing = 0, ProportionalNums, TabularNums }; | 18 enum NumericSpacing { NormalSpacing = 0, ProportionalNums, TabularNums }; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 }; | 86 }; |
87 static_assert(sizeof(BitFields) == sizeof(unsigned), | 87 static_assert(sizeof(BitFields) == sizeof(unsigned), |
88 "Mapped union types must match in size."); | 88 "Mapped union types must match in size."); |
89 | 89 |
90 // Used in setVariant to store the value in m_fields.m_variantNumeric; | 90 // Used in setVariant to store the value in m_fields.m_variantNumeric; |
91 friend class FontDescription; | 91 friend class FontDescription; |
92 }; | 92 }; |
93 } | 93 } |
94 | 94 |
95 #endif // FontVariantNumeric_h | 95 #endif // FontVariantNumeric_h |
OLD | NEW |