Index: third_party/WebKit/Source/wtf/text/AtomicStringHash.h |
diff --git a/third_party/WebKit/Source/wtf/text/AtomicStringHash.h b/third_party/WebKit/Source/wtf/text/AtomicStringHash.h |
index d86d22f6be03895f668612f3144cac0a08125694..6131edeb565b6bbce0ea57b99e16fc57b0e37f56 100644 |
--- a/third_party/WebKit/Source/wtf/text/AtomicStringHash.h |
+++ b/third_party/WebKit/Source/wtf/text/AtomicStringHash.h |
@@ -29,36 +29,37 @@ |
#ifndef AtomicStringHash_h |
#define AtomicStringHash_h |
-#include "wtf/text/AtomicString.h" |
#include "wtf/HashTraits.h" |
+#include "wtf/text/AtomicString.h" |
namespace WTF { |
- struct AtomicStringHash { |
- static unsigned hash(const AtomicString& key) |
- { |
- return key.impl()->existingHash(); |
- } |
+struct AtomicStringHash { |
+ static unsigned hash(const AtomicString& key) |
+ { |
+ return key.impl()->existingHash(); |
+ } |
- static bool equal(const AtomicString& a, const AtomicString& b) |
- { |
- return a == b; |
- } |
+ static bool equal(const AtomicString& a, const AtomicString& b) |
+ { |
+ return a == b; |
+ } |
- static const bool safeToCompareToEmptyOrDeleted = false; |
- }; |
+ static const bool safeToCompareToEmptyOrDeleted = false; |
+}; |
- // AtomicStringHash is the default hash for AtomicString |
- template<> struct HashTraits<AtomicString> : SimpleClassHashTraits<AtomicString> { |
- // Unlike other types, we can return a const reference for AtomicString's empty value (nullAtom). |
- typedef const AtomicString& PeekOutType; |
+// AtomicStringHash is the default hash for AtomicString |
+template<> struct HashTraits<AtomicString> : SimpleClassHashTraits<AtomicString> { |
+ // Unlike other types, we can return a const reference for AtomicString's |
+ // empty value (nullAtom). |
+ typedef const AtomicString& PeekOutType; |
- static const AtomicString& emptyValue() { return nullAtom; } |
- static PeekOutType peek(const AtomicString& value) { return value; } |
+ static const AtomicString& emptyValue() { return nullAtom; } |
+ static PeekOutType peek(const AtomicString& value) { return value; } |
- static const bool hasIsEmptyValueFunction = true; |
- static bool isEmptyValue(const AtomicString& value) { return value.isNull(); } |
- }; |
+ static const bool hasIsEmptyValueFunction = true; |
+ static bool isEmptyValue(const AtomicString& value) { return value.isNull(); } |
+}; |
} |