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

Unified Diff: third_party/WebKit/Source/core/css/FontFaceSet.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/FontFaceSet.cpp
diff --git a/third_party/WebKit/Source/core/css/FontFaceSet.cpp b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
index 96ffcdc598288ac96cd9518b653cd8754bce4c39..7e06f575caf7e719e2a8eec27c6bc2b613f9ff9f 100644
--- a/third_party/WebKit/Source/core/css/FontFaceSet.cpp
+++ b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
@@ -427,8 +427,8 @@ bool FontFaceSet::check(const String& fontString,
return true;
for (const FontFamily* f = &font.getFontDescription().family(); f;
f = f->next()) {
- if (fontSelector->isPlatformFontAvailable(font.getFontDescription(),
- f->family()))
+ if (fontSelector->isPlatformFamilyMatchAvailable(font.getFontDescription(),
+ f->family()))
return true;
}
return false;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontSelector.cpp ('k') | third_party/WebKit/Source/core/css/LocalFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698