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/CustomElementMicrotaskQueueBase.h" | 5 #include "core/dom/custom/V0CustomElementMicrotaskQueueBase.h" |
6 | 6 |
7 #include "core/dom/custom/CustomElementProcessingStack.h" | 7 #include "core/dom/custom/V0CustomElementProcessingStack.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 void CustomElementMicrotaskQueueBase::dispatch() | 11 void V0CustomElementMicrotaskQueueBase::dispatch() |
12 { | 12 { |
13 RELEASE_ASSERT(!m_inDispatch); | 13 RELEASE_ASSERT(!m_inDispatch); |
14 m_inDispatch = true; | 14 m_inDispatch = true; |
15 doDispatch(); | 15 doDispatch(); |
16 m_inDispatch = false; | 16 m_inDispatch = false; |
17 } | 17 } |
18 | 18 |
19 DEFINE_TRACE(CustomElementMicrotaskQueueBase) | 19 DEFINE_TRACE(V0CustomElementMicrotaskQueueBase) |
20 { | 20 { |
21 visitor->trace(m_queue); | 21 visitor->trace(m_queue); |
22 } | 22 } |
23 | 23 |
24 #if !defined(NDEBUG) | 24 #if !defined(NDEBUG) |
25 void CustomElementMicrotaskQueueBase::show(unsigned indent) | 25 void V0CustomElementMicrotaskQueueBase::show(unsigned indent) |
26 { | 26 { |
27 for (unsigned q = 0; q < m_queue.size(); ++q) { | 27 for (unsigned q = 0; q < m_queue.size(); ++q) { |
28 if (m_queue[q]) | 28 if (m_queue[q]) |
29 m_queue[q]->show(indent); | 29 m_queue[q]->show(indent); |
30 else | 30 else |
31 fprintf(stderr, "%*snull\n", indent, ""); | 31 fprintf(stderr, "%*snull\n", indent, ""); |
32 } | 32 } |
33 } | 33 } |
34 #endif | 34 #endif |
35 | 35 |
36 } // namespace blink | 36 } // namespace blink |
OLD | NEW |