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/CustomElementMicrotaskRunQueue.h" | 5 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h" |
6 | 6 |
7 #include "bindings/core/v8/Microtask.h" | 7 #include "core/dom/Microtask.h" |
8 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" | 8 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" |
9 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" | 9 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" |
10 #include "core/html/imports/HTMLImportLoader.h" | 10 #include "core/html/imports/HTMLImportLoader.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskRunQueue) | 14 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskRunQueue) |
15 | 15 |
16 CustomElementMicrotaskRunQueue::CustomElementMicrotaskRunQueue() | 16 CustomElementMicrotaskRunQueue::CustomElementMicrotaskRunQueue() |
17 : m_syncQueue(CustomElementSyncMicrotaskQueue::create()) | 17 : m_syncQueue(CustomElementSyncMicrotaskQueue::create()) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 if (m_syncQueue->isEmpty()) | 63 if (m_syncQueue->isEmpty()) |
64 m_asyncQueue->dispatch(); | 64 m_asyncQueue->dispatch(); |
65 } | 65 } |
66 | 66 |
67 bool CustomElementMicrotaskRunQueue::isEmpty() const | 67 bool CustomElementMicrotaskRunQueue::isEmpty() const |
68 { | 68 { |
69 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty(); | 69 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty(); |
70 } | 70 } |
71 | 71 |
72 } // namespace blink | 72 } // namespace blink |
OLD | NEW |