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

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: Moar^2 better 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
Index: Source/core/dom/CustomElementDefinition.h
diff --git a/Source/core/dom/CustomElementDefinition.h b/Source/core/dom/CustomElementDefinition.h
index 644f6aa6c06f0d7e4ae38dba23bb715200b71b38..3df2e6c418df408d2763e82705b6bc818cae4f22 100644
--- a/Source/core/dom/CustomElementDefinition.h
+++ b/Source/core/dom/CustomElementDefinition.h
@@ -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; }

Powered by Google App Engine
This is Rietveld 408576698