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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCollection.h

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 10 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
Index: third_party/WebKit/Source/core/html/HTMLCollection.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCollection.h b/third_party/WebKit/Source/core/html/HTMLCollection.h
index dd02557cd429bebc397d7aeaa04000dba395cb45..474332fd1720964f0572f7ca3fc655889e64c870 100644
--- a/third_party/WebKit/Source/core/html/HTMLCollection.h
+++ b/third_party/WebKit/Source/core/html/HTMLCollection.h
@@ -123,11 +123,11 @@ class CORE_EXPORT HTMLCollection
static NamedItemCache* create() { return new NamedItemCache; }
HeapVector<Member<Element>>* getElementsById(const AtomicString& id) const {
- return m_idCache.get(id.impl());
+ return m_idCache.at(id.impl());
}
HeapVector<Member<Element>>* getElementsByName(
const AtomicString& name) const {
- return m_nameCache.get(name.impl());
+ return m_nameCache.at(name.impl());
}
void addElementWithId(const AtomicString& id, Element* element) {
addElementToMap(m_idCache, id, element);
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp ('k') | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698