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

Unified Diff: sky/engine/core/dom/DocumentInit.h

Issue 943013002: Implement Custom Elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: attributeChanged***d***Callback Created 5 years, 10 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: sky/engine/core/dom/DocumentInit.h
diff --git a/sky/engine/core/dom/DocumentInit.h b/sky/engine/core/dom/DocumentInit.h
index cad22ad8337c3214c7dad81403484c79ce17f4e2..6518f77e8a5a1d6ba575f3f7a2515f82d3b6add4 100644
--- a/sky/engine/core/dom/DocumentInit.h
+++ b/sky/engine/core/dom/DocumentInit.h
@@ -36,10 +36,10 @@
namespace blink {
-class CustomElementRegistrationContext;
class Document;
-class LocalFrame;
class HTMLImportsController;
+class LocalFrame;
+class NewCustomElementRegistry;
class Settings;
class DocumentInit final {
@@ -61,10 +61,13 @@ public:
LocalFrame* ownerFrame() const;
Settings* settings() const;
- DocumentInit& withRegistrationContext(CustomElementRegistrationContext&);
- PassRefPtr<CustomElementRegistrationContext> registrationContext() const;
+ DocumentInit& withElementRegistry(NewCustomElementRegistry&);
WeakPtr<Document> contextDocument() const;
+ NewCustomElementRegistry* elementRegistry() const {
+ return m_elementRegistry.get();
+ }
+
static DocumentInit fromContext(WeakPtr<Document> contextDocument, const KURL& = KURL());
private:
@@ -76,7 +79,7 @@ private:
RefPtr<Document> m_owner;
WeakPtr<Document> m_contextDocument;
RawPtr<HTMLImportsController> m_importsController;
- RefPtr<CustomElementRegistrationContext> m_registrationContext;
+ RefPtr<NewCustomElementRegistry> m_elementRegistry;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698