зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1620490 Part 4 - Move the helper methods that handle ComputedFlexContainerInfo into protected section. r=dholbert
They are helpers for DoFlexLayout, which don't need to be public. Differential Revision: https://phabricator.services.mozilla.com/D65782 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
d477739382
Коммит
b9b7d49c6b
|
@ -200,26 +200,6 @@ class nsFlexContainerFrame final : public nsContainerFrame {
|
|||
return info;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function creates a new ComputedFlexContainerInfo or clear the existing
|
||||
* one.
|
||||
*/
|
||||
void CreateOrClearFlexContainerInfo();
|
||||
|
||||
/**
|
||||
* Helpers for DoFlexLayout to computed fields in ComputedFlexContainerInfo.
|
||||
*/
|
||||
static void CreateFlexLineAndFlexItemInfo(
|
||||
ComputedFlexContainerInfo& aContainerInfo,
|
||||
const mozilla::LinkedList<FlexLine>& aLines);
|
||||
|
||||
static void ComputeFlexDirections(ComputedFlexContainerInfo& aContainerInfo,
|
||||
const FlexboxAxisTracker& aAxisTracker);
|
||||
|
||||
static void UpdateFlexLineAndItemInfo(
|
||||
ComputedFlexContainerInfo& aContainerInfo,
|
||||
const mozilla::LinkedList<FlexLine>& aLines);
|
||||
|
||||
/**
|
||||
* Return aFrame as a flex frame after ensuring it has computed flex info.
|
||||
* @return nullptr if aFrame is null or doesn't have a flex frame
|
||||
|
@ -268,6 +248,8 @@ class nsFlexContainerFrame final : public nsContainerFrame {
|
|||
|
||||
virtual ~nsFlexContainerFrame();
|
||||
|
||||
// Protected flex-container-specific methods / member-vars
|
||||
|
||||
/*
|
||||
* This method does the bulk of the flex layout, implementing the algorithm
|
||||
* described at:
|
||||
|
@ -299,7 +281,26 @@ class nsFlexContainerFrame final : public nsContainerFrame {
|
|||
nsTArray<StrutInfo>& aStruts, const FlexboxAxisTracker& aAxisTracker,
|
||||
nscoord aMainGapSize, nscoord aCrossGapSize, bool aHasLineClampEllipsis);
|
||||
|
||||
// Protected flex-container-specific methods / member-vars
|
||||
/**
|
||||
* This function creates a new ComputedFlexContainerInfo or clear the existing
|
||||
* one.
|
||||
*/
|
||||
void CreateOrClearFlexContainerInfo();
|
||||
|
||||
/**
|
||||
* Helpers for DoFlexLayout to computed fields in ComputedFlexContainerInfo.
|
||||
*/
|
||||
static void CreateFlexLineAndFlexItemInfo(
|
||||
ComputedFlexContainerInfo& aContainerInfo,
|
||||
const mozilla::LinkedList<FlexLine>& aLines);
|
||||
|
||||
static void ComputeFlexDirections(ComputedFlexContainerInfo& aContainerInfo,
|
||||
const FlexboxAxisTracker& aAxisTracker);
|
||||
|
||||
static void UpdateFlexLineAndItemInfo(
|
||||
ComputedFlexContainerInfo& aContainerInfo,
|
||||
const mozilla::LinkedList<FlexLine>& aLines);
|
||||
|
||||
#ifdef DEBUG
|
||||
void SanityCheckAnonymousFlexItems() const;
|
||||
#endif // DEBUG
|
||||
|
|
Загрузка…
Ссылка в новой задаче