Implement double measure experiment

Reviewed By: SidharthGuglani

Differential Revision: D16340462

fbshipit-source-id: b157d8137c72f83a3bea46f30d0f46f65055f9ef
This commit is contained in:
David Aurelio
2019-07-19 10:33:47 -07:00
committed by Facebook Github Bot
parent a53c14dc75
commit 4e4ef06de1

View File

@@ -15,6 +15,7 @@
#include "YGNodePrint.h"
#include "Yoga-internal.h"
#include "event/event.h"
#include "internal/experiments-inl.h"
#ifdef _MSC_VER
#include <float.h>
@@ -1656,6 +1657,15 @@ static void YGNodeWithMeasureFuncSetMeasuredDimensions(
measuredSize.height,
reason});
if (internal::isEnabled(internal::Experiment::kDoubleMeasureCallbacks)) {
node->measure(
innerWidth,
widthMeasureMode,
innerHeight,
heightMeasureMode,
layoutContext);
}
node->setLayoutMeasuredDimension(
YGNodeBoundAxis(
node,