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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/win/FontFallbackWin.cpp

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2006, 2007, 2008, 2009, 2010, 2012 Google Inc. All rights 2 * Copyright (c) 2006, 2007, 2008, 2009, 2010, 2012 Google Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 sk_sp<SkTypeface> tf( 52 sk_sp<SkTypeface> tf(
53 font_manager->matchFamilyStyle(family.Utf8().Data(), SkFontStyle())); 53 font_manager->matchFamilyStyle(family.Utf8().Data(), SkFontStyle()));
54 if (!tf) 54 if (!tf)
55 return false; 55 return false;
56 56
57 SkTypeface::LocalizedStrings* actual_families = 57 SkTypeface::LocalizedStrings* actual_families =
58 tf->createFamilyNameIterator(); 58 tf->createFamilyNameIterator();
59 bool matches_requested_family = false; 59 bool matches_requested_family = false;
60 SkTypeface::LocalizedString actual_family; 60 SkTypeface::LocalizedString actual_family;
61 while (actual_families->next(&actual_family)) { 61 while (actual_families->next(&actual_family)) {
62 if (EqualIgnoringCase( 62 if (DeprecatedEqualIgnoringCase(
63 family, AtomicString::FromUTF8(actual_family.fString.c_str()))) { 63 family, AtomicString::FromUTF8(actual_family.fString.c_str()))) {
64 matches_requested_family = true; 64 matches_requested_family = true;
65 break; 65 break;
66 } 66 }
67 } 67 }
68 actual_families->unref(); 68 actual_families->unref();
69 69
70 return matches_requested_family; 70 return matches_requested_family;
71 } 71 }
72 72
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 family = L"lucida sans unicode"; 536 family = L"lucida sans unicode";
537 } 537 }
538 } 538 }
539 539
540 if (script_checked) 540 if (script_checked)
541 *script_checked = script; 541 *script_checked = script;
542 return family; 542 return family;
543 } 543 }
544 544
545 } // namespace blink 545 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698