| 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 c5bf20ce433588d8d079e53692b7493f42b63c22..41136302a7d15647304d78948b5856c0e91f328e 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| @@ -1329,9 +1329,14 @@ CustomElementsRegistry* LocalDOMWindow::customElements(ScriptState* scriptState)
|
| {
|
| if (!scriptState->world().isMainWorld())
|
| return nullptr;
|
| + return customElements();
|
| +}
|
| +
|
| +CustomElementsRegistry* LocalDOMWindow::customElements() const
|
| +{
|
| if (!m_customElements)
|
| - m_customElements = CustomElementsRegistry::create(scriptState, document()->registrationContext());
|
| - return m_customElements.get();
|
| + m_customElements = CustomElementsRegistry::create(document()->registrationContext());
|
| + return m_customElements;
|
| }
|
|
|
| void LocalDOMWindow::addedEventListener(const AtomicString& eventType, RegisteredEventListener& registeredListener)
|
|
|