| 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/CustomElementMicrotaskDispatcher.h" | 5 #include "core/dom/custom/CustomElementMicrotaskDispatcher.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/Microtask.h" | 7 #include "bindings/core/v8/Microtask.h" |
| 8 #include "core/dom/custom/CustomElementCallbackQueue.h" | 8 #include "core/dom/custom/CustomElementCallbackQueue.h" |
| 9 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" | 9 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" |
| 10 #include "core/dom/custom/CustomElementProcessingStack.h" | 10 #include "core/dom/custom/CustomElementProcessingStack.h" |
| 11 #include "core/dom/custom/CustomElementScheduler.h" | 11 #include "core/dom/custom/CustomElementScheduler.h" |
| 12 #include "wtf/MainThread.h" | |
| 13 | 12 |
| 14 namespace blink { | 13 namespace blink { |
| 15 | 14 |
| 16 static const CustomElementCallbackQueue::ElementQueueId kMicrotaskQueueId = 0; | 15 static const CustomElementCallbackQueue::ElementQueueId kMicrotaskQueueId = 0; |
| 17 | 16 |
| 18 CustomElementMicrotaskDispatcher::CustomElementMicrotaskDispatcher() | 17 CustomElementMicrotaskDispatcher::CustomElementMicrotaskDispatcher() |
| 19 : m_hasScheduledMicrotask(false) | 18 : m_hasScheduledMicrotask(false) |
| 20 , m_phase(Quiescent) | 19 , m_phase(Quiescent) |
| 21 { | 20 { |
| 22 } | 21 } |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 81 } |
| 83 | 82 |
| 84 DEFINE_TRACE(CustomElementMicrotaskDispatcher) | 83 DEFINE_TRACE(CustomElementMicrotaskDispatcher) |
| 85 { | 84 { |
| 86 #if ENABLE(OILPAN) | 85 #if ENABLE(OILPAN) |
| 87 visitor->trace(m_elements); | 86 visitor->trace(m_elements); |
| 88 #endif | 87 #endif |
| 89 } | 88 } |
| 90 | 89 |
| 91 } // namespace blink | 90 } // namespace blink |
| OLD | NEW |