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

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

Issue 14776002: Create wrappers for unresolved Custom Elements at the correct type (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/CustomElementRegistry.h
diff --git a/Source/core/dom/CustomElementRegistry.h b/Source/core/dom/CustomElementRegistry.h
index 40c2435024a0a37e56966741a0d47d8c666bbdd2..77ffd405f88c0815ae97808021f80e62a479c871 100644
--- a/Source/core/dom/CustomElementRegistry.h
+++ b/Source/core/dom/CustomElementRegistry.h
@@ -85,13 +85,14 @@ public:
PassRefPtr<CustomElementDefinition> findFor(Element*) const;
PassRefPtr<CustomElementDefinition> findAndCheckNamespace(const AtomicString& type, const AtomicString& namespaceURI) const;
- PassRefPtr<Element> tryToCreateCustomTagElement(const QualifiedName& localName);
+ PassRefPtr<Element> createCustomTagElement(const QualifiedName& localName);
Document* document() const;
void didGiveTypeExtension(Element*);
- static bool isValidName(const AtomicString&);
+ static bool isCustomTagName(const AtomicString& name) { return isValidName(name); }
+
static void deliverAllLifecycleCallbacks();
static void deliverAllLifecycleCallbacksIfNeeded();
@@ -100,12 +101,14 @@ private:
typedef HashSet<AtomicString> NameSet;
typedef ListHashSet<CustomElementRegistry*> InstanceSet;
+ static bool isValidName(const AtomicString&);
+
static InstanceSet& activeCustomElementRegistries();
void activate(const CustomElementInvocation&);
void deactivate();
void deliverLifecycleCallbacks();
- void didCreateElement(Element*);
+ void didCreateCustomTagElement(Element*);
DefinitionMap m_definitions;
Vector<CustomElementInvocation> m_invocations;

Powered by Google App Engine
This is Rietveld 408576698