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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
index a79d0b6e5c83ab862d4e0dbaf2fc29089b15cf7a..8f1db79a94782bb0cb273f41070d9477c1bd4550 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -542,7 +542,7 @@ AXID AXObjectCacheImpl::getAXID(AXObject* obj) {
objID = platformGenerateAXID();
- m_idsInUse.add(objID);
+ m_idsInUse.insert(objID);
obj->setAXObjectID(objID);
return objID;
@@ -712,7 +712,7 @@ void AXObjectCacheImpl::updateAriaOwns(
HashSet<String> newIds;
bool idsChanged = false;
for (const String& id : idVector) {
- newIds.add(id);
+ newIds.insert(id);
if (!currentIds.contains(id)) {
idsChanged = true;
HashSet<AXID>* owners = m_idToAriaOwnersMapping.get(id);
@@ -720,7 +720,7 @@ void AXObjectCacheImpl::updateAriaOwns(
owners = new HashSet<AXID>();
m_idToAriaOwnersMapping.set(id, WTF::wrapUnique(owners));
}
- owners->add(owner->axObjectID());
+ owners->insert(owner->axObjectID());
}
}
for (const String& id : currentIds) {

Powered by Google App Engine
This is Rietveld 408576698