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

Unified Diff: third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp

Issue 2654033007: Migrate WTF::HashSet::add() to ::insert() [part 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp
diff --git a/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp b/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp
index de06afc864f2e65e8748214b3f14bfd42e62e130..893c7905fa93b8dfdfade2ed3cd1569b89c3cd1c 100644
--- a/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp
+++ b/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp
@@ -44,7 +44,7 @@ ActiveSheetsChange compareActiveStyleSheets(
bool ruleSetsChangedInCommonPrefix = !changedRuleSets.isEmpty();
for (; index < newStyleSheetCount; index++) {
if (newStyleSheets[index].second)
- changedRuleSets.add(newStyleSheets[index].second);
+ changedRuleSets.insert(newStyleSheets[index].second);
}
if (ruleSetsChangedInCommonPrefix)
return ActiveSheetsChanged;
@@ -57,7 +57,7 @@ ActiveSheetsChange compareActiveStyleSheets(
// Sheets removed from the end.
for (; index < oldStyleSheetCount; index++) {
if (oldStyleSheets[index].second)
- changedRuleSets.add(oldStyleSheets[index].second);
+ changedRuleSets.insert(oldStyleSheets[index].second);
}
return changedRuleSets.isEmpty() ? NoActiveSheetsChanged
: ActiveSheetsChanged;
@@ -86,7 +86,7 @@ ActiveSheetsChange compareActiveStyleSheets(
(*mergedIterator).first != sheet1.first) {
// Sheet either removed or inserted.
if (sheet1.second)
- changedRuleSets.add(sheet1.second);
+ changedRuleSets.insert(sheet1.second);
continue;
}
@@ -99,9 +99,9 @@ ActiveSheetsChange compareActiveStyleSheets(
// Active rules for the given stylesheet changed.
// DOM, CSSOM, or media query changes.
if (sheet1.second)
- changedRuleSets.add(sheet1.second);
+ changedRuleSets.insert(sheet1.second);
if (sheet2.second)
- changedRuleSets.add(sheet2.second);
+ changedRuleSets.insert(sheet2.second);
}
return changedRuleSets.isEmpty() ? NoActiveSheetsChanged
: ActiveSheetsChanged;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698