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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.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/inspector/InspectorCSSAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
index 6570bcf3c0080318ac4b9ae023d038ed1d73773a..7f7d6dbd4162c3af1b11ef564389278ce2605eb8 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
@@ -796,7 +796,7 @@ void InspectorCSSAgent::setActiveStyleSheets(
HeapVector<Member<CSSStyleSheet>> addedSheets;
for (CSSStyleSheet* cssStyleSheet : allSheetsVector) {
if (removedSheets.contains(cssStyleSheet)) {
- removedSheets.remove(cssStyleSheet);
+ removedSheets.erase(cssStyleSheet);
} else {
addedSheets.push_back(cssStyleSheet);
}
@@ -807,7 +807,7 @@ void InspectorCSSAgent::setActiveStyleSheets(
m_cssStyleSheetToInspectorStyleSheet.get(cssStyleSheet);
ASSERT(inspectorStyleSheet);
- documentCSSStyleSheets->remove(cssStyleSheet);
+ documentCSSStyleSheets->erase(cssStyleSheet);
if (m_idToInspectorStyleSheet.contains(inspectorStyleSheet->id())) {
String id = unbindStyleSheet(inspectorStyleSheet);
if (frontend())
@@ -829,7 +829,7 @@ void InspectorCSSAgent::setActiveStyleSheets(
}
void InspectorCSSAgent::documentDetached(Document* document) {
- m_invalidatedDocuments.remove(document);
+ m_invalidatedDocuments.erase(document);
setActiveStyleSheets(document, HeapVector<Member<CSSStyleSheet>>());
}

Powered by Google App Engine
This is Rietveld 408576698