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

Side by Side Diff: Source/core/dom/ContainerNodeAlgorithms.h

Issue 171773008: Rename childNodeCount() / childNode() methods for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Further renaming for consistency Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 while ((n = head) != 0) { 89 while ((n = head) != 0) {
90 ASSERT_WITH_SECURITY_IMPLICATION(n->m_deletionHasBegun); 90 ASSERT_WITH_SECURITY_IMPLICATION(n->m_deletionHasBegun);
91 91
92 next = n->nextSibling(); 92 next = n->nextSibling();
93 n->setNextSibling(0); 93 n->setNextSibling(0);
94 94
95 head = next; 95 head = next;
96 if (next == 0) 96 if (next == 0)
97 tail = 0; 97 tail = 0;
98 98
99 if (n->hasChildNodes()) 99 if (n->hasChildren())
100 Private::addChildNodesToDeletionQueue<GenericNode, GenericNodeContai ner>(head, tail, static_cast<GenericNodeContainer&>(*n)); 100 Private::addChildNodesToDeletionQueue<GenericNode, GenericNodeContai ner>(head, tail, static_cast<GenericNodeContainer&>(*n));
101 101
102 delete n; 102 delete n;
103 } 103 }
104 } 104 }
105 105
106 template<class GenericNode, class GenericNodeContainer> 106 template<class GenericNode, class GenericNodeContainer>
107 inline void appendChildToContainer(GenericNode& child, GenericNodeContainer& con tainer) 107 inline void appendChildToContainer(GenericNode& child, GenericNodeContainer& con tainer)
108 { 108 {
109 child.setParentOrShadowHostNode(&container); 109 child.setParentOrShadowHostNode(&container);
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 for (Node* child = m_root.firstChild(); child; child = child->nextSiblin g()) 331 for (Node* child = m_root.firstChild(); child; child = child->nextSiblin g())
332 collectFrameOwners(*child); 332 collectFrameOwners(*child);
333 } 333 }
334 334
335 disconnectCollectedFrameOwners(); 335 disconnectCollectedFrameOwners();
336 } 336 }
337 337
338 } // namespace WebCore 338 } // namespace WebCore
339 339
340 #endif // ContainerNodeAlgorithms_h 340 #endif // ContainerNodeAlgorithms_h
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698