| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 unsigned short generation(); | 88 unsigned short generation(); |
| 89 void invalidate(); | 89 void invalidate(); |
| 90 | 90 |
| 91 #if ENABLE(OPENTYPE_VERTICAL) | 91 #if ENABLE(OPENTYPE_VERTICAL) |
| 92 typedef uint32_t FontFileKey; | 92 typedef uint32_t FontFileKey; |
| 93 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F
ontPlatformData&); | 93 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F
ontPlatformData&); |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 #if OS(ANDROID) | 96 #if OS(ANDROID) |
| 97 static AtomicString getGenericFamilyNameForScript(const AtomicString& family
Name, UScriptCode); | 97 static AtomicString getGenericFamilyNameForScript(const AtomicString& family
Name, const FontDescription&); |
| 98 #else | 98 #else |
| 99 struct PlatformFallbackFont { | 99 struct PlatformFallbackFont { |
| 100 String name; | 100 String name; |
| 101 CString filename; | 101 CString filename; |
| 102 int fontconfigInterfaceId; | 102 int fontconfigInterfaceId; |
| 103 int ttcIndex; | 103 int ttcIndex; |
| 104 bool isBold; | 104 bool isBold; |
| 105 bool isItalic; | 105 bool isItalic; |
| 106 }; | 106 }; |
| 107 static void getFontForCharacter(UChar32, const char* preferredLocale, Platfo
rmFallbackFont*); | 107 static void getFontForCharacter(UChar32, const char* preferredLocale, Platfo
rmFallbackFont*); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 class PLATFORM_EXPORT FontCachePurgePreventer { | 146 class PLATFORM_EXPORT FontCachePurgePreventer { |
| 147 public: | 147 public: |
| 148 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 148 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 149 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 149 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace blink | 152 } // namespace blink |
| 153 | 153 |
| 154 #endif | 154 #endif |
| OLD | NEW |