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

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

Issue 330543004: Only FontCache should know about system font substitution (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/LocalFontFaceSource.cpp
diff --git a/Source/core/css/LocalFontFaceSource.cpp b/Source/core/css/LocalFontFaceSource.cpp
index 9700d635557fdb9c47387a03070dbd57e8729ab3..a920bdfd0bce188afbbe6cbf427a2f9afaa5d95a 100644
--- a/Source/core/css/LocalFontFaceSource.cpp
+++ b/Source/core/css/LocalFontFaceSource.cpp
@@ -5,7 +5,6 @@
#include "config.h"
#include "core/css/LocalFontFaceSource.h"
-#include "platform/fonts/AlternateFontFamily.h"
#include "platform/fonts/FontCache.h"
#include "platform/fonts/FontDescription.h"
#include "platform/fonts/SimpleFontData.h"
@@ -15,13 +14,13 @@ namespace WebCore {
bool LocalFontFaceSource::isLocalFontAvailable(const FontDescription& fontDescription)
{
- return FontCache::fontCache()->isPlatformFontAvailable(fontDescription, adjustFamilyNameToAvoidUnsupportedFonts(m_fontName));
+ return FontCache::fontCache()->isPlatformFontAvailable(fontDescription, m_fontName);
}
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, adjustFamilyNameToAvoidUnsupportedFonts(m_fontName), true);
+ RefPtr<SimpleFontData> fontData = FontCache::fontCache()->getFontData(fontDescription, m_fontName, true);
m_histograms.record(fontData);
return fontData.release();
}
« no previous file with comments | « no previous file | Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698