| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Nicholas Shanks <contact@nickshanks.com> | 2 * Copyright (C) 2007 Nicholas Shanks <contact@nickshanks.com> |
| 3 * Copyright (C) 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "platform/fonts/FontDescription.h" | 30 #include "platform/fonts/FontDescription.h" |
| 31 | 31 |
| 32 #include "platform/Language.h" | 32 #include "platform/Language.h" |
| 33 #include "platform/RuntimeEnabledFeatures.h" | 33 #include "platform/RuntimeEnabledFeatures.h" |
| 34 #include "wtf/StringHasher.h" | 34 #include "platform/wtf/StringHasher.h" |
| 35 #include "wtf/text/AtomicStringHash.h" | 35 #include "platform/wtf/text/AtomicStringHash.h" |
| 36 #include "wtf/text/StringHash.h" | 36 #include "platform/wtf/text/StringHash.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 struct SameSizeAsFontDescription { | 40 struct SameSizeAsFontDescription { |
| 41 DISALLOW_NEW(); | 41 DISALLOW_NEW(); |
| 42 FontFamily familyList; | 42 FontFamily familyList; |
| 43 RefPtr<FontFeatureSettings> m_featureSettings; | 43 RefPtr<FontFeatureSettings> m_featureSettings; |
| 44 RefPtr<FontVariationSettings> m_variationSettings; | 44 RefPtr<FontVariationSettings> m_variationSettings; |
| 45 AtomicString locale; | 45 AtomicString locale; |
| 46 float sizes[6]; | 46 float sizes[6]; |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 "FontStretchUltraCondensed should map to kUltraCondensed_Width"); | 359 "FontStretchUltraCondensed should map to kUltraCondensed_Width"); |
| 360 static_assert(static_cast<int>(FontStretchNormal) == | 360 static_assert(static_cast<int>(FontStretchNormal) == |
| 361 static_cast<int>(SkFontStyle::kNormal_Width), | 361 static_cast<int>(SkFontStyle::kNormal_Width), |
| 362 "FontStretchNormal should map to kNormal_Width"); | 362 "FontStretchNormal should map to kNormal_Width"); |
| 363 static_assert(static_cast<int>(FontStretchUltraExpanded) == | 363 static_assert(static_cast<int>(FontStretchUltraExpanded) == |
| 364 static_cast<int>(SkFontStyle::kUltraExpanded_Width), | 364 static_cast<int>(SkFontStyle::kUltraExpanded_Width), |
| 365 "FontStretchUltraExpanded should map to kUltraExpanded_Width"); | 365 "FontStretchUltraExpanded should map to kUltraExpanded_Width"); |
| 366 } | 366 } |
| 367 | 367 |
| 368 } // namespace blink | 368 } // namespace blink |
| OLD | NEW |