OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" | 5 #include "core/dom/custom/V0CustomElementSyncMicrotaskQueue.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 void CustomElementSyncMicrotaskQueue::enqueue(CustomElementMicrotaskStep* step) | 9 void V0CustomElementSyncMicrotaskQueue::enqueue(V0CustomElementMicrotaskStep* st
ep) |
10 { | 10 { |
11 m_queue.append(step); | 11 m_queue.append(step); |
12 } | 12 } |
13 | 13 |
14 void CustomElementSyncMicrotaskQueue::doDispatch() | 14 void V0CustomElementSyncMicrotaskQueue::doDispatch() |
15 { | 15 { |
16 unsigned i; | 16 unsigned i; |
17 | 17 |
18 for (i = 0; i < m_queue.size(); ++i) { | 18 for (i = 0; i < m_queue.size(); ++i) { |
19 if (CustomElementMicrotaskStep::Processing == m_queue[i]->process()) | 19 if (V0CustomElementMicrotaskStep::Processing == m_queue[i]->process()) |
20 break; | 20 break; |
21 } | 21 } |
22 | 22 |
23 m_queue.remove(0, i); | 23 m_queue.remove(0, i); |
24 } | 24 } |
25 | 25 |
26 } // namespace blink | 26 } // namespace blink |
OLD | NEW |