| Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| index 7379a49a1a7d082a1f730431b2a5679d546146c9..2bc7c78c208c7cd2eb5cad85d6aea8535778c978 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| @@ -1328,7 +1328,12 @@ CustomElementsRegistry* LocalDOMWindow::customElements(ScriptState* scriptState)
|
| CustomElementsRegistry* LocalDOMWindow::customElements() const
|
| {
|
| if (!m_customElements && m_document)
|
| - m_customElements = CustomElementsRegistry::create(document());
|
| + m_customElements = CustomElementsRegistry::create(this);
|
| + return m_customElements;
|
| +}
|
| +
|
| +CustomElementsRegistry* LocalDOMWindow::maybeCustomElements() const
|
| +{
|
| return m_customElements;
|
| }
|
|
|
|
|