| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2015 Google Inc. All rights reserved. | 2 * Copyright (C) 2015 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 void ClearDistribution(); | 91 void ClearDistribution(); |
| 92 void SaveAndClearDistribution(); | 92 void SaveAndClearDistribution(); |
| 93 | 93 |
| 94 bool SupportsDistribution() const { return IsInV1ShadowTree(); } | 94 bool SupportsDistribution() const { return IsInV1ShadowTree(); } |
| 95 void DidSlotChange(SlotChangeType); | 95 void DidSlotChange(SlotChangeType); |
| 96 void DispatchSlotChangeEvent(); | 96 void DispatchSlotChangeEvent(); |
| 97 void ClearSlotChangeEventEnqueued() { slotchange_event_enqueued_ = false; } | 97 void ClearSlotChangeEventEnqueued() { slotchange_event_enqueued_ = false; } |
| 98 | 98 |
| 99 static AtomicString NormalizeSlotName(const AtomicString&); | 99 static AtomicString NormalizeSlotName(const AtomicString&); |
| 100 static HTMLSlotElement* FindFallbackSlotElementFor(const Element&); |
| 100 | 101 |
| 101 DECLARE_VIRTUAL_TRACE(); | 102 DECLARE_VIRTUAL_TRACE(); |
| 102 | 103 |
| 103 private: | 104 private: |
| 104 HTMLSlotElement(Document&); | 105 HTMLSlotElement(Document&); |
| 105 | 106 |
| 106 InsertionNotificationRequest InsertedInto(ContainerNode*) final; | 107 InsertionNotificationRequest InsertedInto(ContainerNode*) final; |
| 107 void RemovedFrom(ContainerNode*) final; | 108 void RemovedFrom(ContainerNode*) final; |
| 108 void WillRecalcStyle(StyleRecalcChange) final; | 109 void WillRecalcStyle(StyleRecalcChange) final; |
| 109 | 110 |
| 110 void EnqueueSlotChangeEvent(); | 111 void EnqueueSlotChangeEvent(); |
| 111 | 112 |
| 112 HeapVector<Member<Node>> assigned_nodes_; | 113 HeapVector<Member<Node>> assigned_nodes_; |
| 113 HeapVector<Member<Node>> distributed_nodes_; | 114 HeapVector<Member<Node>> distributed_nodes_; |
| 114 HeapVector<Member<Node>> old_distributed_nodes_; | 115 HeapVector<Member<Node>> old_distributed_nodes_; |
| 115 HeapHashMap<Member<const Node>, size_t> distributed_indices_; | 116 HeapHashMap<Member<const Node>, size_t> distributed_indices_; |
| 116 bool slotchange_event_enqueued_ = false; | 117 bool slotchange_event_enqueued_ = false; |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace blink | 120 } // namespace blink |
| 120 | 121 |
| 121 #endif // HTMLSlotElement_h | 122 #endif // HTMLSlotElement_h |
| OLD | NEW |