Don't copy children in YGNodeComputeFlexBasisForChildren (#919)
Summary: No need for a copy here. Pull Request resolved: https://github.com/facebook/yoga/pull/919 Differential Revision: D16701461 Pulled By: davidaurelio fbshipit-source-id: 3a90adbb2b5c43d5aefe693a8525aa3a37e53b3d
This commit is contained in:
Родитель
c9b757f513
Коммит
4c11b55053
|
@ -1850,7 +1850,7 @@ static float YGNodeComputeFlexBasisForChildren(
|
|||
const uint32_t generationCount) {
|
||||
float totalOuterFlexBasis = 0.0f;
|
||||
YGNodeRef singleFlexChild = nullptr;
|
||||
YGVector children = node->getChildren();
|
||||
const YGVector &children = node->getChildren();
|
||||
YGMeasureMode measureModeMainDim =
|
||||
YGFlexDirectionIsRow(mainAxis) ? widthMeasureMode : heightMeasureMode;
|
||||
// If there is only one child with flexGrow + flexShrink it means we can set
|
||||
|
|
Загрузка…
Ссылка в новой задаче