Index: Source/core/dom/CustomElementDefinition.h |
diff --git a/Source/core/dom/CustomElementDefinition.h b/Source/core/dom/CustomElementDefinition.h |
index 644f6aa6c06f0d7e4ae38dba23bb715200b71b38..a947239f3b21efae06050c7fcf21f5cc870bda6e 100644 |
--- a/Source/core/dom/CustomElementDefinition.h |
+++ b/Source/core/dom/CustomElementDefinition.h |
@@ -33,9 +33,9 @@ |
#include "bindings/v8/ScriptValue.h" |
#include "core/dom/QualifiedName.h" |
-#include <wtf/Forward.h> |
-#include <wtf/PassRefPtr.h> |
-#include <wtf/RefCounted.h> |
+#include "wtf/Forward.h" |
+#include "wtf/PassRefPtr.h" |
+#include "wtf/RefCounted.h" |
namespace WebCore { |
@@ -47,6 +47,11 @@ public: |
virtual ~CustomElementDefinition() {} |
+ enum CustomElementKind { |
+ CustomTag, |
+ TypeExtension |
+ }; |
+ |
// This specifies whether the custom element is in the HTML or SVG |
// namespace. |
const AtomicString& namespaceURI() const { return m_tag.namespaceURI(); } |
@@ -64,6 +69,7 @@ public: |
// name. This does not have a prefix. |
const QualifiedName& tagQName() const { return m_tag; } |
+ CustomElementKind kind() const { return isTypeExtension() ? TypeExtension : CustomTag; } |
bool isTypeExtension() const { return type() != name(); } |
const ScriptValue& prototype() { return m_prototype; } |