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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.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/custom/CustomElementRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
index 79d0833ee1e25304810a47337e59fcbefccc983a..245c52da9a70e30750aa65b123abb30a5331af17 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
@@ -238,7 +238,7 @@ bool CustomElementRegistry::nameIsDefined(const AtomicString& name) const {
}
void CustomElementRegistry::entangle(V0CustomElementRegistrationContext* v0) {
- m_v0->add(v0);
+ m_v0->insert(v0);
v0->setV1(this);
}
@@ -267,7 +267,7 @@ void CustomElementRegistry::addCandidate(Element* candidate) {
set = m_upgradeCandidates->add(name, new UpgradeCandidateSet())
.storedValue->value;
}
- set->add(candidate);
+ set->insert(candidate);
}
// https://html.spec.whatwg.org/multipage/scripting.html#dom-customelementsregistry-whendefined

Powered by Google App Engine
This is Rietveld 408576698