| Index: third_party/WebKit/Source/wtf/text/StringHash.h
|
| diff --git a/third_party/WebKit/Source/wtf/text/StringHash.h b/third_party/WebKit/Source/wtf/text/StringHash.h
|
| index 025f03c0ed9a727c741d26f8bef73ce74858533b..3469f036bc2ac9e47de87b509cc78e9aca9e9343 100644
|
| --- a/third_party/WebKit/Source/wtf/text/StringHash.h
|
| +++ b/third_party/WebKit/Source/wtf/text/StringHash.h
|
| @@ -98,7 +98,12 @@ public:
|
|
|
| static inline bool equal(const StringImpl* a, const StringImpl* b)
|
| {
|
| - return equalIgnoringCaseNonNull(a, b);
|
| + DCHECK(a);
|
| + DCHECK(b);
|
| + // Save one branch inside each StringView by derefing the StringImpl,
|
| + // and another branch inside the compare function by skipping the null
|
| + // checks.
|
| + return equalIgnoringCaseAndNullity(*a, *b);
|
| }
|
|
|
| static unsigned hash(const RefPtr<StringImpl>& key)
|
|
|