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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementReactionQueue.h

Issue 2027513002: Add a stack of queues of elements with reaction queues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ce-element-queue
Patch Set: Rebase. Created 4 years, 6 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 #ifndef CustomElementReactionQueue_h 5 #ifndef CustomElementReactionQueue_h
6 #define CustomElementReactionQueue_h 6 #define CustomElementReactionQueue_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CustomElementReaction; 14 class CustomElementReaction;
15 class Element; 15 class Element;
16 16
17 class CORE_EXPORT CustomElementReactionQueue final 17 class CORE_EXPORT CustomElementReactionQueue final
18 : public GarbageCollectedFinalized<CustomElementReactionQueue> { 18 : public GarbageCollectedFinalized<CustomElementReactionQueue> {
19 WTF_MAKE_NONCOPYABLE(CustomElementReactionQueue); 19 WTF_MAKE_NONCOPYABLE(CustomElementReactionQueue);
20 public: 20 public:
21 CustomElementReactionQueue(); 21 CustomElementReactionQueue();
22 ~CustomElementReactionQueue(); 22 ~CustomElementReactionQueue();
23 23
24 DECLARE_TRACE(); 24 DECLARE_TRACE();
25 25
26 void add(CustomElementReaction*); 26 void add(CustomElementReaction*);
27 void invokeReactions(Element*); 27 void invokeReactions(Element*);
28 bool isEmpty() { return m_reactions.isEmpty(); }
28 29
29 private: 30 private:
30 HeapVector<Member<CustomElementReaction>> m_reactions; 31 HeapVector<Member<CustomElementReaction>, 1> m_reactions;
31 size_t m_index; 32 size_t m_index;
32 }; 33 };
33 34
34 } // namespace blink 35 } // namespace blink
35 36
36 #endif // CustomElementReactionQueue_h 37 #endif // CustomElementReactionQueue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/custom/CustomElementReactionQueueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698