| 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 "sky/engine/config.h" |
| 6 #include "core/dom/custom/CustomElementMicrotaskRunQueue.h" | 6 #include "sky/engine/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 "sky/engine/core/dom/Microtask.h" |
| 10 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" | 10 #include "sky/engine/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" |
| 11 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" | 11 #include "sky/engine/core/dom/custom/CustomElementSyncMicrotaskQueue.h" |
| 12 #include "core/html/imports/HTMLImportLoader.h" | 12 #include "sky/engine/core/html/imports/HTMLImportLoader.h" |
| 13 | 13 |
| 14 #include <stdio.h> | 14 #include <stdio.h> |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 CustomElementMicrotaskRunQueue::CustomElementMicrotaskRunQueue() | 18 CustomElementMicrotaskRunQueue::CustomElementMicrotaskRunQueue() |
| 19 : m_syncQueue(CustomElementSyncMicrotaskQueue::create()) | 19 : m_syncQueue(CustomElementSyncMicrotaskQueue::create()) |
| 20 , m_asyncQueue(CustomElementAsyncImportMicrotaskQueue::create()) | 20 , m_asyncQueue(CustomElementAsyncImportMicrotaskQueue::create()) |
| 21 , m_dispatchIsPending(false) | 21 , m_dispatchIsPending(false) |
| 22 , m_weakFactory(this) | 22 , m_weakFactory(this) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 if (m_syncQueue->isEmpty()) | 56 if (m_syncQueue->isEmpty()) |
| 57 m_asyncQueue->dispatch(); | 57 m_asyncQueue->dispatch(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 bool CustomElementMicrotaskRunQueue::isEmpty() const | 60 bool CustomElementMicrotaskRunQueue::isEmpty() const |
| 61 { | 61 { |
| 62 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty(); | 62 return m_syncQueue->isEmpty() && m_asyncQueue->isEmpty(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| OLD | NEW |