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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.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/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 be7b73474a0a11793868bba6cc906b7031acd7ac..85d49cc86b065a12fb381fb28318068dd82d4f2c 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -565,7 +565,7 @@ void StyleSheetContents::registerClient(CSSStyleSheet* sheet) {
if (sheet->ownerDocument() != document)
m_hasSingleOwnerDocument = false;
}
- m_loadingClients.add(sheet);
+ m_loadingClients.insert(sheet);
}
void StyleSheetContents::unregisterClient(CSSStyleSheet* sheet) {
@@ -587,13 +587,13 @@ void StyleSheetContents::clientLoadCompleted(CSSStyleSheet* sheet) {
// In this case, we don't need to add the stylesheet to completed clients.
if (!sheet->ownerDocument())
return;
- m_completedClients.add(sheet);
+ m_completedClients.insert(sheet);
}
void StyleSheetContents::clientLoadStarted(CSSStyleSheet* sheet) {
ASSERT(m_completedClients.contains(sheet));
m_completedClients.remove(sheet);
- m_loadingClients.add(sheet);
+ m_loadingClients.insert(sheet);
}
void StyleSheetContents::setReferencedFromResource(

Powered by Google App Engine
This is Rietveld 408576698