Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: Source/WebCore/platform/graphics/FontCache.h

Issue 13687007: Remove PLATFORM(BLACKBERRY) support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698