зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1037177 part 4: Call ResolveAutoFlexBasisAndMinSize at the end of GenerateFlexItemForChild, instead of just after it. r=mats
This commit is contained in:
Родитель
9fb7acb17b
Коммит
3226ed5912
|
@ -1030,6 +1030,11 @@ nsFlexContainerFrame::GenerateFlexItemForChild(
|
|||
item->Freeze();
|
||||
}
|
||||
|
||||
// Resolve "flex-basis:auto" and/or "min-height:auto" (which might
|
||||
// require us to reflow the item to measure content height)
|
||||
ResolveAutoFlexBasisAndMinSize(aPresContext, *item,
|
||||
aParentReflowState, aAxisTracker);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
@ -2706,9 +2711,6 @@ nsFlexContainerFrame::GenerateFlexLines(
|
|||
} else {
|
||||
item = GenerateFlexItemForChild(aPresContext, childFrame,
|
||||
aReflowState, aAxisTracker);
|
||||
|
||||
ResolveAutoFlexBasisAndMinSize(aPresContext, *item,
|
||||
aReflowState, aAxisTracker);
|
||||
}
|
||||
|
||||
nscoord itemInnerHypotheticalMainSize = item->GetMainSize();
|
||||
|
|
Загрузка…
Ссылка в новой задаче