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

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: Patch for landing. 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
« no previous file with comments | « Source/core/dom/CustomElementObserver.cpp ('k') | Source/core/dom/CustomElementRegistrationContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/CustomElementRegistrationContext.h
diff --git a/Source/core/dom/CustomElementRegistrationContext.h b/Source/core/dom/CustomElementRegistrationContext.h
index 64099d398594c316fdb4d1266dd7698c7caa5c40..1c3336ed35fcd44511ae32b59bec24958b6f06c8 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&);
- static void setIsAttributeAndTypeExtension(Element*, const AtomicString& type);
- static void setTypeExtension(Element*, const AtomicString& type);
+ enum CreationMode {
+ CreatedByParser,
+ NotCreatedByParser
+ };
- // Instance lifecycle
- void customElementWasDestroyed(Element*);
+ PassRefPtr<Element> createCustomTagElement(Document*, const QualifiedName&, CreationMode = NotCreatedByParser);
+ static void setIsAttributeAndTypeExtension(Element*, const AtomicString& type);
+ static void setTypeExtension(Element*, const AtomicString& type, CreationMode = NotCreatedByParser);
protected:
CustomElementRegistrationContext() { }
« no previous file with comments | « Source/core/dom/CustomElementObserver.cpp ('k') | Source/core/dom/CustomElementRegistrationContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698