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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs 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/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index a1bc5bfd6e52eb49d19f2d1cfc381327cf03dc69..f2840ccc5a70b95b13e2569525b794371f80082e 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -426,7 +426,7 @@ void PointerEventFactory::clear() {
// No need to add it to m_pointerIncomingIdMapping as it is not going to be
// used with the existing APIs
m_primaryId[toInt(WebPointerProperties::PointerType::Mouse)] = s_mouseId;
- m_pointerIdMapping.add(
+ m_pointerIdMapping.insert(
s_mouseId,
PointerAttributes(IncomingId(WebPointerProperties::PointerType::Mouse, 0),
0));
@@ -453,8 +453,8 @@ int PointerEventFactory::addIdAndActiveButtons(const IncomingId p,
if (!m_idCount[typeInt])
m_primaryId[typeInt] = mappedId;
m_idCount[typeInt]++;
- m_pointerIncomingIdMapping.add(p, mappedId);
- m_pointerIdMapping.add(mappedId, PointerAttributes(p, isActiveButtons));
+ m_pointerIncomingIdMapping.insert(p, mappedId);
+ m_pointerIdMapping.insert(mappedId, PointerAttributes(p, isActiveButtons));
return mappedId;
}
« no previous file with comments | « third_party/WebKit/Source/core/events/EventPath.cpp ('k') | third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698