OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |