Chromium Code Reviews| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 166 SlotAssignment& ensureSlotAssignment(); | 166 SlotAssignment& ensureSlotAssignment(); |
| 167 | 167 |
| 168 void addChildShadowRoot() { ++m_childShadowRootCount; } | 168 void addChildShadowRoot() { ++m_childShadowRootCount; } |
| 169 void removeChildShadowRoot() { | 169 void removeChildShadowRoot() { |
| 170 DCHECK_GT(m_childShadowRootCount, 0u); | 170 DCHECK_GT(m_childShadowRootCount, 0u); |
| 171 --m_childShadowRootCount; | 171 --m_childShadowRootCount; |
| 172 } | 172 } |
| 173 void invalidateDescendantInsertionPoints(); | 173 void invalidateDescendantInsertionPoints(); |
| 174 | 174 |
| 175 // ShadowRoots should never be cloned. | 175 // ShadowRoots should never be cloned. |
| 176 Node* cloneNode(bool) override { return nullptr; } | 176 // Node* cloneNode(bool, ExceptionState&) override { return nullptr; } |
|
foolip
2017/02/16 13:56:12
Can you remove this and instead add override to th
hayato
2017/02/17 05:09:14
Done
| |
| 177 | 177 |
| 178 Member<ShadowRootRareDataV0> m_shadowRootRareDataV0; | 178 Member<ShadowRootRareDataV0> m_shadowRootRareDataV0; |
| 179 Member<StyleSheetList> m_styleSheetList; | 179 Member<StyleSheetList> m_styleSheetList; |
| 180 Member<SlotAssignment> m_slotAssignment; | 180 Member<SlotAssignment> m_slotAssignment; |
| 181 unsigned m_childShadowRootCount : 13; | 181 unsigned m_childShadowRootCount : 13; |
| 182 unsigned m_type : 2; | 182 unsigned m_type : 2; |
| 183 unsigned m_registeredWithParentShadowRoot : 1; | 183 unsigned m_registeredWithParentShadowRoot : 1; |
| 184 unsigned m_descendantInsertionPointsIsValid : 1; | 184 unsigned m_descendantInsertionPointsIsValid : 1; |
| 185 unsigned m_delegatesFocus : 1; | 185 unsigned m_delegatesFocus : 1; |
| 186 }; | 186 }; |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 202 treeScope, | 202 treeScope, |
| 203 treeScope->rootNode().isShadowRoot(), | 203 treeScope->rootNode().isShadowRoot(), |
| 204 treeScope.rootNode().isShadowRoot()); | 204 treeScope.rootNode().isShadowRoot()); |
| 205 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); | 205 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); |
| 206 | 206 |
| 207 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&); | 207 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&); |
| 208 | 208 |
| 209 } // namespace blink | 209 } // namespace blink |
| 210 | 210 |
| 211 #endif // ShadowRoot_h | 211 #endif // ShadowRoot_h |
| OLD | NEW |