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

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

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference 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/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 24472e9113c8d3df1c84301c02245d794aca0b2e..7959f89b3667131c98b3904b766722b17836abe1 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -558,7 +558,7 @@ void AXObjectCacheImpl::removeAXID(AXObject* object) {
ASSERT(!HashTraits<AXID>::isDeletedValue(objID));
ASSERT(m_idsInUse.contains(objID));
object->setAXObjectID(0);
- m_idsInUse.remove(objID);
+ m_idsInUse.erase(objID);
if (m_ariaOwnerToChildrenMapping.contains(objID)) {
Vector<AXID> childAXIDs = m_ariaOwnerToChildrenMapping.get(objID);
@@ -724,7 +724,7 @@ void AXObjectCacheImpl::updateAriaOwns(
idsChanged = true;
HashSet<AXID>* owners = m_idToAriaOwnersMapping.get(id);
if (owners) {
- owners->remove(owner->axObjectID());
+ owners->erase(owner->axObjectID());
if (owners->isEmpty())
m_idToAriaOwnersMapping.erase(id);
}

Powered by Google App Engine
This is Rietveld 408576698