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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.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/CustomElementUpgradeSorter.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp
index e915e92425bdbd6d7a55322d29fd3f551491fef6..93d6e26d4ebb732c1ba21c88830adeb18d122a6c 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp
@@ -28,19 +28,19 @@ CustomElementUpgradeSorter::AddResult
CustomElementUpgradeSorter::addToParentChildMap(Node* parent, Node* child) {
ParentChildMap::AddResult result = m_parentChildMap->add(parent, nullptr);
if (!result.isNewEntry) {
- result.storedValue->value->add(child);
+ result.storedValue->value->insert(child);
// The entry for the parent exists; so must its parents.
return kParentAlreadyExistsInMap;
}
ChildSet* childSet = new ChildSet();
- childSet->add(child);
+ childSet->insert(child);
result.storedValue->value = childSet;
return kParentAddedToMap;
}
void CustomElementUpgradeSorter::add(Element* element) {
- m_elements->add(element);
+ m_elements->insert(element);
for (Node *n = element, *parent = n->parentOrShadowHostNode(); parent;
n = parent, parent = parent->parentOrShadowHostNode()) {

Powered by Google App Engine
This is Rietveld 408576698