| Index: third_party/WebKit/Source/core/dom/custom/V0CustomElementDescriptorHash.h
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementDescriptorHash.h b/third_party/WebKit/Source/core/dom/custom/V0CustomElementDescriptorHash.h
|
| similarity index 80%
|
| rename from third_party/WebKit/Source/core/dom/custom/CustomElementDescriptorHash.h
|
| rename to third_party/WebKit/Source/core/dom/custom/V0CustomElementDescriptorHash.h
|
| index 2cfdf09720d77e75143d9978728a7db5939c757a..2a0d2f5a37e6967bdc3fc49f02bca4769fe9d67b 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementDescriptorHash.h
|
| +++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementDescriptorHash.h
|
| @@ -28,10 +28,10 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef CustomElementDescriptorHash_h
|
| -#define CustomElementDescriptorHash_h
|
| +#ifndef V0CustomElementDescriptorHash_h
|
| +#define V0CustomElementDescriptorHash_h
|
|
|
| -#include "core/dom/custom/CustomElementDescriptor.h"
|
| +#include "core/dom/custom/V0CustomElementDescriptor.h"
|
| #include "wtf/Allocator.h"
|
| #include "wtf/HashFunctions.h"
|
| #include "wtf/HashTraits.h"
|
| @@ -39,14 +39,14 @@
|
|
|
| namespace blink {
|
|
|
| -struct CustomElementDescriptorHash {
|
| - STATIC_ONLY(CustomElementDescriptorHash);
|
| - static unsigned hash(const CustomElementDescriptor& descriptor)
|
| +struct V0CustomElementDescriptorHash {
|
| + STATIC_ONLY(V0CustomElementDescriptorHash);
|
| + static unsigned hash(const V0CustomElementDescriptor& descriptor)
|
| {
|
| return WTF::hashInts(AtomicStringHash::hash(descriptor.type()), WTF::hashInts(AtomicStringHash::hash(descriptor.namespaceURI()), AtomicStringHash::hash(descriptor.localName())));
|
| }
|
|
|
| - static bool equal(const CustomElementDescriptor& a, const CustomElementDescriptor& b)
|
| + static bool equal(const V0CustomElementDescriptor& a, const V0CustomElementDescriptor& b)
|
| {
|
| return a == b;
|
| }
|
| @@ -59,11 +59,11 @@ struct CustomElementDescriptorHash {
|
| namespace WTF {
|
|
|
| template<>
|
| -struct HashTraits<blink::CustomElementDescriptor> : SimpleClassHashTraits<blink::CustomElementDescriptor> {
|
| +struct HashTraits<blink::V0CustomElementDescriptor> : SimpleClassHashTraits<blink::V0CustomElementDescriptor> {
|
| STATIC_ONLY(HashTraits);
|
| static const bool emptyValueIsZero = HashTraits<AtomicString>::emptyValueIsZero;
|
| };
|
|
|
| } // namespace WTF
|
|
|
| -#endif // CustomElementDescriptorHash
|
| +#endif // V0CustomElementDescriptorHash
|
|
|