| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const; | 112 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const; |
| 113 void setShadowInsertionPointOfYoungerShadowRoot(HTMLShadowElement*); | 113 void setShadowInsertionPointOfYoungerShadowRoot(HTMLShadowElement*); |
| 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 // For Internals, don't use this. | 118 // For Internals, don't use this. |
| 119 unsigned childShadowRootCount() const { return m_childShadowRootCount; } | 119 unsigned childShadowRootCount() const { return m_childShadowRootCount; } |
| 120 | 120 |
| 121 void recalcStyle(StyleRecalcChange); | 121 void recalcStyle(StyleRecalcChange); |
| 122 void rebuildLayoutTree(); | 122 void rebuildLayoutTree(Text*& nextTextSibling); |
| 123 | 123 |
| 124 void registerScopedHTMLStyleChild(); | 124 void registerScopedHTMLStyleChild(); |
| 125 void unregisterScopedHTMLStyleChild(); | 125 void unregisterScopedHTMLStyleChild(); |
| 126 | 126 |
| 127 SlotAssignment& slotAssignment() { | 127 SlotAssignment& slotAssignment() { |
| 128 DCHECK(m_slotAssignment); | 128 DCHECK(m_slotAssignment); |
| 129 return *m_slotAssignment; | 129 return *m_slotAssignment; |
| 130 } | 130 } |
| 131 | 131 |
| 132 HTMLSlotElement* assignedSlotFor(const Node&); | 132 HTMLSlotElement* assignedSlotFor(const Node&); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 ShadowRootRareDataV0& ensureShadowRootRareDataV0(); | 166 ShadowRootRareDataV0& ensureShadowRootRareDataV0(); |
| 167 SlotAssignment& ensureSlotAssignment(); | 167 SlotAssignment& ensureSlotAssignment(); |
| 168 | 168 |
| 169 void addChildShadowRoot() { ++m_childShadowRootCount; } | 169 void addChildShadowRoot() { ++m_childShadowRootCount; } |
| 170 void removeChildShadowRoot() { | 170 void removeChildShadowRoot() { |
| 171 DCHECK_GT(m_childShadowRootCount, 0u); | 171 DCHECK_GT(m_childShadowRootCount, 0u); |
| 172 --m_childShadowRootCount; | 172 --m_childShadowRootCount; |
| 173 } | 173 } |
| 174 void invalidateDescendantInsertionPoints(); | 174 void invalidateDescendantInsertionPoints(); |
| 175 void skipRebuildLayoutTree(Text*& nextTextSibling) const; |
| 175 | 176 |
| 176 Member<ShadowRootRareDataV0> m_shadowRootRareDataV0; | 177 Member<ShadowRootRareDataV0> m_shadowRootRareDataV0; |
| 177 Member<StyleSheetList> m_styleSheetList; | 178 Member<StyleSheetList> m_styleSheetList; |
| 178 Member<SlotAssignment> m_slotAssignment; | 179 Member<SlotAssignment> m_slotAssignment; |
| 179 unsigned m_childShadowRootCount : 13; | 180 unsigned m_childShadowRootCount : 13; |
| 180 unsigned m_type : 2; | 181 unsigned m_type : 2; |
| 181 unsigned m_registeredWithParentShadowRoot : 1; | 182 unsigned m_registeredWithParentShadowRoot : 1; |
| 182 unsigned m_descendantInsertionPointsIsValid : 1; | 183 unsigned m_descendantInsertionPointsIsValid : 1; |
| 183 unsigned m_delegatesFocus : 1; | 184 unsigned m_delegatesFocus : 1; |
| 184 }; | 185 }; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 200 treeScope, | 201 treeScope, |
| 201 treeScope->rootNode().isShadowRoot(), | 202 treeScope->rootNode().isShadowRoot(), |
| 202 treeScope.rootNode().isShadowRoot()); | 203 treeScope.rootNode().isShadowRoot()); |
| 203 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 204 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
| 204 | 205 |
| 205 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&); | 206 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&); |
| 206 | 207 |
| 207 } // namespace blink | 208 } // namespace blink |
| 208 | 209 |
| 209 #endif // ShadowRoot_h | 210 #endif // ShadowRoot_h |
| OLD | NEW |