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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h

Issue 1521583002: Oilpan: fix build after r364654. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need for GarbageCollectedFinalized<> for SlotAssignment Created 5 years 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 | « third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SlotAssignment_h 5 #ifndef SlotAssignment_h
6 #define SlotAssignment_h 6 #define SlotAssignment_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class HTMLSlotElement; 12 class HTMLSlotElement;
13 class Node; 13 class Node;
14 class ShadowRoot; 14 class ShadowRoot;
15 15
16 class SlotAssignment final { 16 class SlotAssignment final : public NoBaseWillBeGarbageCollected<SlotAssignment> {
17 public: 17 public:
18 SlotAssignment() { } 18 static PassOwnPtrWillBeRawPtr<SlotAssignment> create()
19 {
20 return adoptPtrWillBeNoop(new SlotAssignment);
21 }
22
19 HTMLSlotElement* assignedSlotFor(const Node&) const; 23 HTMLSlotElement* assignedSlotFor(const Node&) const;
20 void resolveAssignment(const ShadowRoot&); 24 void resolveAssignment(const ShadowRoot&);
21 25
22 DECLARE_TRACE(); 26 DECLARE_TRACE();
23 27
24 private: 28 private:
29 SlotAssignment() { }
30
25 void assign(Node&, HTMLSlotElement&); 31 void assign(Node&, HTMLSlotElement&);
26 WillBeHeapHashMap<RawPtrWillBeMember<Node>, RawPtrWillBeMember<HTMLSlotEleme nt>> m_assignment; 32 WillBeHeapHashMap<RawPtrWillBeMember<Node>, RawPtrWillBeMember<HTMLSlotEleme nt>> m_assignment;
27 }; 33 };
28 34
29 } // namespace blink 35 } // namespace blink
30 36
31 #endif // HTMLSlotAssignment_h 37 #endif // HTMLSlotAssignment_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698