Chromium Code Reviews| 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; |