Chromium Code Reviews| Index: third_party/WebKit/Source/wtf/text/StringImpl.cpp |
| diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
| index a37127b497efe30b7cb0df628c3103f040d2077e..1fcfd6b45a2a792439a483cf9644d216b410a1b6 100644 |
| --- a/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
| +++ b/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
| @@ -2292,12 +2292,10 @@ bool equalIgnoringASCIICase(const StringImpl* a, const StringImpl* b) |
| return equalIgnoringASCIICase(a->characters16(), b->characters16(), length); |
| } |
| -bool equalIgnoringASCIICase(const StringImpl* a, const LChar* b) |
| +bool equalIgnoringASCIICase(const StringImpl* a, const LChar* b, unsigned length) |
| { |
| if (!a || !b) |
| return !a == !b; |
| - size_t length = strlen(reinterpret_cast<const char*>(b)); |
| - CHECK_LE(length, numeric_limits<unsigned>::max()); |
|
esprehn
2016/05/24 22:44:26
This isn't needed, we're not going to allocate a s
|
| if (length != a->length()) |
| return false; |
| return equalSubstringIgnoringASCIICase(a, 0, b, length); |