Issue #1986 - Use logical coordinates in flex containers.

This mostly reworks the way nsFlexContainerFrame handles things so that it can
deal with more than just height.
This commit is contained in:
Jeremy Andrews 2022-08-16 02:14:53 -05:00 • committed by roytam1
commit 7527371d78
4 changed files with 147 additions and 115 deletions

View file

@ -207,20 +207,20 @@ protected:
* This avoids exponential reflows, see the comment on
* CachedMeasuringReflowResult.
*/
const CachedMeasuringReflowResult& MeasureAscentAndHeightForFlexItem(
const CachedMeasuringReflowResult& MeasureAscentAndBSizeForFlexItem(
FlexItem& aItem,
nsPresContext* aPresContext,
ReflowInput& aChildReflowInput);
/**
* This method performs a "measuring" reflow to get the content height of
* aFlexItem.Frame() (treating it as if it had auto-height), & returns the
* resulting height.
* This method performs a "measuring" reflow to get the content BSize of
* aFlexItem.Frame() (treating it as if it had a computed BSize of "auto"),
* and returns the resulting BSize measurement.
* (Helper for ResolveAutoFlexBasisAndMinSize().)
*/
nscoord MeasureFlexItemContentHeight(nsPresContext* aPresContext,
nscoord MeasureFlexItemContentBSize(nsPresContext* aPresContext,
FlexItem& aFlexItem,
bool aForceVerticalResizeForMeasuringReflow,
bool aForceBSizeForMeasuringReflow,
const ReflowInput& aParentReflowInput);
/**