| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void platformInit(); | 92 void platformInit(); |
| 93 | 93 |
| 94 PassRefPtr<SimpleFontData> getFontData(const FontDescription&, | 94 PassRefPtr<SimpleFontData> getFontData(const FontDescription&, |
| 95 const AtomicString&, | 95 const AtomicString&, |
| 96 bool checkingAlternateName = false, | 96 bool checkingAlternateName = false, |
| 97 ShouldRetain = Retain); | 97 ShouldRetain = Retain); |
| 98 PassRefPtr<SimpleFontData> getLastResortFallbackFont(const FontDescription&, | 98 PassRefPtr<SimpleFontData> getLastResortFallbackFont(const FontDescription&, |
| 99 ShouldRetain = Retain); | 99 ShouldRetain = Retain); |
| 100 SimpleFontData* getNonRetainedLastResortFallbackFont(const FontDescription&); | 100 SimpleFontData* getNonRetainedLastResortFallbackFont(const FontDescription&); |
| 101 bool isPlatformFontAvailable(const FontDescription&, const AtomicString&); | 101 bool isPlatformFontAvailable(const FontDescription&, const AtomicString&); |
| 102 static String firstAvailableOrFirst(const String&); |
| 102 | 103 |
| 103 // Returns the ShapeCache instance associated with the given cache key. | 104 // Returns the ShapeCache instance associated with the given cache key. |
| 104 // Creates a new instance as needed and as such is guaranteed not to return | 105 // Creates a new instance as needed and as such is guaranteed not to return |
| 105 // a nullptr. Instances are managed by FontCache and are only guaranteed to | 106 // a nullptr. Instances are managed by FontCache and are only guaranteed to |
| 106 // be valid for the duration of the current session, as controlled by | 107 // be valid for the duration of the current session, as controlled by |
| 107 // disable/enablePurging. | 108 // disable/enablePurging. |
| 108 ShapeCache* getShapeCache(const FallbackListCompositeKey&); | 109 ShapeCache* getShapeCache(const FallbackListCompositeKey&); |
| 109 | 110 |
| 110 void addClient(FontCacheClient*); | 111 void addClient(FontCacheClient*); |
| 111 | 112 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); | 272 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); |
| 272 | 273 |
| 273 public: | 274 public: |
| 274 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 275 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
| 275 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 276 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
| 276 }; | 277 }; |
| 277 | 278 |
| 278 } // namespace blink | 279 } // namespace blink |
| 279 | 280 |
| 280 #endif | 281 #endif |
| OLD | NEW |