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

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

Issue 503043003: Rename CustomElementCallbackDispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TBR added Created 6 years, 3 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/CustomElementProcessingStack.cpp
diff --git a/Source/core/dom/custom/CustomElementCallbackDispatcher.cpp b/Source/core/dom/custom/CustomElementProcessingStack.cpp
similarity index 82%
rename from Source/core/dom/custom/CustomElementCallbackDispatcher.cpp
rename to Source/core/dom/custom/CustomElementProcessingStack.cpp
index 5753c296811d52fe7f0d9218a902bb89972cd51b..d5e22f2945280dd41dc230d3db0a93351eab830c 100644
--- a/Source/core/dom/custom/CustomElementCallbackDispatcher.cpp
+++ b/Source/core/dom/custom/CustomElementProcessingStack.cpp
@@ -29,7 +29,7 @@
*/
#include "config.h"
-#include "core/dom/custom/CustomElementCallbackDispatcher.h"
+#include "core/dom/custom/CustomElementProcessingStack.h"
#include "core/dom/custom/CustomElementCallbackQueue.h"
#include "core/dom/custom/CustomElementScheduler.h"
@@ -37,29 +37,29 @@
namespace blink {
-size_t CustomElementCallbackDispatcher::s_elementQueueStart = 0;
+size_t CustomElementProcessingStack::s_elementQueueStart = 0;
// The base of the stack has a null sentinel value.
-size_t CustomElementCallbackDispatcher::s_elementQueueEnd = kNumSentinels;
+size_t CustomElementProcessingStack::s_elementQueueEnd = kNumSentinels;
-CustomElementCallbackDispatcher& CustomElementCallbackDispatcher::instance()
+CustomElementProcessingStack& CustomElementProcessingStack::instance()
{
- DEFINE_STATIC_LOCAL(CustomElementCallbackDispatcher, instance, ());
+ DEFINE_STATIC_LOCAL(CustomElementProcessingStack, instance, ());
return instance;
}
// Dispatches callbacks when popping the processing stack.
-void CustomElementCallbackDispatcher::processElementQueueAndPop()
+void CustomElementProcessingStack::processElementQueueAndPop()
{
instance().processElementQueueAndPop(s_elementQueueStart, s_elementQueueEnd);
}
-void CustomElementCallbackDispatcher::processElementQueueAndPop(size_t start, size_t end)
+void CustomElementProcessingStack::processElementQueueAndPop(size_t start, size_t end)
{
ASSERT(isMainThread());
CustomElementCallbackQueue::ElementQueueId thisQueue = currentElementQueue();
- for (size_t i = start; i < end; i++) {
+ for (size_t i = start; i < end; ++i) {
{
// The created callback may schedule entered document
// callbacks.
@@ -79,7 +79,7 @@ void CustomElementCallbackDispatcher::processElementQueueAndPop(size_t start, si
CustomElementScheduler::callbackDispatcherDidFinish();
}
-void CustomElementCallbackDispatcher::enqueue(CustomElementCallbackQueue* callbackQueue)
+void CustomElementProcessingStack::enqueue(CustomElementCallbackQueue* callbackQueue)
{
ASSERT(inCallbackDeliveryScope());
« no previous file with comments | « Source/core/dom/custom/CustomElementProcessingStack.h ('k') | Source/core/dom/custom/CustomElementScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698