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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.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/css/StyleSheetContents.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
index 0005ba344dceb38817460e0d08ba71be30f2cc3e..f593ed33970ef1d29e40872329c38c2981de05de 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -579,8 +579,8 @@ void StyleSheetContents::registerClient(CSSStyleSheet* sheet) {
}
void StyleSheetContents::unregisterClient(CSSStyleSheet* sheet) {
- m_loadingClients.remove(sheet);
- m_completedClients.remove(sheet);
+ m_loadingClients.erase(sheet);
+ m_completedClients.erase(sheet);
if (!sheet->ownerDocument() || !m_loadingClients.isEmpty() ||
!m_completedClients.isEmpty())
@@ -591,7 +591,7 @@ void StyleSheetContents::unregisterClient(CSSStyleSheet* sheet) {
void StyleSheetContents::clientLoadCompleted(CSSStyleSheet* sheet) {
ASSERT(m_loadingClients.contains(sheet) || !sheet->ownerDocument());
- m_loadingClients.remove(sheet);
+ m_loadingClients.erase(sheet);
// In m_ownerNode->sheetLoaded, the CSSStyleSheet might be detached.
// (i.e. clearOwnerNode was invoked.)
// In this case, we don't need to add the stylesheet to completed clients.
@@ -602,7 +602,7 @@ void StyleSheetContents::clientLoadCompleted(CSSStyleSheet* sheet) {
void StyleSheetContents::clientLoadStarted(CSSStyleSheet* sheet) {
ASSERT(m_completedClients.contains(sheet));
- m_completedClients.remove(sheet);
+ m_completedClients.erase(sheet);
m_loadingClients.insert(sheet);
}

Powered by Google App Engine
This is Rietveld 408576698