Chromium Code Reviews| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 | 182 |
| 183 // ------------------------------------------------------------------------- ---- | 183 // ------------------------------------------------------------------------- ---- |
| 184 // Notification of document structure changes (see core/dom/Node.h for more notification methods) | 184 // Notification of document structure changes (see core/dom/Node.h for more notification methods) |
| 185 | 185 |
| 186 // Notifies the node that it's list of children have changed (either by addi ng or removing child nodes), or a child | 186 // Notifies the node that it's list of children have changed (either by addi ng or removing child nodes), or a child |
| 187 // node that is of the type CDATA_SECTION_NODE, TEXT_NODE or COMMENT_NODE ha s changed its value. | 187 // node that is of the type CDATA_SECTION_NODE, TEXT_NODE or COMMENT_NODE ha s changed its value. |
| 188 virtual void childrenChanged(bool createdByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); | 188 virtual void childrenChanged(bool createdByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); |
| 189 | 189 |
| 190 void disconnectDescendantFrames(); | 190 void disconnectDescendantFrames(); |
| 191 | 191 |
| 192 virtual void trace(Visitor* visitor) OVERRIDE { Node::trace(visitor); } | |
|
Mads Ager (chromium)
2014/04/29 09:05:14
If the only thing this trace method does is call t
| |
| 193 | |
| 192 protected: | 194 protected: |
| 193 ContainerNode(TreeScope*, ConstructionType = CreateContainer); | 195 ContainerNode(TreeScope*, ConstructionType = CreateContainer); |
| 194 | 196 |
| 195 template<class GenericNode, class GenericNodeContainer> | 197 template<class GenericNode, class GenericNodeContainer> |
| 196 friend void appendChildToContainer(GenericNode& child, GenericNodeContainer& ); | 198 friend void appendChildToContainer(GenericNode& child, GenericNodeContainer& ); |
| 197 | 199 |
| 198 template<class GenericNode, class GenericNodeContainer> | 200 template<class GenericNode, class GenericNodeContainer> |
| 199 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi cNode*& tail, GenericNodeContainer&); | 201 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi cNode*& tail, GenericNodeContainer&); |
| 200 | 202 |
| 201 void removeDetachedChildren(); | 203 void removeDetachedChildren(); |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 391 | 393 |
| 392 RefPtr<Node> m_currentNode; | 394 RefPtr<Node> m_currentNode; |
| 393 unsigned m_currentIndex; | 395 unsigned m_currentIndex; |
| 394 OwnPtr<Vector<RefPtr<Node> > > m_childNodes; // Lazily instantiated. | 396 OwnPtr<Vector<RefPtr<Node> > > m_childNodes; // Lazily instantiated. |
| 395 ChildNodesLazySnapshot* m_nextSnapshot; | 397 ChildNodesLazySnapshot* m_nextSnapshot; |
| 396 }; | 398 }; |
| 397 | 399 |
| 398 } // namespace WebCore | 400 } // namespace WebCore |
| 399 | 401 |
| 400 #endif // ContainerNode_h | 402 #endif // ContainerNode_h |
| OLD | NEW |