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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.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) 2007 Apple Computer, Inc. 2 * Copyright (C) 2007 Apple Computer, Inc.
3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved.
4 * Copyright (C) 2010 Company 100, Inc. 4 * Copyright (C) 2010 Company 100, Inc.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 sk_sp<SkTypeface> typeface = decoder.Decode(buffer); 114 sk_sp<SkTypeface> typeface = decoder.Decode(buffer);
115 if (!typeface) { 115 if (!typeface) {
116 ots_parse_message = decoder.GetErrorString(); 116 ots_parse_message = decoder.GetErrorString();
117 return nullptr; 117 return nullptr;
118 } 118 }
119 return AdoptRef( 119 return AdoptRef(
120 new FontCustomPlatformData(std::move(typeface), decoder.DecodedSize())); 120 new FontCustomPlatformData(std::move(typeface), decoder.DecodedSize()));
121 } 121 }
122 122
123 bool FontCustomPlatformData::SupportsFormat(const String& format) { 123 bool FontCustomPlatformData::SupportsFormat(const String& format) {
124 return EqualIgnoringCase(format, "truetype") || 124 return DeprecatedEqualIgnoringCase(format, "truetype") ||
125 EqualIgnoringCase(format, "opentype") || 125 DeprecatedEqualIgnoringCase(format, "opentype") ||
126 WebFontDecoder::SupportsFormat(format); 126 WebFontDecoder::SupportsFormat(format);
127 } 127 }
128 128
129 } // namespace blink 129 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698