Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp

Issue 2848963002: Clean up bindings/core/v8 (Part 1) (Closed)
Patch Set: Fix build Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698