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, 2013 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All r
ights 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 }; | 165 }; |
166 | 166 |
167 // Notifies the node that it's list of children have changed (either by addi
ng or removing child nodes), or a child | 167 // Notifies the node that it's list of children have changed (either by addi
ng or removing child nodes), or a child |
168 // node that is of the type CDATA_SECTION_NODE, TEXT_NODE or COMMENT_NODE ha
s changed its value. | 168 // node that is of the type CDATA_SECTION_NODE, TEXT_NODE or COMMENT_NODE ha
s changed its value. |
169 virtual void childrenChanged(const ChildrenChange&); | 169 virtual void childrenChanged(const ChildrenChange&); |
170 | 170 |
171 void disconnectDescendantFrames(); | 171 void disconnectDescendantFrames(); |
172 | 172 |
173 virtual void trace(Visitor*) OVERRIDE; | 173 virtual void trace(Visitor*) OVERRIDE; |
174 | 174 |
175 void notifyNodeInserted(Node&); | 175 void notifyNodeInserted(Node&, ChildrenChangeSource = ChildrenChangeSourceAP
I); |
176 void notifyNodeRemoved(Node&); | 176 void notifyNodeRemoved(Node&); |
177 | 177 |
178 protected: | 178 protected: |
179 ContainerNode(TreeScope*, ConstructionType = CreateContainer); | 179 ContainerNode(TreeScope*, ConstructionType = CreateContainer); |
180 | 180 |
181 #if !ENABLE(OILPAN) | 181 #if !ENABLE(OILPAN) |
182 void removeDetachedChildren(); | 182 void removeDetachedChildren(); |
183 #endif | 183 #endif |
184 | 184 |
185 void setFirstChild(Node* child) { m_firstChild = child; } | 185 void setFirstChild(Node* child) { m_firstChild = child; } |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 inline void getChildNodes(Node& node, NodeVector& nodes) | 319 inline void getChildNodes(Node& node, NodeVector& nodes) |
320 { | 320 { |
321 ASSERT(!nodes.size()); | 321 ASSERT(!nodes.size()); |
322 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 322 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
323 nodes.append(child); | 323 nodes.append(child); |
324 } | 324 } |
325 | 325 |
326 } // namespace blink | 326 } // namespace blink |
327 | 327 |
328 #endif // ContainerNode_h | 328 #endif // ContainerNode_h |
OLD | NEW |