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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontCache.cpp

Issue 1931393002: Introduce typeface cache in blink::FontCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip: others Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/fonts/FontCache.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontCache.cpp b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
index 29b184198ae71ce804bb47a3fdb79ec82ced6062..0aa6afb2bf15e94f75ba92e17f8eca133f552a97 100644
--- a/third_party/WebKit/Source/platform/fonts/FontCache.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontCache.cpp
@@ -104,7 +104,7 @@ FontPlatformData* FontCache::getFontPlatformData(const FontDescription& fontDesc
// to avoid trigering its dtor hash-changed asserts.
auto addResult = gFontPlatformDataCache->add(key, nullptr);
if (addResult.isNewEntry)
- addResult.storedValue->value = createFontPlatformData(fontDescription, creationParams, fontDescription.effectiveFontSize());
+ addResult.storedValue->value = createFontPlatformData(fontDescription, creationParams);
result = addResult.storedValue->value.get();
foundResult = result || !addResult.isNewEntry;

Powered by Google App Engine
This is Rietveld 408576698