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