Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementDescriptorHash.h

Issue 1914923002: Rename all existing custom element classes as V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CustomElementV0 -> V0CustomElement Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698