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

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: Eliminate redundant TODOs. 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 7379a49a1a7d082a1f730431b2a5679d546146c9..2bc7c78c208c7cd2eb5cad85d6aea8535778c978 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -1328,7 +1328,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