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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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 6a5d1cee16dcd80a5e82f980cc0b12abbbd8b548..19826f40af5ae0c3d3799d4cb5d02e72990ddc6e 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -337,7 +337,7 @@ void StyleEngine::updateActiveStyleSheets() {
updateActiveStyleSheetsInShadow(treeScope, treeScopesRemoved);
}
for (TreeScope* treeScope : treeScopesRemoved)
- m_activeTreeScopes.remove(treeScope);
+ m_activeTreeScopes.erase(treeScope);
}
InspectorInstrumentation::activeStyleSheetsUpdated(m_document);
@@ -389,8 +389,8 @@ const ActiveStyleSheetVector StyleEngine::activeStyleSheetsForInspector() {
void StyleEngine::shadowRootRemovedFromDocument(ShadowRoot* shadowRoot) {
m_styleSheetCollectionMap.erase(shadowRoot);
- m_activeTreeScopes.remove(shadowRoot);
- m_dirtyTreeScopes.remove(shadowRoot);
+ m_activeTreeScopes.erase(shadowRoot);
+ m_dirtyTreeScopes.erase(shadowRoot);
resetAuthorStyle(*shadowRoot);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunner.cpp ('k') | third_party/WebKit/Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698