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

Unified Diff: third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.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/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 7352193f5554ac5cdcc12c9335b82fd74aac97e4..8d7f8e442b4eb0dde7a265428dff85195f50c397 100644
--- a/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/CSSVariableResolver.cpp
@@ -40,7 +40,7 @@ bool CSSVariableResolver::resolveFallback(CSSParserTokenRange range,
CSSVariableData* CSSVariableResolver::valueForCustomProperty(
AtomicString name) {
if (m_variablesSeen.contains(name)) {
- m_cycleStartPoints.add(name);
+ m_cycleStartPoints.insert(name);
return nullptr;
}
@@ -94,7 +94,7 @@ PassRefPtr<CSSVariableData> CSSVariableResolver::resolveCustomProperty(
bool disallowAnimationTainted = false;
bool isAnimationTainted = variableData.isAnimationTainted();
Vector<CSSParserToken> tokens;
- m_variablesSeen.add(name);
+ m_variablesSeen.insert(name);
bool success =
resolveTokenRange(variableData.tokens(), disallowAnimationTainted, tokens,
isAnimationTainted);

Powered by Google App Engine
This is Rietveld 408576698