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

Unified Diff: Source/core/html/imports/HTMLImportLoader.cpp

Issue 249563003: REGRESSION(r171966): Custom elements in async imports don't get upgrade. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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: Source/core/html/imports/HTMLImportLoader.cpp
diff --git a/Source/core/html/imports/HTMLImportLoader.cpp b/Source/core/html/imports/HTMLImportLoader.cpp
index 7bf0a30622794c5a9973efe77303ca3b74ecd7dc..fa70f24f665bd997a441355b68ce5d1832c9daad 100644
--- a/Source/core/html/imports/HTMLImportLoader.cpp
+++ b/Source/core/html/imports/HTMLImportLoader.cpp
@@ -46,7 +46,6 @@ namespace WebCore {
HTMLImportLoader::HTMLImportLoader(HTMLImportsController* controller)
: m_controller(controller)
, m_state(StateLoading)
- , m_microtaskQueue(CustomElementMicrotaskQueue::create())
{
}
@@ -223,4 +222,11 @@ PassRefPtr<CustomElementMicrotaskQueue> HTMLImportLoader::microtaskQueue() const
return m_microtaskQueue;
}
+PassRefPtr<CustomElementMicrotaskQueue> HTMLImportLoader::ensureMicrotaskQueue()
+{
+ if (!m_microtaskQueue)
+ m_microtaskQueue = CustomElementMicrotaskQueue::create();
+ return m_microtaskQueue;
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698