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

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

Issue 2027333003: Avoid unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CustomElementReactionStack_h 5 #ifndef CustomElementReactionStack_h
6 #define CustomElementReactionStack_h 6 #define CustomElementReactionStack_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 CustomElementReactionQueue; 15 class CustomElementReactionQueue;
16 class Element; 16 class Element;
17 17
18 // https://html.spec.whatwg.org/multipage/scripting.html#custom-element-reaction s 18 // https://html.spec.whatwg.org/multipage/scripting.html#custom-element-reaction s
19 class CORE_EXPORT CustomElementReactionStack final 19 class CORE_EXPORT CustomElementReactionStack final
20 : public GarbageCollectedFinalized<CustomElementReactionStack> { 20 : public GarbageCollected<CustomElementReactionStack> {
21 WTF_MAKE_NONCOPYABLE(CustomElementReactionStack); 21 WTF_MAKE_NONCOPYABLE(CustomElementReactionStack);
22 public: 22 public:
23 CustomElementReactionStack(); 23 CustomElementReactionStack();
24 ~CustomElementReactionStack();
25 24
26 DECLARE_TRACE(); 25 DECLARE_TRACE();
27 26
28 void push(); 27 void push();
29 void popInvokingReactions(); 28 void popInvokingReactions();
30 void enqueue(Element*, CustomElementReaction*); 29 void enqueue(Element*, CustomElementReaction*);
31 30
32 private: 31 private:
33 using ElementReactionQueueMap = 32 using ElementReactionQueueMap =
34 HeapHashMap<Member<Element>, Member<CustomElementReactionQueue>>; 33 HeapHashMap<Member<Element>, Member<CustomElementReactionQueue>>;
35 ElementReactionQueueMap m_map; 34 ElementReactionQueueMap m_map;
36 35
37 using ElementQueue = HeapVector<Member<Element>, 1>; 36 using ElementQueue = HeapVector<Member<Element>, 1>;
38 HeapVector<Member<ElementQueue>> m_stack; 37 HeapVector<Member<ElementQueue>> m_stack;
39 }; 38 };
40 39
41 } // namespace blink 40 } // namespace blink
42 41
43 #endif // CustomElementReactionStack_h 42 #endif // CustomElementReactionStack_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698