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

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

Issue 2721613002: Fix matching Roboto Bold for src: local("Roboto Regular") (Closed)
Patch Set: Fix test case for Mac 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
Index: third_party/WebKit/Source/core/css/CSSFontSelector.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontSelector.cpp b/third_party/WebKit/Source/core/css/CSSFontSelector.cpp
index 815048f571930a99b3e9495fc809b0be309b3f53..eef8eb1145063e8c025e711228b0a8e30d5f448b 100644
--- a/third_party/WebKit/Source/core/css/CSSFontSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontSelector.cpp
@@ -152,15 +152,15 @@ void CSSFontSelector::willUseRange(const FontDescription& fontDescription,
face->willUseRange(fontDescription, rangeSet);
}
-bool CSSFontSelector::isPlatformFontAvailable(
+bool CSSFontSelector::isPlatformFamilyMatchAvailable(
const FontDescription& fontDescription,
const AtomicString& passedFamily) {
AtomicString family = familyNameFromSettings(m_genericFontFamilySettings,
fontDescription, passedFamily);
if (family.isEmpty())
family = passedFamily;
- return FontCache::fontCache()->isPlatformFontAvailable(fontDescription,
- family);
+ return FontCache::fontCache()->isPlatformFamilyMatchAvailable(fontDescription,
+ family);
}
void CSSFontSelector::updateGenericFontFamilySettings(Document& document) {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontSelector.h ('k') | third_party/WebKit/Source/core/css/FontFaceSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698