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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontCache.h

Issue 2392033002: Correcting text baseline for tiny fonts (Closed)
Patch Set: Rebaseline. Created 4 years, 2 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
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 int ttcIndex; 168 int ttcIndex;
169 bool isBold; 169 bool isBold;
170 bool isItalic; 170 bool isItalic;
171 }; 171 };
172 static void getFontForCharacter(UChar32, 172 static void getFontForCharacter(UChar32,
173 const char* preferredLocale, 173 const char* preferredLocale,
174 PlatformFallbackFont*); 174 PlatformFallbackFont*);
175 #endif 175 #endif
176 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData( 176 PassRefPtr<SimpleFontData> fontDataFromFontPlatformData(
177 const FontPlatformData*, 177 const FontPlatformData*,
178 ShouldRetain = Retain); 178 ShouldRetain = Retain,
179 bool = false);
179 180
180 void invalidateShapeCache(); 181 void invalidateShapeCache();
181 182
182 // Memory reporting 183 // Memory reporting
183 void dumpFontPlatformDataCache(base::trace_event::ProcessMemoryDump*); 184 void dumpFontPlatformDataCache(base::trace_event::ProcessMemoryDump*);
184 void dumpShapeResultCache(base::trace_event::ProcessMemoryDump*); 185 void dumpShapeResultCache(base::trace_event::ProcessMemoryDump*);
185 186
186 private: 187 private:
187 FontCache(); 188 FontCache();
188 ~FontCache(); 189 ~FontCache();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer); 259 WTF_MAKE_NONCOPYABLE(FontCachePurgePreventer);
259 260
260 public: 261 public:
261 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } 262 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); }
262 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } 263 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); }
263 }; 264 };
264 265
265 } // namespace blink 266 } // namespace blink
266 267
267 #endif 268 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698