| 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..72dccda93f160fa4ecc65e9dcaa938072f153423 100644
|
| --- a/Source/core/dom/custom/CustomElementScheduler.cpp
|
| +++ b/Source/core/dom/custom/CustomElementScheduler.cpp
|
| @@ -84,13 +84,14 @@ 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.
|
| - CustomElementMicrotaskDispatcher::instance().enqueue(import->parent()->loader(), step.release());
|
| -
|
| + OwnPtr<CustomElementMicrotaskImportStep> step = CustomElementMicrotaskImportStep::create(import);
|
| + CustomElementMicrotaskImportStep* rawStep = step.get();
|
| + if (import->isSync())
|
| + CustomElementMicrotaskDispatcher::instance().enqueue(import->parent()->loader(), step.release());
|
| + else
|
| + CustomElementMicrotaskDispatcher::instance().enqueueAsyncImportStep(step.release());
|
| return rawStep;
|
| }
|
|
|
|
|