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

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

Issue 2688893002: Migrate WTF::HashSet::add() to ::insert() [continued] (Closed)
Patch Set: rebase, fix one platform-specific reference 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp
diff --git a/third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp b/third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp
index cf41414466b10852dfa7063396d2510762f4ffb4..51a09fbfa70d13f892d5095af0c8fe3bf4b9bdd6 100644
--- a/third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp
+++ b/third_party/WebKit/Source/core/layout/GridTrackSizingAlgorithm.cpp
@@ -1127,7 +1127,7 @@ void GridTrackSizingAlgorithm::resolveIntrinsicTrackSizes() {
GridIterator iterator(m_grid, m_direction, trackIndex);
GridTrack& track = tracks(m_direction)[trackIndex];
while (LayoutBox* gridItem = iterator.nextGridItem()) {
- if (itemsSet.add(gridItem).isNewEntry) {
+ if (itemsSet.insert(gridItem).isNewEntry) {
const GridSpan& span = m_grid.gridItemSpan(*gridItem, m_direction);
if (span.integerSpan() == 1) {
sizeTrackToFitNonSpanningItem(span, *gridItem, track);
@@ -1249,7 +1249,7 @@ double GridTrackSizingAlgorithm::computeFlexFactorUnitSize(
flexFactorSum -= flexFactor;
if (!additionalTracksToTreatAsInflexible)
additionalTracksToTreatAsInflexible = WTF::makeUnique<TrackIndexSet>();
- additionalTracksToTreatAsInflexible->add(index);
+ additionalTracksToTreatAsInflexible->insert(index);
validFlexFactorUnit = false;
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698