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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.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/CustomElementReactionStack.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
index 8cc210616049a0183aa6932d905a13cd461ab35b..06c1633481521b2a147632fb41cb22d16461a40a 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
@@ -54,7 +54,7 @@ void CustomElementReactionStack::popInvokingReactions() {
void CustomElementReactionStack::invokeReactions(ElementQueue& queue) {
for (size_t i = 0; i < queue.size(); ++i) {
Element* element = queue[i];
- if (CustomElementReactionQueue* reactions = m_map.get(element)) {
+ if (CustomElementReactionQueue* reactions = m_map.at(element)) {
reactions->invokeReactions(element);
CHECK(reactions->isEmpty());
m_map.erase(element);
@@ -75,7 +75,7 @@ void CustomElementReactionStack::enqueue(Member<ElementQueue>& queue,
queue = new ElementQueue();
queue->push_back(element);
- CustomElementReactionQueue* reactions = m_map.get(element);
+ CustomElementReactionQueue* reactions = m_map.at(element);
if (!reactions) {
reactions = new CustomElementReactionQueue();
m_map.insert(TraceWrapperMember<Element>(this, element), reactions);
@@ -104,7 +104,7 @@ void CustomElementReactionStack::enqueueToBackupQueue(
}
void CustomElementReactionStack::clearQueue(Element* element) {
- if (CustomElementReactionQueue* reactions = m_map.get(element))
+ if (CustomElementReactionQueue* reactions = m_map.at(element))
reactions->clear();
}

Powered by Google App Engine
This is Rietveld 408576698