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) | |
92 void removeClient(FontCacheClient*); | 91 void removeClient(FontCacheClient*); |
93 #endif | |
94 | 92 |
95 unsigned short generation(); | 93 unsigned short generation(); |
96 void invalidate(); | 94 void invalidate(); |
97 | 95 |
98 #if OS(WIN) | 96 #if OS(WIN) |
99 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr
iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); | 97 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr
iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); |
100 #endif | 98 #endif |
101 | 99 |
102 #if OS(WIN) | 100 #if OS(WIN) |
103 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; } | 101 bool useSubpixelPositioning() const { return s_useSubpixelPositioning; } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 165 |
168 class PLATFORM_EXPORT FontCachePurgePreventer { | 166 class PLATFORM_EXPORT FontCachePurgePreventer { |
169 public: | 167 public: |
170 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } | 168 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } |
171 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } | 169 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } |
172 }; | 170 }; |
173 | 171 |
174 } | 172 } |
175 | 173 |
176 #endif | 174 #endif |
OLD | NEW |