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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2200613002: The HTML parser synchronously creates custom elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 1fb4ffe6862ef48b7be5ff7d5d7f38991883300c..1a2988f20b7dcdfe1ef00708c67a569799406334 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -1334,7 +1334,12 @@ CustomElementsRegistry* LocalDOMWindow::customElements(ScriptState* scriptState)
CustomElementsRegistry* LocalDOMWindow::customElements() const
{
if (!m_customElements && m_document)
- m_customElements = CustomElementsRegistry::create(document());
+ m_customElements = CustomElementsRegistry::create(this);
+ return m_customElements;
+}
+
+CustomElementsRegistry* LocalDOMWindow::maybeCustomElements() const
+{
return m_customElements;
}

Powered by Google App Engine
This is Rietveld 408576698