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

Unified Diff: third_party/WebKit/Source/core/css/invalidation/InvalidationSet.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/invalidation/InvalidationSet.cpp
diff --git a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp
index e5dcb21aaee2ebe8406361590e35b425c44965c5..c9831e7b8655e138cef09a260b1a16f539d6d6a7 100644
--- a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp
+++ b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp
@@ -205,28 +205,28 @@ void InvalidationSet::addClass(const AtomicString& className) {
if (wholeSubtreeInvalid())
return;
DCHECK(!className.isEmpty());
- ensureClassSet().add(className);
+ ensureClassSet().insert(className);
}
void InvalidationSet::addId(const AtomicString& id) {
if (wholeSubtreeInvalid())
return;
DCHECK(!id.isEmpty());
- ensureIdSet().add(id);
+ ensureIdSet().insert(id);
}
void InvalidationSet::addTagName(const AtomicString& tagName) {
if (wholeSubtreeInvalid())
return;
DCHECK(!tagName.isEmpty());
- ensureTagNameSet().add(tagName);
+ ensureTagNameSet().insert(tagName);
}
void InvalidationSet::addAttribute(const AtomicString& attribute) {
if (wholeSubtreeInvalid())
return;
DCHECK(!attribute.isEmpty());
- ensureAttributeSet().add(attribute);
+ ensureAttributeSet().insert(attribute);
}
void InvalidationSet::setWholeSubtreeInvalid() {

Powered by Google App Engine
This is Rietveld 408576698