зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0ec09712ad
Коммит
05a1e2c9a6
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче