| 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" | 7 #include "bindings/core/v8/Microtask.h" |
| 8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
| 9 #include "core/dom/custom/CEReactionsScope.h" | 9 #include "core/dom/custom/CEReactionsScope.h" |
| 10 #include "core/dom/custom/CustomElementReactionQueue.h" | 10 #include "core/dom/custom/CustomElementReactionQueue.h" |
| 11 #include "core/frame/FrameHost.h" | |
| 12 | 11 |
| 13 namespace blink { | 12 namespace blink { |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 Persistent<CustomElementReactionStack>& customElementReactionStack() { | 16 Persistent<CustomElementReactionStack>& customElementReactionStack() { |
| 18 DEFINE_STATIC_LOCAL(Persistent<CustomElementReactionStack>, | 17 DEFINE_STATIC_LOCAL(Persistent<CustomElementReactionStack>, |
| 19 customElementReactionStack, | 18 customElementReactionStack, |
| 20 (new CustomElementReactionStack)); | 19 (new CustomElementReactionStack)); |
| 21 return customElementReactionStack; | 20 return customElementReactionStack; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 CustomElementReactionStack* | 120 CustomElementReactionStack* |
| 122 CustomElementReactionStackTestSupport::setCurrentForTest( | 121 CustomElementReactionStackTestSupport::setCurrentForTest( |
| 123 CustomElementReactionStack* newStack) { | 122 CustomElementReactionStack* newStack) { |
| 124 Persistent<CustomElementReactionStack>& stack = customElementReactionStack(); | 123 Persistent<CustomElementReactionStack>& stack = customElementReactionStack(); |
| 125 CustomElementReactionStack* oldStack = stack.get(); | 124 CustomElementReactionStack* oldStack = stack.get(); |
| 126 stack = newStack; | 125 stack = newStack; |
| 127 return oldStack; | 126 return oldStack; |
| 128 } | 127 } |
| 129 | 128 |
| 130 } // namespace blink | 129 } // namespace blink |
| OLD | NEW |