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

Unified Diff: Source/core/dom/StaticNodeList.cpp

Issue 144313014: Remove NodeList's anonymous named getter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Another clang build fix Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/StaticNodeList.h ('k') | Source/web/WebNodeList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StaticNodeList.cpp
diff --git a/Source/core/dom/StaticNodeList.cpp b/Source/core/dom/StaticNodeList.cpp
index 10f4b281435a3e49384e2b664f5b2cf438cb5587..d9bf28e1f5b79c2b34f86d8b8b2268616c95d605 100644
--- a/Source/core/dom/StaticNodeList.cpp
+++ b/Source/core/dom/StaticNodeList.cpp
@@ -45,16 +45,4 @@ Node* StaticNodeList::item(unsigned index) const
return 0;
}
-Node* StaticNodeList::namedItem(const AtomicString& elementId) const
-{
- size_t length = m_nodes.size();
- for (size_t i = 0; i < length; ++i) {
- Node* node = m_nodes[i].get();
- if (node->isElementNode() && toElement(node)->getIdAttribute() == elementId)
- return node;
- }
-
- return 0;
-}
-
} // namespace WebCore
« no previous file with comments | « Source/core/dom/StaticNodeList.h ('k') | Source/web/WebNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698