mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 07:37:29 +09:00
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:
parent
05d0cf7d47
commit
7527371d78
4 changed files with 147 additions and 115 deletions
|
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue