diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/dom/ChildNodeList.cpp | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/dom/ChildNodeList.cpp')
-rw-r--r-- | WebCore/dom/ChildNodeList.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/WebCore/dom/ChildNodeList.cpp b/WebCore/dom/ChildNodeList.cpp index 4befe40..3328c7c 100644 --- a/WebCore/dom/ChildNodeList.cpp +++ b/WebCore/dom/ChildNodeList.cpp @@ -2,7 +2,7 @@ * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2001 Dirk Mueller (mueller@kde.org) - * Copyright (C) 2004, 2007 Apple Inc. All rights reserved. + * Copyright (C) 2004, 2007, 2008 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -23,12 +23,12 @@ #include "config.h" #include "ChildNodeList.h" -#include "Node.h" +#include "Element.h" namespace WebCore { ChildNodeList::ChildNodeList(PassRefPtr<Node> rootNode, DynamicNodeList::Caches* info) - : DynamicNodeList(rootNode, info, false) + : DynamicNodeList(rootNode, info) { } @@ -98,15 +98,12 @@ Node* ChildNodeList::item(unsigned index) const return 0; } -bool ChildNodeList::nodeMatches(Node* testNode) const +bool ChildNodeList::nodeMatches(Element* testNode) const { + // Note: Due to the overrides of the length and item functions above, + // this function will be called only by DynamicNodeList::itemWithName, + // for an element that was located with getElementById. return testNode->parentNode() == m_rootNode; } -void ChildNodeList::rootNodeChildrenChanged() -{ - // For child node lists, the common cache is reset in Node::notifyLocalNodeListsChildrenChanged() - ASSERT(!m_ownsCaches); -} - } // namespace WebCore |