| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef FontCacheKey_h | 31 #ifndef FontCacheKey_h |
| 32 #define FontCacheKey_h | 32 #define FontCacheKey_h |
| 33 | 33 |
| 34 #include "FontFaceCreationParams.h" | 34 #include "FontFaceCreationParams.h" |
| 35 #include "platform/fonts/opentype/FontSettings.h" | 35 #include "platform/fonts/opentype/FontSettings.h" |
| 36 #include "wtf/Allocator.h" | 36 #include "platform/wtf/Allocator.h" |
| 37 #include "wtf/HashMap.h" | 37 #include "platform/wtf/HashMap.h" |
| 38 #include "wtf/HashTableDeletedValueType.h" | 38 #include "platform/wtf/HashTableDeletedValueType.h" |
| 39 #include "wtf/text/AtomicStringHash.h" | 39 #include "platform/wtf/text/AtomicStringHash.h" |
| 40 #include "wtf/text/StringHash.h" | 40 #include "platform/wtf/text/StringHash.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 // Multiplying the floating point size by 100 gives two decimal point | 44 // Multiplying the floating point size by 100 gives two decimal point |
| 45 // precision which should be sufficient. | 45 // precision which should be sufficient. |
| 46 static const unsigned s_fontSizePrecisionMultiplier = 100; | 46 static const unsigned s_fontSizePrecisionMultiplier = 100; |
| 47 | 47 |
| 48 struct FontCacheKey { | 48 struct FontCacheKey { |
| 49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 50 | 50 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 static const bool safeToCompareToEmptyOrDeleted = true; | 105 static const bool safeToCompareToEmptyOrDeleted = true; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 struct FontCacheKeyTraits : WTF::SimpleClassHashTraits<FontCacheKey> { | 108 struct FontCacheKeyTraits : WTF::SimpleClassHashTraits<FontCacheKey> { |
| 109 STATIC_ONLY(FontCacheKeyTraits); | 109 STATIC_ONLY(FontCacheKeyTraits); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace blink | 112 } // namespace blink |
| 113 | 113 |
| 114 #endif // FontCacheKey_h | 114 #endif // FontCacheKey_h |
| OLD | NEW |