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

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

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.cpp
diff --git a/sky/engine/core/dom/DocumentInit.cpp b/sky/engine/core/dom/DocumentInit.cpp
index f1da6831077d7ac363c42aa6e9b1d23c92966d90..394ed186a3f6de6f64a00a4053dff85f064fc5fb 100644
--- a/sky/engine/core/dom/DocumentInit.cpp
+++ b/sky/engine/core/dom/DocumentInit.cpp
@@ -30,7 +30,7 @@
#include "gen/sky/platform/RuntimeEnabledFeatures.h"
#include "sky/engine/core/dom/Document.h"
-#include "sky/engine/core/dom/custom/CustomElementRegistrationContext.h"
+#include "sky/engine/core/dom/custom2/new_custom_element_registry.h"
#include "sky/engine/core/frame/LocalFrame.h"
#include "sky/engine/core/html/imports/HTMLImportsController.h"
@@ -49,7 +49,7 @@ DocumentInit::DocumentInit(const DocumentInit& other)
, m_frame(other.m_frame)
, m_contextDocument(other.m_contextDocument)
, m_importsController(other.m_importsController)
- , m_registrationContext(other.m_registrationContext)
+ , m_elementRegistry(other.m_elementRegistry)
{
}
@@ -77,18 +77,13 @@ Settings* DocumentInit::settings() const
return frameForSecurityContext()->settings();
}
-DocumentInit& DocumentInit::withRegistrationContext(CustomElementRegistrationContext& registrationContext)
+DocumentInit& DocumentInit::withElementRegistry(NewCustomElementRegistry& elementregistry)
{
- ASSERT(!m_registrationContext);
- m_registrationContext = &registrationContext;
+ ASSERT(!m_elementRegistry);
+ m_elementRegistry = &elementregistry;
return *this;
}
-PassRefPtr<CustomElementRegistrationContext> DocumentInit::registrationContext() const
-{
- return m_registrationContext.get();
-}
-
WeakPtr<Document> DocumentInit::contextDocument() const
{
return m_contextDocument;

Powered by Google App Engine
This is Rietveld 408576698