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

Unified Diff: third_party/WebKit/Source/core/dom/Document.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/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index dc5974ba26fa9533ccc3859d07c7794ee1d1ad18..c6cf112fe9e02f02ce89202257f4fb7759122d6b 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2342,7 +2342,7 @@ void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element) {
}
void Document::unscheduleUseShadowTreeUpdate(SVGUseElement& element) {
- m_useElementsNeedingUpdate.remove(&element);
+ m_useElementsNeedingUpdate.erase(&element);
}
void Document::updateUseShadowTreesIfNeeded() {
@@ -4175,10 +4175,10 @@ void Document::registerNodeList(const LiveNodeListBase* list) {
void Document::unregisterNodeList(const LiveNodeListBase* list) {
DCHECK(m_nodeLists[list->invalidationType()].contains(list));
- m_nodeLists[list->invalidationType()].remove(list);
+ m_nodeLists[list->invalidationType()].erase(list);
if (list->isRootedAtTreeScope()) {
DCHECK(m_listsInvalidatedAtDocument.contains(list));
- m_listsInvalidatedAtDocument.remove(list);
+ m_listsInvalidatedAtDocument.erase(list);
}
}
@@ -4190,7 +4190,7 @@ void Document::registerNodeListWithIdNameCache(const LiveNodeListBase* list) {
void Document::unregisterNodeListWithIdNameCache(const LiveNodeListBase* list) {
DCHECK(m_nodeLists[InvalidateOnIdNameAttrChange].contains(list));
- m_nodeLists[InvalidateOnIdNameAttrChange].remove(list);
+ m_nodeLists[InvalidateOnIdNameAttrChange].erase(list);
}
void Document::attachNodeIterator(NodeIterator* ni) {
@@ -4200,7 +4200,7 @@ void Document::attachNodeIterator(NodeIterator* ni) {
void Document::detachNodeIterator(NodeIterator* ni) {
// The node iterator can be detached without having been attached if its root
// node didn't have a document when the iterator was created, but has it now.
- m_nodeIterators.remove(ni);
+ m_nodeIterators.erase(ni);
}
void Document::moveNodeIteratorsToNewDocument(Node& node,
@@ -5672,7 +5672,7 @@ void Document::attachRange(Range* range) {
void Document::detachRange(Range* range) {
// We don't ASSERT m_ranges.contains(range) to allow us to call this
// unconditionally to fix: https://bugs.webkit.org/show_bug.cgi?id=26044
- m_ranges.remove(range);
+ m_ranges.erase(range);
}
void Document::initDNSPrefetch() {

Powered by Google App Engine
This is Rietveld 408576698