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

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

Issue 10871021: Merge 124282 - REGRESSION(r120979): Node list returned by getElementsByTagNameNS isn't invalidated … (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 4 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 | « LayoutTests/fast/dom/NodeList/nodelist-namespace-invalidation-expected.txt ('k') | no next file » | 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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 if (!attrName || it->second->shouldInvalidateOnAttributeChange()) 2251 if (!attrName || it->second->shouldInvalidateOnAttributeChange())
2252 it->second->invalidateCache(); 2252 it->second->invalidateCache();
2253 } 2253 }
2254 2254
2255 NodeListNameCacheMap::const_iterator nameCacheEnd = m_nameCaches.end(); 2255 NodeListNameCacheMap::const_iterator nameCacheEnd = m_nameCaches.end();
2256 for (NodeListNameCacheMap::const_iterator it = m_nameCaches.begin(); it != n ameCacheEnd; ++it) { 2256 for (NodeListNameCacheMap::const_iterator it = m_nameCaches.begin(); it != n ameCacheEnd; ++it) {
2257 if (!attrName || it->second->shouldInvalidateOnAttributeChange()) 2257 if (!attrName || it->second->shouldInvalidateOnAttributeChange())
2258 it->second->invalidateCache(); 2258 it->second->invalidateCache();
2259 } 2259 }
2260 2260
2261 if (!attrName) 2261 if (attrName)
2262 return; 2262 return;
2263 2263
2264 TagNodeListCacheNS::iterator tagCacheEnd = m_tagNodeListCacheNS.end(); 2264 TagNodeListCacheNS::iterator tagCacheEnd = m_tagNodeListCacheNS.end();
2265 for (TagNodeListCacheNS::iterator it = m_tagNodeListCacheNS.begin(); it != t agCacheEnd; ++it) 2265 for (TagNodeListCacheNS::iterator it = m_tagNodeListCacheNS.begin(); it != t agCacheEnd; ++it)
2266 it->second->invalidateCache(); 2266 it->second->invalidateCache();
2267 } 2267 }
2268 2268
2269 void Node::getSubresourceURLs(ListHashSet<KURL>& urls) const 2269 void Node::getSubresourceURLs(ListHashSet<KURL>& urls) const
2270 { 2270 {
2271 addSubresourceAttributeURLs(urls); 2271 addSubresourceAttributeURLs(urls);
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 node->showTreeForThis(); 2801 node->showTreeForThis();
2802 } 2802 }
2803 2803
2804 void showNodePath(const WebCore::Node* node) 2804 void showNodePath(const WebCore::Node* node)
2805 { 2805 {
2806 if (node) 2806 if (node)
2807 node->showNodePathForThis(); 2807 node->showNodePathForThis();
2808 } 2808 }
2809 2809
2810 #endif 2810 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/NodeList/nodelist-namespace-invalidation-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698