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

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.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/V0CustomElementRegistrationContext.h
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.h b/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.h
index b3e41662c75cfc24399d164b98f21cd5c5c4278f..8ef3524bbeb9ad2b491e1163cfa5f6cfc2c359a6 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.h
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.h
@@ -40,6 +40,8 @@
namespace blink {
+class ScriptState;
+
class V0CustomElementRegistrationContext final : public GarbageCollectedFinalized<V0CustomElementRegistrationContext> {
public:
static V0CustomElementRegistrationContext* create()
@@ -51,7 +53,7 @@ public:
void documentWasDetached() { m_registry.documentWasDetached(); }
// Definitions
- void registerElement(Document*, V0CustomElementConstructorBuilder*, const AtomicString& type, V0CustomElement::NameSet validNames, ExceptionState&);
+ void registerElement(ScriptState*, Document*, V0CustomElementConstructorBuilder*, const AtomicString& type, V0CustomElement::NameSet validNames, ExceptionState&);
Element* createCustomTagElement(Document&, const QualifiedName&);
static void setIsAttributeAndTypeExtension(Element*, const AtomicString& type);
@@ -59,6 +61,8 @@ public:
void resolve(Element*, const V0CustomElementDescriptor&);
+ const V0CustomElementRegistry& registry() const { return m_registry; }
+
DECLARE_TRACE();
protected:

Powered by Google App Engine
This is Rietveld 408576698