| Index: third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskImportStep.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskImportStep.cpp
|
| similarity index 74%
|
| rename from third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp
|
| rename to third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskImportStep.cpp
|
| index 4e008749fbe4931c67e0bd562673e1c5210a202f..af2693ad0f91bc3240ee183301641d2c12a6b394 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskImportStep.cpp
|
| @@ -28,45 +28,45 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "core/dom/custom/CustomElementMicrotaskImportStep.h"
|
| +#include "core/dom/custom/V0CustomElementMicrotaskImportStep.h"
|
|
|
| -#include "core/dom/custom/CustomElementMicrotaskDispatcher.h"
|
| -#include "core/dom/custom/CustomElementSyncMicrotaskQueue.h"
|
| +#include "core/dom/custom/V0CustomElementMicrotaskDispatcher.h"
|
| +#include "core/dom/custom/V0CustomElementSyncMicrotaskQueue.h"
|
| #include "core/html/imports/HTMLImportChild.h"
|
| #include "core/html/imports/HTMLImportLoader.h"
|
| #include <stdio.h>
|
|
|
| namespace blink {
|
|
|
| -CustomElementMicrotaskImportStep::CustomElementMicrotaskImportStep(HTMLImportChild* import)
|
| +V0CustomElementMicrotaskImportStep::V0CustomElementMicrotaskImportStep(HTMLImportChild* import)
|
| : m_import(import)
|
| , m_queue(import->loader()->microtaskQueue())
|
| {
|
| }
|
|
|
| -CustomElementMicrotaskImportStep::~CustomElementMicrotaskImportStep()
|
| +V0CustomElementMicrotaskImportStep::~V0CustomElementMicrotaskImportStep()
|
| {
|
| }
|
|
|
| -void CustomElementMicrotaskImportStep::invalidate()
|
| +void V0CustomElementMicrotaskImportStep::invalidate()
|
| {
|
| - m_queue = CustomElementSyncMicrotaskQueue::create();
|
| + m_queue = V0CustomElementSyncMicrotaskQueue::create();
|
| m_import.clear();
|
| }
|
|
|
| -bool CustomElementMicrotaskImportStep::shouldWaitForImport() const
|
| +bool V0CustomElementMicrotaskImportStep::shouldWaitForImport() const
|
| {
|
| return m_import && !m_import->loader()->isDone();
|
| }
|
|
|
| -void CustomElementMicrotaskImportStep::didUpgradeAllCustomElements()
|
| +void V0CustomElementMicrotaskImportStep::didUpgradeAllCustomElements()
|
| {
|
| DCHECK(m_queue);
|
| if (m_import)
|
| m_import->didFinishUpgradingCustomElements();
|
| }
|
|
|
| -CustomElementMicrotaskStep::Result CustomElementMicrotaskImportStep::process()
|
| +V0CustomElementMicrotaskStep::Result V0CustomElementMicrotaskImportStep::process()
|
| {
|
| m_queue->dispatch();
|
| if (!m_queue->isEmpty() || shouldWaitForImport())
|
| @@ -76,15 +76,15 @@ CustomElementMicrotaskStep::Result CustomElementMicrotaskImportStep::process()
|
| return FinishedProcessing;
|
| }
|
|
|
| -DEFINE_TRACE(CustomElementMicrotaskImportStep)
|
| +DEFINE_TRACE(V0CustomElementMicrotaskImportStep)
|
| {
|
| visitor->trace(m_import);
|
| visitor->trace(m_queue);
|
| - CustomElementMicrotaskStep::trace(visitor);
|
| + V0CustomElementMicrotaskStep::trace(visitor);
|
| }
|
|
|
| #if !defined(NDEBUG)
|
| -void CustomElementMicrotaskImportStep::show(unsigned indent)
|
| +void V0CustomElementMicrotaskImportStep::show(unsigned indent)
|
| {
|
| fprintf(stderr, "%*sImport(wait=%d sync=%d, url=%s)\n", indent, "", shouldWaitForImport(), m_import && m_import->isSync(), m_import ? m_import->url().getString().utf8().data() : "null");
|
| m_queue->show(indent + 1);
|
|
|