| 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 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 size_t fontDataCount(); | 90 size_t fontDataCount(); |
| 91 size_t inactiveFontDataCount(); | 91 size_t inactiveFontDataCount(); |
| 92 void purgeInactiveFontData(int count = INT_MAX); | 92 void purgeInactiveFontData(int count = INT_MAX); |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 FontCache(); | 95 FontCache(); |
| 96 | 96 |
| 97 // These methods are implemented by each platform. | 97 // These methods are implemented by each platform. |
| 98 FontPlatformData* getSimilarFontPlatformData(const Font&); | 98 FontPlatformData* getSimilarFontPlatformData(const Font&); |
| 99 FontPlatformData* createFontPlatformData(const FontDescription&, const Atomi
cString& family); | 99 FontPlatformData* createFontPlatformData(const FontDescription&, const Atomi
cString& family); |
| 100 static const AtomicString& alternateFamilyName(const AtomicString& family); | |
| 101 | 100 |
| 102 friend class SimpleFontData; | 101 friend class SimpleFontData; |
| 103 friend class FontFallbackList; | 102 friend class FontFallbackList; |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 // Get the global fontCache. | 105 // Get the global fontCache. |
| 107 FontCache* fontCache(); | 106 FontCache* fontCache(); |
| 108 } | 107 } |
| 109 | 108 |
| 110 #endif | 109 #endif |
| OLD | NEW |