Chromium Code Reviews| 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 79% |
| rename from Source/core/dom/custom/CustomElementCallbackDispatcher.cpp |
| rename to Source/core/dom/custom/CustomElementProcessingStack.cpp |
| index 5753c296811d52fe7f0d9218a902bb89972cd51b..43544e68f2be43f5b4a9f7e4ac88cf5be44a79db 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,32 @@ |
| 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) { |
| + // FIXME: without this line, webkit-style script is generating error. |
|
dominicc (has gone to gerrit)
2014/08/27 20:20:23
I would not add an unused variable just to appease
deepak.sa
2014/08/28 07:02:42
I didn't knew how to by pass the style-check, so t
|
| + // Remove this variable. |
| + bool wrongVariable = false; |
| { |
| // The created callback may schedule entered document |
| // callbacks. |
| @@ -79,7 +82,7 @@ void CustomElementCallbackDispatcher::processElementQueueAndPop(size_t start, si |
| CustomElementScheduler::callbackDispatcherDidFinish(); |
| } |
| -void CustomElementCallbackDispatcher::enqueue(CustomElementCallbackQueue* callbackQueue) |
| +void CustomElementProcessingStack::enqueue(CustomElementCallbackQueue* callbackQueue) |
| { |
| ASSERT(inCallbackDeliveryScope()); |