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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2724363002: Migrate WTF::LinkedHashSet/ListHashSet::add() to ::insert() (Closed)
Patch Set: 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/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index e1410554b55e2885f807a202bba4d42014e2a537..841db4b205808d10e89768392d1ad3c662705690 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -1004,7 +1004,7 @@ void LayoutBlock::insertPositionedObject(LayoutBox* o) {
descendantSet = new TrackedLayoutBoxListHashSet;
gPositionedDescendantsMap->set(this, WTF::wrapUnique(descendantSet));
}
- descendantSet->add(o);
+ descendantSet->insert(o);
m_hasPositionedObjects = true;
}
@@ -1113,7 +1113,7 @@ void LayoutBlock::addPercentHeightDescendant(LayoutBox* descendant) {
descendantSet = new TrackedLayoutBoxListHashSet;
gPercentHeightDescendantsMap->set(this, WTF::wrapUnique(descendantSet));
}
- descendantSet->add(descendant);
+ descendantSet->insert(descendant);
m_hasPercentHeightDescendants = true;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698