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 "config.h" | 5 #include "config.h" |
6 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h" | 6 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h" |
7 | 7 |
8 #include "core/dom/Microtask.h" | 8 #include "core/dom/Microtask.h" |
9 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" | 9 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" |
10 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" | 10 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 m_syncQueue->dispatch(); | 64 m_syncQueue->dispatch(); |
65 if (m_syncQueue->isEmpty()) | 65 if (m_syncQueue->isEmpty()) |
66 m_asyncQueue->dispatch(); | 66 m_asyncQueue->dispatch(); |
67 } | 67 } |
68 | 68 |
69 bool CustomElementMicrotaskRunQueue::isEmpty() const | 69 bool CustomElementMicrotaskRunQueue::isEmpty() const |
70 { | 70 { |
71 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty(); | 71 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty(); |
72 } | 72 } |
73 | 73 |
74 #if !defined(NDEBUG) | |
75 void CustomElementMicrotaskRunQueue::show(unsigned indent) | |
76 { | |
77 fprintf(stderr, "Sync:\n"); | |
78 m_syncQueue->show(indent); | |
79 fprintf(stderr, "Async:\n"); | |
80 m_asyncQueue->show(indent); | |
81 } | |
82 #endif | |
83 | |
84 } // namespace blink | 74 } // namespace blink |
OLD | NEW |