OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SlotAssignment_h |
| 6 #define SlotAssignment_h |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class HTMLSlotElement; |
| 13 class Node; |
| 14 class ShadowRoot; |
| 15 |
| 16 class SlotAssignment final { |
| 17 public: |
| 18 SlotAssignment() { } |
| 19 HTMLSlotElement* assignedSlotFor(const Node&) const; |
| 20 void resolveAssignment(const ShadowRoot&); |
| 21 |
| 22 DECLARE_TRACE(); |
| 23 |
| 24 private: |
| 25 void assign(Node&, HTMLSlotElement&); |
| 26 WillBeHeapHashMap<RawPtrWillBeMember<Node>, RawPtrWillBeMember<HTMLSlotEleme
nt>> m_assignment; |
| 27 }; |
| 28 |
| 29 } // namespace blink |
| 30 |
| 31 #endif // HTMLSlotAssignment_h |
OLD | NEW |