зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1447166 part 2 - [css-grid] Make ResolveIntrinsicSize iterate the GridItemInfo array instead of using a CSSOrderAwareFrameIterator (idempotent change). r=dholbert
This commit is contained in:
Родитель
b71cc2ba37
Коммит
383cd0da9f
|
@ -4317,7 +4317,6 @@ nsGridContainerFrame::Tracks::ResolveIntrinsicSize(
|
|||
};
|
||||
AutoTArray<PerSpanData, 16> perSpanData;
|
||||
nsTArray<Step2ItemData> step2Items;
|
||||
CSSOrderAwareFrameIterator& iter = aState.mIter;
|
||||
gfxContext* rc = &aState.mRenderingContext;
|
||||
WritingMode wm = aState.mWM;
|
||||
uint32_t maxSpan = 0; // max span of the step2Items items
|
||||
|
@ -4330,9 +4329,7 @@ nsGridContainerFrame::Tracks::ResolveIntrinsicSize(
|
|||
aConstraint == SizingConstraint::eMaxContent ?
|
||||
(TrackSize::eMaxContentMinSizing | TrackSize::eAutoMinSizing) :
|
||||
TrackSize::eMaxContentMinSizing;
|
||||
iter.Reset();
|
||||
for (; !iter.AtEnd(); iter.Next()) {
|
||||
auto& gridItem = aGridItems[iter.ItemIndex()];
|
||||
for (auto& gridItem : aGridItems) {
|
||||
MOZ_ASSERT(!(gridItem.mState[mAxis] &
|
||||
(ItemState::eApplyAutoMinSize | ItemState::eIsFlexing |
|
||||
ItemState::eClampMarginBoxMinSize)),
|
||||
|
@ -4398,7 +4395,7 @@ nsGridContainerFrame::Tracks::ResolveIntrinsicSize(
|
|||
}
|
||||
step2Items.AppendElement(
|
||||
Step2ItemData({span, state, lineRange, minSize,
|
||||
minContent, maxContent, *iter}));
|
||||
minContent, maxContent, gridItem.mFrame}));
|
||||
}
|
||||
}
|
||||
MOZ_ASSERT(!(gridItem.mState[mAxis] & ItemState::eClampMarginBoxMinSize) ||
|
||||
|
|
Загрузка…
Ссылка в новой задаче