| Index: third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
|
| index f5d1b2084259d210e062bf6553be983a8d4a5af4..2f6f6bf2f21b12d2ecf89ea0bd169ebb4c49c894 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
|
| @@ -24,9 +24,10 @@ CustomElementsRegistry* CustomElement::registry(const Element& element)
|
| {
|
| return registry(element.document());
|
| }
|
| +
|
| CustomElementsRegistry* CustomElement::registry(const Document& document)
|
| {
|
| - if (LocalDOMWindow* window = document.domWindow())
|
| + if (LocalDOMWindow* window = document.executingWindow())
|
| return window->customElements();
|
| return nullptr;
|
| }
|
|
|