OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/CustomElementReactionStack.h" | 5 #include "core/dom/custom/CustomElementReactionStack.h" |
6 | 6 |
7 #include "bindings/core/v8/Microtask.h" | |
8 #include "core/dom/Element.h" | 7 #include "core/dom/Element.h" |
9 #include "core/dom/custom/CEReactionsScope.h" | 8 #include "core/dom/custom/CEReactionsScope.h" |
10 #include "core/dom/custom/CustomElementReactionQueue.h" | 9 #include "core/dom/custom/CustomElementReactionQueue.h" |
| 10 #include "platform/bindings/Microtask.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 Persistent<CustomElementReactionStack>& GetCustomElementReactionStack() { | 16 Persistent<CustomElementReactionStack>& GetCustomElementReactionStack() { |
17 DEFINE_STATIC_LOCAL(Persistent<CustomElementReactionStack>, | 17 DEFINE_STATIC_LOCAL(Persistent<CustomElementReactionStack>, |
18 custom_element_reaction_stack, | 18 custom_element_reaction_stack, |
19 (new CustomElementReactionStack)); | 19 (new CustomElementReactionStack)); |
20 return custom_element_reaction_stack; | 20 return custom_element_reaction_stack; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 CustomElementReactionStackTestSupport::SetCurrentForTest( | 121 CustomElementReactionStackTestSupport::SetCurrentForTest( |
122 CustomElementReactionStack* new_stack) { | 122 CustomElementReactionStack* new_stack) { |
123 Persistent<CustomElementReactionStack>& stack = | 123 Persistent<CustomElementReactionStack>& stack = |
124 GetCustomElementReactionStack(); | 124 GetCustomElementReactionStack(); |
125 CustomElementReactionStack* old_stack = stack.Get(); | 125 CustomElementReactionStack* old_stack = stack.Get(); |
126 stack = new_stack; | 126 stack = new_stack; |
127 return old_stack; | 127 return old_stack; |
128 } | 128 } |
129 | 129 |
130 } // namespace blink | 130 } // namespace blink |
OLD | NEW |