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

Unified Diff: third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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/platform/fonts/win/FontCacheSkiaWin.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp b/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
index ceba8f6e3715b84d9b32fba9cdf5eec8107478ea..d511e0620d7e11c0f95857276ef14fbc2e45c27a 100644
--- a/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
+++ b/third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp
@@ -281,7 +281,7 @@ static bool typefacesHasWeightSuffix(const AtomicString& family,
size_t numVariants = WTF_ARRAY_LENGTH(variantForSuffix);
for (size_t i = 0; i < numVariants; i++) {
const FamilyWeightSuffix& entry = variantForSuffix[i];
- if (family.endsWith(entry.suffix, TextCaseInsensitive)) {
+ if (family.endsWith(entry.suffix, TextCaseUnicodeInsensitive)) {
String familyName = family.getString();
familyName.truncate(family.length() - entry.length);
adjustedName = AtomicString(familyName);
@@ -318,7 +318,7 @@ static bool typefacesHasStretchSuffix(const AtomicString& family,
size_t numVariants = WTF_ARRAY_LENGTH(variantForSuffix);
for (size_t i = 0; i < numVariants; i++) {
const FamilyStretchSuffix& entry = variantForSuffix[i];
- if (family.endsWith(entry.suffix, TextCaseInsensitive)) {
+ if (family.endsWith(entry.suffix, TextCaseUnicodeInsensitive)) {
String familyName = family.getString();
familyName.truncate(family.length() - entry.length);
adjustedName = AtomicString(familyName);
« no previous file with comments | « third_party/WebKit/Source/platform/ContentType.cpp ('k') | third_party/WebKit/Source/platform/mhtml/MHTMLParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698