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

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

Issue 1952893003: Implement custom element construction and some 'define' checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not expose CustomElementsRegistry to isolated worlds. 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/V0CustomElementRegistry.h
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistry.h b/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistry.h
index f2b6cf6aec092c4b51a7eb637baa045d6942e1df..f2e3017b0df274d9d4b17c37c557e01f3250ad06 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistry.h
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistry.h
@@ -42,8 +42,9 @@
namespace blink {
-class V0CustomElementConstructorBuilder;
class ExceptionState;
+class ScriptState;
+class V0CustomElementConstructorBuilder;
class V0CustomElementRegistry final {
WTF_MAKE_NONCOPYABLE(V0CustomElementRegistry);
@@ -51,13 +52,14 @@ class V0CustomElementRegistry final {
public:
DECLARE_TRACE();
void documentWasDetached() { m_documentWasDetached = true; }
+ bool nameIsDefined(const AtomicString&) const;
protected:
friend class V0CustomElementRegistrationContext;
V0CustomElementRegistry() : m_documentWasDetached(false) { }
- V0CustomElementDefinition* registerElement(Document*, V0CustomElementConstructorBuilder*, const AtomicString& name, V0CustomElement::NameSet validNames, ExceptionState&);
+ V0CustomElementDefinition* registerElement(ScriptState*, Document*, V0CustomElementConstructorBuilder*, const AtomicString& name, V0CustomElement::NameSet validNames, ExceptionState&);
V0CustomElementDefinition* find(const V0CustomElementDescriptor&) const;
private:

Powered by Google App Engine
This is Rietveld 408576698