| 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 = ®istrationContext;
|
| + 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;
|
|
|