Chromium Code Reviews| 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..b1e824fc74fb7d3103b05e9bcbff9a9f7ad4ea28 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 = const_cast<Document&>(document).executingWindow()) |
|
dominicc (has gone to gerrit)
2016/08/22 01:46:36
const cast :/
kochi
2016/08/22 07:37:34
Done :-)
|
| return window->customElements(); |
| return nullptr; |
| } |