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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.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/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index b36d197474c0c08d91e962357ffe0658b4a65ccf..7950c0b649446db5c431f1712fc874ddaa956d0d 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -214,7 +214,7 @@ void StyleEngine::addStyleSheetCandidateNode(Node& node) {
setNeedsActiveStyleUpdate(treeScope);
if (treeScope != m_document)
- m_activeTreeScopes.add(&treeScope);
+ m_activeTreeScopes.insert(&treeScope);
}
void StyleEngine::removeStyleSheetCandidateNode(Node& node,
@@ -306,7 +306,7 @@ void StyleEngine::updateActiveStyleSheetsInShadow(
DCHECK(collection);
collection->updateActiveStyleSheets(*this);
if (!collection->hasStyleSheetCandidateNodes()) {
- treeScopesRemoved.add(treeScope);
+ treeScopesRemoved.insert(treeScope);
// When removing TreeScope from ActiveTreeScopes,
// its resolver should be destroyed by invoking resetAuthorStyle.
DCHECK(!treeScope->scopedStyleResolver());
@@ -505,7 +505,7 @@ void StyleEngine::markTreeScopeDirty(TreeScope& scope) {
}
DCHECK(m_styleSheetCollectionMap.contains(&scope));
- m_dirtyTreeScopes.add(&scope);
+ m_dirtyTreeScopes.insert(&scope);
document().scheduleLayoutTreeUpdateIfNeeded();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/SecurityContext.h ('k') | third_party/WebKit/Source/core/dom/StyleEngineTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698