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, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2007, 2008 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 10 matching lines...) Expand all Loading... |
21 */ | 21 */ |
22 | 22 |
23 #include "config.h" | 23 #include "config.h" |
24 #include "ChildNodeList.h" | 24 #include "ChildNodeList.h" |
25 | 25 |
26 #include "Element.h" | 26 #include "Element.h" |
27 | 27 |
28 namespace WebCore { | 28 namespace WebCore { |
29 | 29 |
30 ChildNodeList::ChildNodeList(PassRefPtr<Node> node) | 30 ChildNodeList::ChildNodeList(PassRefPtr<Node> node) |
31 : DynamicNodeList(node) | 31 : DynamicNodeList(node, RootedAtNode, DoNotInvalidateOnAttributeChange) |
32 { | 32 { |
33 } | 33 } |
34 | 34 |
35 ChildNodeList::~ChildNodeList() | 35 ChildNodeList::~ChildNodeList() |
36 { | 36 { |
37 node()->removeCachedChildNodeList(); | 37 node()->removeCachedChildNodeList(); |
38 } | 38 } |
39 | 39 |
40 unsigned ChildNodeList::length() const | 40 unsigned ChildNodeList::length() const |
41 { | 41 { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 bool ChildNodeList::nodeMatches(Element* testNode) const | 106 bool ChildNodeList::nodeMatches(Element* testNode) const |
107 { | 107 { |
108 // Note: Due to the overrides of the length and item functions above, | 108 // Note: Due to the overrides of the length and item functions above, |
109 // this function will be called only by DynamicNodeList::itemWithName, | 109 // this function will be called only by DynamicNodeList::itemWithName, |
110 // for an element that was located with getElementById. | 110 // for an element that was located with getElementById. |
111 return testNode->parentNode() == node(); | 111 return testNode->parentNode() == node(); |
112 } | 112 } |
113 | 113 |
114 } // namespace WebCore | 114 } // namespace WebCore |
OLD | NEW |