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

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

Issue 17707002: Implement Custom Elements inserted and removed callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/CustomElementRegistry.h
diff --git a/Source/core/dom/CustomElementRegistry.h b/Source/core/dom/CustomElementRegistry.h
index 525618ae6b2de3a68bda40bcae6942fe8a5a1302..37077b246dbfae32d44424989f88a5e03a1f0a37 100644
--- a/Source/core/dom/CustomElementRegistry.h
+++ b/Source/core/dom/CustomElementRegistry.h
@@ -61,13 +61,16 @@ public:
bool isUnresolved(Element*) const;
PassRefPtr<CustomElementDefinition> findFor(Element*) const;
- PassRefPtr<Element> createCustomTagElement(const QualifiedName& localName);
+ PassRefPtr<Element> createCustomTagElement(const QualifiedName& localName, bool createdByParser);
dglazkov 2013/06/25 18:04:31 Can we use enum here and elsewhere instead of a bo
- Document* document() const;
+ void didGiveTypeExtension(Element*, const AtomicString&, bool byParser);
- void didGiveTypeExtension(Element*, const AtomicString&);
+ void customElementWasInsertedIntoDocument(Element*);
+ void customElementWasRemovedFromDocument(Element*);
void customElementWasDestroyed(Element*);
+ Document* document() const;
+
static bool isCustomTagName(const AtomicString& name) { return isValidName(name); }
private:
@@ -76,7 +79,7 @@ private:
PassRefPtr<CustomElementDefinition> findAndCheckNamespace(const AtomicString& type, const AtomicString& namespaceURI) const;
- void didCreateCustomTagElement(CustomElementDefinition*, Element*);
+ void didCreateCustomTagElement(CustomElementDefinition*, Element*, bool createdByParser);
void didCreateUnresolvedElement(CustomElementDefinition::CustomElementKind, const AtomicString& type, Element*);
DefinitionMap m_definitions;

Powered by Google App Engine
This is Rietveld 408576698