Skip to content

Commit 5ca10c7

Browse files
davidaureliofacebook-github-bot
authored andcommitted
Implement double measure experiment
Reviewed By: SidharthGuglani Differential Revision: D16340462 fbshipit-source-id: b157d8137c72f83a3bea46f30d0f46f65055f9ef
1 parent f68c16e commit 5ca10c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ReactCommon/yoga/yoga/Yoga.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "YGNodePrint.h"
1616
#include "Yoga-internal.h"
1717
#include "event/event.h"
18+
#include "internal/experiments-inl.h"
1819
#ifdef _MSC_VER
1920
#include <float.h>
2021

@@ -1656,6 +1657,15 @@ static void YGNodeWithMeasureFuncSetMeasuredDimensions(
16561657
measuredSize.height,
16571658
reason});
16581659

1660+
if (internal::isEnabled(internal::Experiment::kDoubleMeasureCallbacks)) {
1661+
node->measure(
1662+
innerWidth,
1663+
widthMeasureMode,
1664+
innerHeight,
1665+
heightMeasureMode,
1666+
layoutContext);
1667+
}
1668+
16591669
node->setLayoutMeasuredDimension(
16601670
YGNodeBoundAxis(
16611671
node,

0 commit comments

Comments
 (0)