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

Unified Diff: third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp

Issue 2692803005: Avoid checking family name in getLastResortFallbackFont() on Windows (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/FontCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp
diff --git a/third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp b/third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp
index f1bc448088338d6f674417ea1fd2ae98f4610fd3..51bafcc32ff087b7bcb4a06f3c763a2f512b189c 100644
--- a/third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp
+++ b/third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp
@@ -21,8 +21,8 @@ PassRefPtr<SimpleFontData> LocalFontFaceSource::createFontData(
const FontDescription& fontDescription) {
// We don't want to check alternate font family names here, so pass true as
// the checkingAlternateName parameter.
- RefPtr<SimpleFontData> fontData =
- FontCache::fontCache()->getFontData(fontDescription, m_fontName, true);
+ RefPtr<SimpleFontData> fontData = FontCache::fontCache()->getFontData(
+ fontDescription, m_fontName, AlternateFontName::NoAlternate);
m_histograms.record(fontData.get());
return fontData.release();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/FontCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698