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

Unified Diff: Source/core/dom/CustomElementDefinition.h

Issue 14626005: Upgrade elements that are created before a custom element definition is registered (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback+test Created 7 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/CustomElementRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/CustomElementRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698