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

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

Issue 11348334: Merge 134871 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/FontCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/FontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698