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