OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 FallbackListCompositeKey_h | 5 #ifndef FallbackListCompositeKey_h |
6 #define FallbackListCompositeKey_h | 6 #define FallbackListCompositeKey_h |
7 | 7 |
8 #include "platform/fonts/FontCacheKey.h" | 8 #include "platform/fonts/FontCacheKey.h" |
9 #include "platform/fonts/FontDescription.h" | 9 #include "platform/fonts/FontDescription.h" |
10 #include "wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
11 #include "wtf/HashMap.h" | 11 #include "platform/wtf/HashMap.h" |
12 #include "wtf/HashTableDeletedValueType.h" | 12 #include "platform/wtf/HashTableDeletedValueType.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class FontDescription; | 16 class FontDescription; |
17 | 17 |
18 // Cache key representing a font description and font fallback list combination | 18 // Cache key representing a font description and font fallback list combination |
19 // as passed into shaping. Used to look up an applicable ShapeCache instance | 19 // as passed into shaping. Used to look up an applicable ShapeCache instance |
20 // from the global FontCache. | 20 // from the global FontCache. |
21 // TODO(eae,drott): Ideally this should be replaced by a combination of | 21 // TODO(eae,drott): Ideally this should be replaced by a combination of |
22 // FontDescription and CSSFontSelector. | 22 // FontDescription and CSSFontSelector. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 }; | 93 }; |
94 | 94 |
95 struct FallbackListCompositeKeyTraits | 95 struct FallbackListCompositeKeyTraits |
96 : WTF::SimpleClassHashTraits<FallbackListCompositeKey> { | 96 : WTF::SimpleClassHashTraits<FallbackListCompositeKey> { |
97 STATIC_ONLY(FallbackListCompositeKeyTraits); | 97 STATIC_ONLY(FallbackListCompositeKeyTraits); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace blink | 100 } // namespace blink |
101 | 101 |
102 #endif // FallbackListCompositeKey_h | 102 #endif // FallbackListCompositeKey_h |
OLD | NEW |