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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 // Also implemented by the platform. | 82 // Also implemented by the platform. |
83 void platformInit(); | 83 void platformInit(); |
84 | 84 |
85 PassRefPtr<SimpleFontData> getFontData(const FontDescription&, const AtomicS
tring&, bool checkingAlternateName = false, ShouldRetain = Retain); | 85 PassRefPtr<SimpleFontData> getFontData(const FontDescription&, const AtomicS
tring&, bool checkingAlternateName = false, ShouldRetain = Retain); |
86 PassRefPtr<SimpleFontData> getLastResortFallbackFont(const FontDescription&,
ShouldRetain = Retain); | 86 PassRefPtr<SimpleFontData> getLastResortFallbackFont(const FontDescription&,
ShouldRetain = Retain); |
87 SimpleFontData* getNonRetainedLastResortFallbackFont(const FontDescription&)
; | 87 SimpleFontData* getNonRetainedLastResortFallbackFont(const FontDescription&)
; |
88 bool isPlatformFontAvailable(const FontDescription&, const AtomicString&); | 88 bool isPlatformFontAvailable(const FontDescription&, const AtomicString&); |
89 | 89 |
90 void addClient(FontCacheClient*); | 90 void addClient(FontCacheClient*); |
| 91 #if !ENABLE(OILPAN) |
91 void removeClient(FontCacheClient*); | 92 void removeClient(FontCacheClient*); |
| 93 #endif |
92 | 94 |
93 unsigned short generation(); | 95 unsigned short generation(); |
94 void invalidate(); | 96 void invalidate(); |
95 | 97 |
96 #if OS(WIN) | 98 #if OS(WIN) |
97 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr
iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); | 99 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr
iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); |
98 #endif | 100 #endif |
99 | 101 |
100 #if OS(WIN) | 102 #if OS(WIN) |
101 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; } | 103 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 167 |
166 class PLATFORM_EXPORT FontCachePurgePreventer { | 168 class PLATFORM_EXPORT FontCachePurgePreventer { |
167 public: | 169 public: |
168 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 170 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
169 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 171 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
170 }; | 172 }; |
171 | 173 |
172 } | 174 } |
173 | 175 |
174 #endif | 176 #endif |
OLD | NEW |