| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 #elif PLATFORM(CHROMIUM) && OS(WINDOWS) | 106 #elif PLATFORM(CHROMIUM) && OS(WINDOWS) |
| 107 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr
iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); | 107 PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescr
iption&, ShouldRetain, const LOGFONT&, wchar_t* outFontFamilyName); |
| 108 #endif | 108 #endif |
| 109 | 109 |
| 110 #if ENABLE(OPENTYPE_VERTICAL) | 110 #if ENABLE(OPENTYPE_VERTICAL) |
| 111 #if USE(SKIA) | 111 #if USE(SKIA) |
| 112 typedef uint32_t FontFileKey; | 112 typedef uint32_t FontFileKey; |
| 113 #else | 113 #else |
| 114 typedef AtomicString FontFileKey; | 114 typedef AtomicString FontFileKey; |
| 115 #endif | 115 #endif |
| 116 OpenTypeVerticalData* getVerticalData(const FontFileKey&, const FontPlatform
Data&); | 116 PassRefPtr<OpenTypeVerticalData> getVerticalData(const FontFileKey&, const F
ontPlatformData&); |
| 117 #endif | 117 #endif |
| 118 | 118 |
| 119 struct SimpleFontFamily { | 119 struct SimpleFontFamily { |
| 120 String name; | 120 String name; |
| 121 bool isBold; | 121 bool isBold; |
| 122 bool isItalic; | 122 bool isItalic; |
| 123 }; | 123 }; |
| 124 static void getFontFamilyForCharacters(const UChar* characters, size_t numCh
aracters, const char* preferredLocale, SimpleFontFamily*); | 124 static void getFontFamilyForCharacters(const UChar* characters, size_t numCh
aracters, const char* preferredLocale, SimpleFontFamily*); |
| 125 | 125 |
| 126 private: | 126 private: |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 class FontCachePurgePreventer { | 162 class FontCachePurgePreventer { |
| 163 public: | 163 public: |
| 164 FontCachePurgePreventer() { fontCache()->disablePurging(); } | 164 FontCachePurgePreventer() { fontCache()->disablePurging(); } |
| 165 ~FontCachePurgePreventer() { fontCache()->enablePurging(); } | 165 ~FontCachePurgePreventer() { fontCache()->enablePurging(); } |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } | 168 } |
| 169 | 169 |
| 170 #endif | 170 #endif |
| OLD | NEW |