| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void didAddInsertionPoint(InsertionPoint*); | 114 void didAddInsertionPoint(InsertionPoint*); |
| 115 void didRemoveInsertionPoint(InsertionPoint*); | 115 void didRemoveInsertionPoint(InsertionPoint*); |
| 116 const HeapVector<Member<InsertionPoint>>& descendantInsertionPoints(); | 116 const HeapVector<Member<InsertionPoint>>& descendantInsertionPoints(); |
| 117 | 117 |
| 118 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } | 118 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } |
| 119 | 119 |
| 120 void didAddSlot(); | 120 void didAddSlot(); |
| 121 void didRemoveSlot(); | 121 void didRemoveSlot(); |
| 122 const HeapVector<Member<HTMLSlotElement>>& descendantSlots(); | 122 const HeapVector<Member<HTMLSlotElement>>& descendantSlots(); |
| 123 | 123 |
| 124 void assignV1(); |
| 124 void distributeV1(); | 125 void distributeV1(); |
| 125 | 126 |
| 126 HTMLSlotElement* assignedSlotFor(const Node& node) const | 127 HTMLSlotElement* assignedSlotFor(const Node& node) const |
| 127 { | 128 { |
| 128 DCHECK(m_slotAssignment); | 129 DCHECK(m_slotAssignment); |
| 129 return m_slotAssignment->assignedSlotFor(node); | 130 return m_slotAssignment->assignedSlotFor(node); |
| 130 } | 131 } |
| 131 | 132 |
| 132 // Make protected methods from base class public here. | 133 // Make protected methods from base class public here. |
| 133 using TreeScope::setDocument; | 134 using TreeScope::setDocument; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 return nullptr; | 197 return nullptr; |
| 197 } | 198 } |
| 198 | 199 |
| 199 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); | 200 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); |
| 200 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); | 201 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad
owRoot(), treeScope.rootNode().isShadowRoot()); |
| 201 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 202 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
| 202 | 203 |
| 203 } // namespace blink | 204 } // namespace blink |
| 204 | 205 |
| 205 #endif // ShadowRoot_h | 206 #endif // ShadowRoot_h |
| OLD | NEW |