| 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/CustomElementMicrotaskDispatcher.h" | 6 #include "core/dom/custom/CustomElementMicrotaskDispatcher.h" |
| 7 | 7 |
| 8 #include "core/dom/Microtask.h" | 8 #include "core/dom/Microtask.h" |
| 9 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 9 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
| 10 #include "core/dom/custom/CustomElementCallbackQueue.h" | 10 #include "core/dom/custom/CustomElementCallbackQueue.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 m_elements.clear(); | 93 m_elements.clear(); |
| 94 CustomElementScheduler::microtaskDispatcherDidFinish(); | 94 CustomElementScheduler::microtaskDispatcherDidFinish(); |
| 95 m_phase = Quiescent; | 95 m_phase = Quiescent; |
| 96 } | 96 } |
| 97 | 97 |
| 98 #if !defined(NDEBUG) | 98 #if !defined(NDEBUG) |
| 99 void CustomElementMicrotaskDispatcher::show() | 99 void CustomElementMicrotaskDispatcher::show() |
| 100 { | 100 { |
| 101 m_resolutionAndImports->show(0); | 101 fprintf(stderr, "Dispatcher:\n"); |
| 102 m_resolutionAndImports->show(1); |
| 102 } | 103 } |
| 103 #endif | 104 #endif |
| 104 | 105 |
| 105 } // namespace WebCore | 106 } // namespace WebCore |
| 106 | 107 |
| 107 #if !defined(NDEBUG) | 108 #if !defined(NDEBUG) |
| 108 void showCEMD() | 109 void showCEMD() |
| 109 { | 110 { |
| 110 WebCore::CustomElementMicrotaskDispatcher::instance().show(); | 111 WebCore::CustomElementMicrotaskDispatcher::instance().show(); |
| 111 } | 112 } |
| 112 #endif | 113 #endif |
| OLD | NEW |