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

Side by Side Diff: Source/WebCore/dom/DynamicNodeList.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 | « Source/WebCore/dom/DynamicNodeList.h ('k') | Source/WebCore/dom/MicroDataItemList.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, 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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/dom/DynamicNodeList.h ('k') | Source/WebCore/dom/MicroDataItemList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698