Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h

Issue 2697923005: Remove unnecessary override of Node#cloneNode in ShadowRoot's WebIDL (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Text.cpp ('k') | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698