Index: third_party/WebKit/Source/platform/wtf/text/StringImpl.h |
diff --git a/third_party/WebKit/Source/platform/wtf/text/StringImpl.h b/third_party/WebKit/Source/platform/wtf/text/StringImpl.h |
index be9864e4c047b6f3292ef334a7fad1d830d56b69..2c651305374d333f469f6a3f3b0503d6ec90222c 100644 |
--- a/third_party/WebKit/Source/platform/wtf/text/StringImpl.h |
+++ b/third_party/WebKit/Source/platform/wtf/text/StringImpl.h |
@@ -599,12 +599,22 @@ ALWAYS_INLINE bool Equal(const UChar* a, const LChar* b, unsigned length) { |
// Unicode aware case insensitive string matching. Non-ASCII characters might |
// match to ASCII characters. These functions are rarely used to implement web |
// platform features. |
-WTF_EXPORT bool EqualIgnoringCase(const LChar*, const LChar*, unsigned length); |
-WTF_EXPORT bool EqualIgnoringCase(const UChar*, const LChar*, unsigned length); |
-inline bool EqualIgnoringCase(const LChar* a, const UChar* b, unsigned length) { |
- return EqualIgnoringCase(b, a, length); |
-} |
-WTF_EXPORT bool EqualIgnoringCase(const UChar*, const UChar*, unsigned length); |
+// These functions are deprecated. Use EqualIgnoringASCIICase(), or introduce |
+// EqualIgnoringUnicodeCase(). See crbug.com/627682 |
+WTF_EXPORT bool DeprecatedEqualIgnoringCase(const LChar*, |
+ const LChar*, |
+ unsigned length); |
+WTF_EXPORT bool DeprecatedEqualIgnoringCase(const UChar*, |
+ const LChar*, |
+ unsigned length); |
+inline bool DeprecatedEqualIgnoringCase(const LChar* a, |
+ const UChar* b, |
+ unsigned length) { |
+ return DeprecatedEqualIgnoringCase(b, a, length); |
+} |
+WTF_EXPORT bool DeprecatedEqualIgnoringCase(const UChar*, |
+ const UChar*, |
+ unsigned length); |
WTF_EXPORT bool EqualIgnoringNullity(StringImpl*, StringImpl*); |