Implement double measure experiment
Reviewed By: SidharthGuglani Differential Revision: D16340462 fbshipit-source-id: b157d8137c72f83a3bea46f30d0f46f65055f9ef
This commit is contained in:
committed by
Facebook Github Bot
parent
a53c14dc75
commit
4e4ef06de1
@@ -15,6 +15,7 @@
|
|||||||
#include "YGNodePrint.h"
|
#include "YGNodePrint.h"
|
||||||
#include "Yoga-internal.h"
|
#include "Yoga-internal.h"
|
||||||
#include "event/event.h"
|
#include "event/event.h"
|
||||||
|
#include "internal/experiments-inl.h"
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
@@ -1656,6 +1657,15 @@ static void YGNodeWithMeasureFuncSetMeasuredDimensions(
|
|||||||
measuredSize.height,
|
measuredSize.height,
|
||||||
reason});
|
reason});
|
||||||
|
|
||||||
|
if (internal::isEnabled(internal::Experiment::kDoubleMeasureCallbacks)) {
|
||||||
|
node->measure(
|
||||||
|
innerWidth,
|
||||||
|
widthMeasureMode,
|
||||||
|
innerHeight,
|
||||||
|
heightMeasureMode,
|
||||||
|
layoutContext);
|
||||||
|
}
|
||||||
|
|
||||||
node->setLayoutMeasuredDimension(
|
node->setLayoutMeasuredDimension(
|
||||||
YGNodeBoundAxis(
|
YGNodeBoundAxis(
|
||||||
node,
|
node,
|
||||||
|
Reference in New Issue
Block a user