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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.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/inspector/InspectorCSSAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
index fa2948f303090f5aac181974465ddf10d1f30191..c89360927437722055c9c3ebd35bc9e67a0f0e1b 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
@@ -130,7 +130,7 @@ HeapVector<Member<CSSStyleRule>> filterDuplicateRules(CSSRuleList* ruleList) {
if (!rule || rule->type() != CSSRule::kStyleRule ||
uniqRulesSet.contains(rule))
continue;
- uniqRulesSet.add(rule);
+ uniqRulesSet.insert(rule);
uniqRules.push_back(toCSSStyleRule(rule));
}
uniqRules.reverse();
@@ -775,7 +775,7 @@ void InspectorCSSAgent::fontsUpdated() {
}
void InspectorCSSAgent::activeStyleSheetsUpdated(Document* document) {
- m_invalidatedDocuments.add(document);
+ m_invalidatedDocuments.insert(document);
}
void InspectorCSSAgent::updateActiveStyleSheets(
@@ -829,7 +829,7 @@ void InspectorCSSAgent::setActiveStyleSheets(
!m_cssStyleSheetToInspectorStyleSheet.contains(cssStyleSheet);
if (isNew) {
InspectorStyleSheet* newStyleSheet = bindStyleSheet(cssStyleSheet);
- documentCSSStyleSheets->add(cssStyleSheet);
+ documentCSSStyleSheets->insert(cssStyleSheet);
if (frontend())
frontend()->styleSheetAdded(
newStyleSheet->buildObjectForStyleSheetInfo());
@@ -2057,7 +2057,7 @@ void InspectorCSSAgent::resetPseudoStates() {
for (auto& state : m_nodeIdToForcedPseudoState) {
Element* element = toElement(m_domAgent->nodeForId(state.key));
if (element && element->ownerDocument())
- documentsToChange.add(element->ownerDocument());
+ documentsToChange.insert(element->ownerDocument());
}
m_nodeIdToForcedPseudoState.clear();

Powered by Google App Engine
This is Rietveld 408576698