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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElement.h

Issue 2173623003: Add "Failed" custom element state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix and cleanup Created 4 years, 5 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: third_party/WebKit/Source/core/dom/custom/CustomElement.h
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElement.h b/third_party/WebKit/Source/core/dom/custom/CustomElement.h
index 8ab8febd7654e1080c0987d803a4eafe266b5964..2e4ec4f8b00ccdf6a6d2cbdc5734ed98525543c4 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElement.h
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElement.h
@@ -33,6 +33,7 @@ public:
static CustomElementDefinition* definitionForElement(const Element&);
static bool isValidName(const AtomicString& name);
+ static bool isDefined(CustomElementState);
static bool shouldCreateCustomElement(Document&, const AtomicString& localName);
static bool shouldCreateCustomElement(Document&, const QualifiedName&);
@@ -42,6 +43,8 @@ public:
static HTMLElement* createCustomElementSync(Document&, const QualifiedName&);
static HTMLElement* createCustomElementAsync(Document&, const QualifiedName&);
+ static HTMLElement* createFailedElement(Document&, const QualifiedName&);
+
static void enqueue(Element*, CustomElementReaction*);
static void enqueueConnectedCallback(Element*);
static void enqueueDisconnectedCallback(Element*);

Powered by Google App Engine
This is Rietveld 408576698