| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 bool isChildRemoval() const { return type == ElementRemoved || type == N
onElementRemoved; } | 200 bool isChildRemoval() const { return type == ElementRemoved || type == N
onElementRemoved; } |
| 201 bool isChildElementChange() const { return type == ElementInserted || ty
pe == ElementRemoved; } | 201 bool isChildElementChange() const { return type == ElementInserted || ty
pe == ElementRemoved; } |
| 202 | 202 |
| 203 ChildrenChangeType type; | 203 ChildrenChangeType type; |
| 204 RawPtrWillBeMember<Node> siblingBeforeChange; | 204 RawPtrWillBeMember<Node> siblingBeforeChange; |
| 205 RawPtrWillBeMember<Node> siblingAfterChange; | 205 RawPtrWillBeMember<Node> siblingAfterChange; |
| 206 ChildrenChangeSource byParser; | 206 ChildrenChangeSource byParser; |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 // Notifies the node that it's list of children have changed (either by addi
ng or removing child nodes), or a child | 209 // Notifies the node that it's list of children have changed (either by addi
ng or removing child nodes), or a child |
| 210 // node that is of the type CDATA_SECTION_NODE, TEXT_NODE or COMMENT_NODE ha
s changed its value. | 210 // node that is of the type TEXT_NODE or COMMENT_NODE has changed its value. |
| 211 virtual void childrenChanged(const ChildrenChange&); | 211 virtual void childrenChanged(const ChildrenChange&); |
| 212 | 212 |
| 213 void disconnectDescendantFrames(); | 213 void disconnectDescendantFrames(); |
| 214 | 214 |
| 215 virtual void trace(Visitor*) override; | 215 virtual void trace(Visitor*) override; |
| 216 | 216 |
| 217 protected: | 217 protected: |
| 218 ContainerNode(TreeScope*, ConstructionType = CreateContainer); | 218 ContainerNode(TreeScope*, ConstructionType = CreateContainer); |
| 219 | 219 |
| 220 void invalidateNodeListCachesInAncestors(const QualifiedName* attrName = nul
lptr, Element* attributeOwnerElement = nullptr); | 220 void invalidateNodeListCachesInAncestors(const QualifiedName* attrName = nul
lptr, Element* attributeOwnerElement = nullptr); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) | 365 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) |
| 366 { | 366 { |
| 367 ASSERT(!nodes.size()); | 367 ASSERT(!nodes.size()); |
| 368 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 368 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
| 369 nodes.append(child); | 369 nodes.append(child); |
| 370 } | 370 } |
| 371 | 371 |
| 372 } // namespace blink | 372 } // namespace blink |
| 373 | 373 |
| 374 #endif // ContainerNode_h | 374 #endif // ContainerNode_h |
| OLD | NEW |