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

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

Issue 2002903002: Hook createElement for Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dominicc review Created 4 years, 7 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 b97c0c1f2fdcafc5542e6c29b407877e6827d127..b37b8d78eb0ccf31692631e8587ccb4965040740 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElement.h
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElement.h
@@ -11,10 +11,20 @@
namespace blink {
+class Document;
+class HTMLElement;
+class QualifiedName;
+
class CORE_EXPORT CustomElement {
STATIC_ONLY(CustomElement);
public:
static bool isValidName(const AtomicString& name);
+
+ static bool shouldCreateCustomElement(Document&, const AtomicString& localName);
+ static bool shouldCreateCustomElement(Document&, const QualifiedName&);
+
+ static HTMLElement* createCustomElement(Document&, const AtomicString& localName);
+ static HTMLElement* createCustomElement(Document&, const QualifiedName&);
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/custom/CustomElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698