| 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 15d7f1f9bfd371fa689d3fe603ba18d7e11578df..0e6f2bc77983e0d1da1c0538800f884070a6489f 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| @@ -1336,8 +1336,8 @@ CustomElementsRegistry* LocalDOMWindow::customElements(ScriptState* scriptState)
|
|
|
| CustomElementsRegistry* LocalDOMWindow::customElements() const
|
| {
|
| - if (!m_customElements)
|
| - m_customElements = CustomElementsRegistry::create(document()->registrationContext());
|
| + if (!m_customElements && m_document)
|
| + m_customElements = CustomElementsRegistry::create(document());
|
| return m_customElements;
|
| }
|
|
|
|
|