зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1447166 part 4 - [css-grid] Make InitializeItemBaselines iterate the GridItemInfo array instead of using a CSSOrderAwareFrameIterator (idempotent change). r=dholbert
This commit is contained in:
Родитель
5a7c9748bb
Коммит
5426506598
|
@ -4020,11 +4020,8 @@ nsGridContainerFrame::Tracks::InitializeItemBaselines(
|
||||||
nsTArray<ItemBaselineData> lastBaselineItems;
|
nsTArray<ItemBaselineData> lastBaselineItems;
|
||||||
WritingMode wm = aState.mWM;
|
WritingMode wm = aState.mWM;
|
||||||
ComputedStyle* containerSC = aState.mFrame->Style();
|
ComputedStyle* containerSC = aState.mFrame->Style();
|
||||||
CSSOrderAwareFrameIterator& iter = aState.mIter;
|
for (GridItemInfo& gridItem : aGridItems) {
|
||||||
iter.Reset();
|
nsIFrame* child = gridItem.mFrame;
|
||||||
for (; !iter.AtEnd(); iter.Next()) {
|
|
||||||
nsIFrame* child = *iter;
|
|
||||||
GridItemInfo& gridItem = aGridItems[iter.ItemIndex()];
|
|
||||||
uint32_t baselineTrack = kAutoLine;
|
uint32_t baselineTrack = kAutoLine;
|
||||||
auto state = ItemState(0);
|
auto state = ItemState(0);
|
||||||
auto childWM = child->GetWritingMode();
|
auto childWM = child->GetWritingMode();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче