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

Unified Diff: Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp

Issue 23549036: Fix typefacesMatchesFamily to treat family string as UTF8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp
diff --git a/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp b/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp
index ac771356b191d18ac650412bc0105a66c1d36a97..4462607a6d7f0a07de02b3cfef473bab8747a37a 100644
--- a/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp
+++ b/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp
@@ -164,7 +164,7 @@ static bool typefacesMatchesFamily(const SkTypeface* tf, const AtomicString& fam
SkTypeface::LocalizedString actualFamily;
while (actualFamilies->next(&actualFamily)) {
- if (equalIgnoringCase(family, actualFamily.fString.c_str())) {
+ if (equalIgnoringCase(family, AtomicString::fromUTF8(actualFamily.fString.c_str()))) {
leviw_travelin_and_unemployed 2013/09/18 20:07:46 Talked to eseidel. He mentioned that we may want t
matchesRequestedFamily = true;
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698