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

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

Issue 288323004: HTML Imports: Get rid of needsProcessOrStop() from dom/custom/ (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/CustomElementScheduler.cpp
diff --git a/Source/core/dom/custom/CustomElementScheduler.cpp b/Source/core/dom/custom/CustomElementScheduler.cpp
index 1980496aa6322749dc9bc9e54466e5413e502078..407e715ddb6abfa4a83f548145bd16499d8edb81 100644
--- a/Source/core/dom/custom/CustomElementScheduler.cpp
+++ b/Source/core/dom/custom/CustomElementScheduler.cpp
@@ -84,13 +84,11 @@ CustomElementMicrotaskImportStep* CustomElementScheduler::scheduleImport(HTMLImp
ASSERT(!import->isDone());
ASSERT(import->parent());
- OwnPtr<CustomElementMicrotaskImportStep> step = CustomElementMicrotaskImportStep::create(import);
- CustomElementMicrotaskImportStep* rawStep = step.get();
-
// Ownership of the new step is transferred to the parent
// processing step, or the base queue.
+ OwnPtr<CustomElementMicrotaskImportStep> step = CustomElementMicrotaskImportStep::create(import);
+ CustomElementMicrotaskImportStep* rawStep = step.get();
CustomElementMicrotaskDispatcher::instance().enqueue(import->parent()->loader(), step.release());
dominicc (has gone to gerrit) 2014/05/27 23:41:25 ... would just passing isSync() here be neater tha
Hajime Morrita 2014/05/28 00:41:37 Done.
-
return rawStep;
}

Powered by Google App Engine
This is Rietveld 408576698