File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -7379,16 +7379,15 @@ float nsGridContainerFrame::Tracks::FindFrUnitSize(
73797379
73807380 // 12.7.1.2: If flexFactorSum is less than 1, set it to 1 instead.
73817381 hypotheticalFrSize = leftOverSpace / std::max (flexFactorSum, 1 .0f );
7382- for (uint32_t i = 0 , len = flexTracks.Length (); i < len; ++i) {
7383- uint32_t track = flexTracks[i];
7382+ for (uint32_t & track : flexTracks) {
73847383 if (track == kAutoLine ) {
73857384 continue ; // Track marked as inflexible in a prev. iter of this loop.
73867385 }
73877386 float flexFactor = aFunctions.MaxSizingFor (track).AsFr ();
73887387 const nscoord base = mSizes [track].mBase ;
73897388 if (flexFactor * hypotheticalFrSize < base) {
73907389 // 12.7.1.4: Treat this track as inflexible.
7391- flexTracks[i] = kAutoLine ;
7390+ track = kAutoLine ;
73927391 flexFactorSum -= flexFactor;
73937392 leftOverSpace -= base;
73947393 --numFlexTracks;
You can’t perform that action at this time.
0 commit comments