| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 void enablePurging() { | 203 void enablePurging() { |
| 204 ASSERT(m_purgePreventCount); | 204 ASSERT(m_purgePreventCount); |
| 205 if (!--m_purgePreventCount) | 205 if (!--m_purgePreventCount) |
| 206 purge(PurgeIfNeeded); | 206 purge(PurgeIfNeeded); |
| 207 } | 207 } |
| 208 | 208 |
| 209 // FIXME: This method should eventually be removed. | 209 // FIXME: This method should eventually be removed. |
| 210 FontPlatformData* getFontPlatformData(const FontDescription&, | 210 FontPlatformData* getFontPlatformData(const FontDescription&, |
| 211 const FontFaceCreationParams&, | 211 const FontFaceCreationParams&, |
| 212 bool checkingAlternateName = false); | 212 bool checkingAlternateName = false); |
| 213 #if !OS(MACOSX) |
| 214 FontPlatformData* systemFontPlatformData(const FontDescription&); |
| 215 #endif |
| 213 | 216 |
| 214 // These methods are implemented by each platform. | 217 // These methods are implemented by each platform. |
| 215 std::unique_ptr<FontPlatformData> createFontPlatformData( | 218 std::unique_ptr<FontPlatformData> createFontPlatformData( |
| 216 const FontDescription&, | 219 const FontDescription&, |
| 217 const FontFaceCreationParams&, | 220 const FontFaceCreationParams&, |
| 218 float fontSize); | 221 float fontSize); |
| 219 std::unique_ptr<FontPlatformData> scaleFontPlatformData( | 222 std::unique_ptr<FontPlatformData> scaleFontPlatformData( |
| 220 const FontPlatformData&, | 223 const FontPlatformData&, |
| 221 const FontDescription&, | 224 const FontDescription&, |
| 222 const FontFaceCreationParams&, | 225 const FontFaceCreationParams&, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); | 271 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); |
| 269 | 272 |
| 270 public: | 273 public: |
| 271 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 274 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 272 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 275 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 273 }; | 276 }; |
| 274 | 277 |
| 275 } // namespace blink | 278 } // namespace blink |
| 276 | 279 |
| 277 #endif | 280 #endif |
| OLD | NEW |