create two layout pass reason flexLayout and flexMeasure instead of flex
Summary: We had flex as a reason for both layout and measure. Now creating separating reason flexLayout and flexMeasure in this diff. Also changed ordering of items in Enum to group layout and measure reasons Reviewed By: davidaurelio Differential Revision: D16562350 fbshipit-source-id: 75501f9d4dde0974009193b3991a8acc97b02ad0
This commit is contained in:
committed by
Facebook Github Bot
parent
5a25805cb5
commit
825da1e868
@@ -2185,6 +2185,7 @@ static float YGDistributeFreeSpaceSecondPass(
|
||||
const YGMeasureMode childHeightMeasureMode =
|
||||
!isMainAxisRow ? childMainMeasureMode : childCrossMeasureMode;
|
||||
|
||||
const bool isLayoutPass = performLayout && !requiresStretchLayout;
|
||||
// Recursively call the layout algorithm for this child with the updated
|
||||
// main size.
|
||||
YGLayoutNodeInternal(
|
||||
@@ -2196,8 +2197,9 @@ static float YGDistributeFreeSpaceSecondPass(
|
||||
childHeightMeasureMode,
|
||||
availableInnerWidth,
|
||||
availableInnerHeight,
|
||||
performLayout && !requiresStretchLayout,
|
||||
LayoutPassReason::kFlex,
|
||||
isLayoutPass,
|
||||
isLayoutPass ? LayoutPassReason::kFlexLayout
|
||||
: LayoutPassReason::kFlexMeasure,
|
||||
config,
|
||||
layoutMarkerData,
|
||||
layoutContext,
|
||||
|
Reference in New Issue
Block a user