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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp

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/dom/custom/CustomElementRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
index dc3606967ffa3c791176b1adee1ae1d8fca860aa..1e87c645bf041c94a59c19b27e669396c458161f 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
@@ -252,7 +252,7 @@ bool CustomElementRegistry::v0NameIsDefined(const AtomicString& name) {
CustomElementDefinition* CustomElementRegistry::definitionForName(
const AtomicString& name) const {
- return m_definitions.get(name);
+ return m_definitions.at(name);
}
void CustomElementRegistry::addCandidate(Element* candidate) {
@@ -280,7 +280,7 @@ ScriptPromise CustomElementRegistry::whenDefined(
CustomElementDefinition* definition = definitionForName(name);
if (definition)
return ScriptPromise::castUndefined(scriptState);
- ScriptPromiseResolver* resolver = m_whenDefinedPromiseMap.get(name);
+ ScriptPromiseResolver* resolver = m_whenDefinedPromiseMap.at(name);
if (resolver)
return resolver->promise();
ScriptPromiseResolver* newResolver =

Powered by Google App Engine
This is Rietveld 408576698