Layout marker metadata
Summary: @public Adds marker meta data to `YGMarkerLayout`: the number of measures, and the numbers of layouts for all nodes in the tree. Reviewed By: SidharthGuglani Differential Revision: D13838975 fbshipit-source-id: d575c26a3d5a4f0b66834eb6bedecadc3f3ca265
This commit is contained in:
committed by
Facebook Github Bot
parent
b4b009c2d8
commit
cbea5d44b8
@@ -2685,6 +2685,8 @@ static void YGNodelayoutImpl(
|
||||
"availableHeight is indefinite so heightMeasureMode must be "
|
||||
"YGMeasureModeUndefined");
|
||||
|
||||
(performLayout ? layoutMarkerData.layouts : layoutMarkerData.measures) += 1;
|
||||
|
||||
// Set the resolved resolution in the node's layout.
|
||||
const YGDirection direction = node->resolveDirection(ownerDirection);
|
||||
node->setLayoutDirection(direction);
|
||||
|
Reference in New Issue
Block a user