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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGrid.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/layout/LayoutGrid.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
index 017e0dafe045673093764f7ac01a09e4b1f146a3..34621286a38471106ee33bcd65310ddc9c89db08 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
@@ -1135,7 +1135,7 @@ double LayoutGrid::computeFlexFactorUnitSize(
flexFactorSum -= flexFactor;
if (!additionalTracksToTreatAsInflexible)
additionalTracksToTreatAsInflexible = WTF::makeUnique<TrackIndexSet>();
- additionalTracksToTreatAsInflexible->add(index);
+ additionalTracksToTreatAsInflexible->insert(index);
validFlexFactorUnit = false;
}
}
@@ -1532,7 +1532,7 @@ void LayoutGrid::resolveContentBasedTrackSizingFunctions(
? sizingData.columnTracks[trackIndex]
: sizingData.rowTracks[trackIndex];
while (LayoutBox* gridItem = iterator.nextGridItem()) {
- if (itemsSet.add(gridItem).isNewEntry) {
+ if (itemsSet.insert(gridItem).isNewEntry) {
const GridSpan& span = grid.gridItemSpan(*gridItem, direction);
if (span.integerSpan() == 1) {
resolveContentBasedTrackSizingFunctionsForNonSpanningItems(

Powered by Google App Engine
This is Rietveld 408576698