Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElement.cpp

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses tkent's comments. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698