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

Unified Diff: third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.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/css/resolver/CSSVariableResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp b/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp
index 6ccb2d97cb182cf8f6976a43dfdde6033ce2f54a..3650b57b377e997aa538312a30b3365e9ab23860 100644
--- a/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp
@@ -98,7 +98,7 @@ PassRefPtr<CSSVariableData> CSSVariableResolver::resolveCustomProperty(
bool success =
resolveTokenRange(variableData.tokens(), disallowAnimationTainted, tokens,
isAnimationTainted);
- m_variablesSeen.remove(name);
+ m_variablesSeen.erase(name);
// The old variable data holds onto the backing string the new resolved
// CSSVariableData relies on. Ensure it will live beyond us overwriting the
@@ -106,7 +106,7 @@ PassRefPtr<CSSVariableData> CSSVariableResolver::resolveCustomProperty(
ASSERT(variableData.refCount() > 1);
if (!success || !m_cycleStartPoints.isEmpty()) {
- m_cycleStartPoints.remove(name);
+ m_cycleStartPoints.erase(name);
return nullptr;
}
return CSSVariableData::createResolved(tokens, variableData,
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698