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

Unified Diff: Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp

Issue 289993004: HTML Imports: Take care of cycles according to the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/dom/custom/CustomElementMicrotaskImportStep.cpp
diff --git a/Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp b/Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp
index 99f37c9c6b96ac8f9ef0da144f90b73da7c1309c..39f6bd2a10d7da687751409d43a631b23e0c67df 100644
--- a/Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp
+++ b/Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp
@@ -55,6 +55,12 @@ CustomElementMicrotaskImportStep::~CustomElementMicrotaskImportStep()
{
}
+void CustomElementMicrotaskImportStep::parentWasChanged()
+{
+ m_queue = CustomElementMicrotaskQueue::create();
+ m_import.clear();
+}
+
bool CustomElementMicrotaskImportStep::shouldWaitForImport() const
{
return m_import && !m_import->isLoaded();
« no previous file with comments | « Source/core/dom/custom/CustomElementMicrotaskImportStep.h ('k') | Source/core/html/imports/HTMLImportChild.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698