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

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

Issue 1818233003: Merge WTF::initializeMainThread into WTF::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/dom/custom/CustomElementProcessingStack.h" 31 #include "core/dom/custom/CustomElementProcessingStack.h"
32 32
33 #include "core/dom/custom/CustomElementCallbackQueue.h" 33 #include "core/dom/custom/CustomElementCallbackQueue.h"
34 #include "core/dom/custom/CustomElementScheduler.h" 34 #include "core/dom/custom/CustomElementScheduler.h"
35 #include "wtf/MainThread.h"
36 35
37 namespace blink { 36 namespace blink {
38 37
39 size_t CustomElementProcessingStack::s_elementQueueStart = 0; 38 size_t CustomElementProcessingStack::s_elementQueueStart = 0;
40 39
41 // The base of the stack has a null sentinel value. 40 // The base of the stack has a null sentinel value.
42 size_t CustomElementProcessingStack::s_elementQueueEnd = kNumSentinels; 41 size_t CustomElementProcessingStack::s_elementQueueEnd = kNumSentinels;
43 42
44 CustomElementProcessingStack& CustomElementProcessingStack::instance() 43 CustomElementProcessingStack& CustomElementProcessingStack::instance()
45 { 44 {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 m_flattenedProcessingStack.append(callbackQueue); 89 m_flattenedProcessingStack.append(callbackQueue);
91 ++s_elementQueueEnd; 90 ++s_elementQueueEnd;
92 } 91 }
93 92
94 DEFINE_TRACE(CustomElementProcessingStack) 93 DEFINE_TRACE(CustomElementProcessingStack)
95 { 94 {
96 visitor->trace(m_flattenedProcessingStack); 95 visitor->trace(m_flattenedProcessingStack);
97 } 96 }
98 97
99 } // namespace blink 98 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698