| 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, 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2006, 2007, 2008, 2010 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 "DynamicNodeList.h" | 24 #include "DynamicNodeList.h" |
| 25 | 25 |
| 26 #include "Document.h" | 26 #include "Document.h" |
| 27 #include "Element.h" | 27 #include "Element.h" |
| 28 | 28 |
| 29 namespace WebCore { | 29 namespace WebCore { |
| 30 | 30 |
| 31 DynamicSubtreeNodeList::DynamicSubtreeNodeList(PassRefPtr<Node> node, RootType r
ootType) | |
| 32 : DynamicNodeList(node, rootType) | |
| 33 { | |
| 34 } | |
| 35 | |
| 36 DynamicSubtreeNodeList::~DynamicSubtreeNodeList() | 31 DynamicSubtreeNodeList::~DynamicSubtreeNodeList() |
| 37 { | 32 { |
| 38 } | 33 } |
| 39 | 34 |
| 40 unsigned DynamicSubtreeNodeList::length() const | 35 unsigned DynamicSubtreeNodeList::length() const |
| 41 { | 36 { |
| 42 if (m_caches.isLengthCacheValid) | 37 if (m_caches.isLengthCacheValid) |
| 43 return m_caches.cachedLength; | 38 return m_caches.cachedLength; |
| 44 | 39 |
| 45 unsigned length = 0; | 40 unsigned length = 0; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 Node* node = item(i); | 123 Node* node = item(i); |
| 129 // FIXME: This should probably be using getIdAttribute instead of idForS
tyleResolution. | 124 // FIXME: This should probably be using getIdAttribute instead of idForS
tyleResolution. |
| 130 if (node->hasID() && static_cast<Element*>(node)->idForStyleResolution()
== elementId) | 125 if (node->hasID() && static_cast<Element*>(node)->idForStyleResolution()
== elementId) |
| 131 return node; | 126 return node; |
| 132 } | 127 } |
| 133 | 128 |
| 134 return 0; | 129 return 0; |
| 135 } | 130 } |
| 136 | 131 |
| 137 } // namespace WebCore | 132 } // namespace WebCore |
| OLD | NEW |