Bug 1305244 part 3 - [css-grid] Stop handling <flex> track min-sizing in layout since they can't occur anymore. r=dholbert

This commit is contained in:
Mats Palmgren 2016-10-29 01:30:10 +02:00
Родитель 0ec09712ad
Коммит 05a1e2c9a6
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -267,7 +267,6 @@ nsGridContainerFrame::TrackSize::Initialize(nscoord aPercentageBasis,
}
// http://dev.w3.org/csswg/css-grid/#algo-init
switch (minSizeUnit) {
case eStyleUnit_FlexFraction:
case eStyleUnit_Auto:
mState |= eAutoMinSizing;
break;
@ -276,6 +275,8 @@ nsGridContainerFrame::TrackSize::Initialize(nscoord aPercentageBasis,
: eMaxContentMinSizing;
break;
default:
MOZ_ASSERT(minSizeUnit != eStyleUnit_FlexFraction,
"<flex> min-sizing is invalid as a track size");
mBase = ::ResolveToDefiniteSize(aMinCoord, aPercentageBasis);
}
switch (maxSizeUnit) {