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

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.cpp

Issue 1914923002: Rename all existing custom element classes as V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CustomElementV0 -> V0CustomElement Created 4 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: third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskRunQueue.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.cpp
similarity index 51%
rename from third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskRunQueue.cpp
rename to third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.cpp
index 1697aa0a0b80c1e25594687f3f9fab9364428e1b..4af1b327d2945c02e313446ef4b1a152f6301f0a 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskRunQueue.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.cpp
@@ -2,23 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "core/dom/custom/CustomElementMicrotaskRunQueue.h"
+#include "core/dom/custom/V0CustomElementMicrotaskRunQueue.h"
#include "bindings/core/v8/Microtask.h"
-#include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h"
-#include "core/dom/custom/CustomElementSyncMicrotaskQueue.h"
+#include "core/dom/custom/V0CustomElementAsyncImportMicrotaskQueue.h"
+#include "core/dom/custom/V0CustomElementSyncMicrotaskQueue.h"
#include "core/html/imports/HTMLImportLoader.h"
namespace blink {
-CustomElementMicrotaskRunQueue::CustomElementMicrotaskRunQueue()
- : m_syncQueue(CustomElementSyncMicrotaskQueue::create())
- , m_asyncQueue(CustomElementAsyncImportMicrotaskQueue::create())
+V0CustomElementMicrotaskRunQueue::V0CustomElementMicrotaskRunQueue()
+ : m_syncQueue(V0CustomElementSyncMicrotaskQueue::create())
+ , m_asyncQueue(V0CustomElementAsyncImportMicrotaskQueue::create())
, m_dispatchIsPending(false)
{
}
-void CustomElementMicrotaskRunQueue::enqueue(HTMLImportLoader* parentLoader, CustomElementMicrotaskStep* step, bool importIsSync)
+void V0CustomElementMicrotaskRunQueue::enqueue(HTMLImportLoader* parentLoader, V0CustomElementMicrotaskStep* step, bool importIsSync)
{
if (importIsSync) {
if (parentLoader)
@@ -32,21 +32,21 @@ void CustomElementMicrotaskRunQueue::enqueue(HTMLImportLoader* parentLoader, Cus
requestDispatchIfNeeded();
}
-void CustomElementMicrotaskRunQueue::requestDispatchIfNeeded()
+void V0CustomElementMicrotaskRunQueue::requestDispatchIfNeeded()
{
if (m_dispatchIsPending || isEmpty())
return;
- Microtask::enqueueMicrotask(WTF::bind(&CustomElementMicrotaskRunQueue::dispatch, WeakPersistentThisPointer<CustomElementMicrotaskRunQueue>(this)));
+ Microtask::enqueueMicrotask(WTF::bind(&V0CustomElementMicrotaskRunQueue::dispatch, WeakPersistentThisPointer<V0CustomElementMicrotaskRunQueue>(this)));
m_dispatchIsPending = true;
}
-DEFINE_TRACE(CustomElementMicrotaskRunQueue)
+DEFINE_TRACE(V0CustomElementMicrotaskRunQueue)
{
visitor->trace(m_syncQueue);
visitor->trace(m_asyncQueue);
}
-void CustomElementMicrotaskRunQueue::dispatch()
+void V0CustomElementMicrotaskRunQueue::dispatch()
{
m_dispatchIsPending = false;
m_syncQueue->dispatch();
@@ -54,7 +54,7 @@ void CustomElementMicrotaskRunQueue::dispatch()
m_asyncQueue->dispatch();
}
-bool CustomElementMicrotaskRunQueue::isEmpty() const
+bool V0CustomElementMicrotaskRunQueue::isEmpty() const
{
return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty();
}

Powered by Google App Engine
This is Rietveld 408576698