| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 typedef AtomicString FontFileKey; | 118 typedef AtomicString FontFileKey; |
| 119 #endif | 119 #endif |
| 120 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F
ontPlatformData&); | 120 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F
ontPlatformData&); |
| 121 #endif | 121 #endif |
| 122 | 122 |
| 123 struct SimpleFontFamily { | 123 struct SimpleFontFamily { |
| 124 String name; | 124 String name; |
| 125 bool isBold; | 125 bool isBold; |
| 126 bool isItalic; | 126 bool isItalic; |
| 127 }; | 127 }; |
| 128 #if PLATFORM(BLACKBERRY) | |
| 129 static void getFontFamilyForCharacters(const UChar* characters, size_t numCh
aracters, const char* preferredLocale, const FontDescription&, SimpleFontFamily*
); | |
| 130 #else | |
| 131 static void getFontFamilyForCharacters(const UChar* characters, size_t numCh
aracters, const char* preferredLocale, SimpleFontFamily*); | 128 static void getFontFamilyForCharacters(const UChar* characters, size_t numCh
aracters, const char* preferredLocale, SimpleFontFamily*); |
| 132 #endif | |
| 133 | 129 |
| 134 private: | 130 private: |
| 135 FontCache(); | 131 FontCache(); |
| 136 ~FontCache(); | 132 ~FontCache(); |
| 137 | 133 |
| 138 void disablePurging() { m_purgePreventCount++; } | 134 void disablePurging() { m_purgePreventCount++; } |
| 139 void enablePurging() | 135 void enablePurging() |
| 140 { | 136 { |
| 141 ASSERT(m_purgePreventCount); | 137 ASSERT(m_purgePreventCount); |
| 142 if (!--m_purgePreventCount) | 138 if (!--m_purgePreventCount) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 169 | 165 |
| 170 class FontCachePurgePreventer { | 166 class FontCachePurgePreventer { |
| 171 public: | 167 public: |
| 172 FontCachePurgePreventer() { fontCache()->disablePurging(); } | 168 FontCachePurgePreventer() { fontCache()->disablePurging(); } |
| 173 ~FontCachePurgePreventer() { fontCache()->enablePurging(); } | 169 ~FontCachePurgePreventer() { fontCache()->enablePurging(); } |
| 174 }; | 170 }; |
| 175 | 171 |
| 176 } | 172 } |
| 177 | 173 |
| 178 #endif | 174 #endif |
| OLD | NEW |