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

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

Issue 23009004: Process Custom Elements in post-order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/CustomElementRegistrationContext.h
diff --git a/Source/core/dom/CustomElementRegistrationContext.h b/Source/core/dom/CustomElementRegistrationContext.h
index 64099d398594c316fdb4d1266dd7698c7caa5c40..1ab3f822d617902be3fca25c75e25e115f7d0024 100644
--- a/Source/core/dom/CustomElementRegistrationContext.h
+++ b/Source/core/dom/CustomElementRegistrationContext.h
@@ -57,12 +57,14 @@ public:
void registerElement(Document*, CustomElementConstructorBuilder*, const AtomicString& type, ExceptionState&);
// Instance creation
- PassRefPtr<Element> createCustomTagElement(Document*, const QualifiedName&);
+ enum CreationMode {
+ CreatedByParser,
+ CreatedByCloning,
dglazkov 2013/08/13 16:22:06 Sounds like this guy is not being used at the mome
+ CreatedByDOM
+ };
+ PassRefPtr<Element> createCustomTagElement(Document*, const QualifiedName&, CreationMode);
static void setIsAttributeAndTypeExtension(Element*, const AtomicString& type);
- static void setTypeExtension(Element*, const AtomicString& type);
-
- // Instance lifecycle
- void customElementWasDestroyed(Element*);
+ static void setTypeExtension(Element*, const AtomicString& type, CreationMode);
protected:
CustomElementRegistrationContext() { }

Powered by Google App Engine
This is Rietveld 408576698