| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 , m_lastChild(0) | 183 , m_lastChild(0) |
| 184 { | 184 { |
| 185 } | 185 } |
| 186 | 186 |
| 187 inline void ContainerNode::attachChildren(const AttachContext& context) | 187 inline void ContainerNode::attachChildren(const AttachContext& context) |
| 188 { | 188 { |
| 189 AttachContext childrenContext(context); | 189 AttachContext childrenContext(context); |
| 190 childrenContext.resolvedStyle = 0; | 190 childrenContext.resolvedStyle = 0; |
| 191 | 191 |
| 192 for (Node* child = firstChild(); child; child = child->nextSibling()) { | 192 for (Node* child = firstChild(); child; child = child->nextSibling()) { |
| 193 ASSERT(!child->attached() || childAttachedAllowedWhenAttachingChildren(t
his)); | 193 ASSERT(!child->confusingAndOftenMisusedAttached() || childAttachedAllowe
dWhenAttachingChildren(this)); |
| 194 if (!child->attached()) | 194 if (!child->confusingAndOftenMisusedAttached()) |
| 195 child->attach(childrenContext); | 195 child->attach(childrenContext); |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 | 198 |
| 199 inline void ContainerNode::detachChildren(const AttachContext& context) | 199 inline void ContainerNode::detachChildren(const AttachContext& context) |
| 200 { | 200 { |
| 201 AttachContext childrenContext(context); | 201 AttachContext childrenContext(context); |
| 202 childrenContext.resolvedStyle = 0; | 202 childrenContext.resolvedStyle = 0; |
| 203 | 203 |
| 204 for (Node* child = firstChild(); child; child = child->nextSibling()) | 204 for (Node* child = firstChild(); child; child = child->nextSibling()) |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 | 316 |
| 317 RefPtr<Node> m_currentNode; | 317 RefPtr<Node> m_currentNode; |
| 318 unsigned m_currentIndex; | 318 unsigned m_currentIndex; |
| 319 OwnPtr<Vector<RefPtr<Node> > > m_childNodes; // Lazily instantiated. | 319 OwnPtr<Vector<RefPtr<Node> > > m_childNodes; // Lazily instantiated. |
| 320 ChildNodesLazySnapshot* m_nextSnapshot; | 320 ChildNodesLazySnapshot* m_nextSnapshot; |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 } // namespace WebCore | 323 } // namespace WebCore |
| 324 | 324 |
| 325 #endif // ContainerNode_h | 325 #endif // ContainerNode_h |
| OLD | NEW |