Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(946)

Side by Side Diff: Source/WebCore/dom/ChildNodeList.cpp

Issue 10695128: Merge 120979 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/dom/ClassNodeList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/dom/ClassNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698