Back out "Pass layoutContext to Yoga's MeasureCallback"

Summary:
Passing `layoutContext` to yoga crashes fb4a-64. Until I have a solution let's back this out.

Original commit changeset: 9df7da4bef8c

Changelog: [Internal]

Reviewed By: makovkastar

Differential Revision: D20246917

fbshipit-source-id: 220744fde9f74e8157fc0714c63639b01152e4ab
This commit is contained in:
Samuel Susla
2020-03-04 04:57:48 -08:00
committed by Facebook Github Bot
parent 3ee1e5312a
commit 899b314ca2
2 changed files with 4 additions and 9 deletions
@@ -245,11 +245,8 @@ void YogaLayoutableShadowNode::layoutTree(
{
SystraceSection s("YogaLayoutableShadowNode::YGNodeCalculateLayout");
YGNodeCalculateLayoutWithContext(&yogaNode_,
availableWidth,
availableHeight,
YGDirectionInherit,
&layoutContext);
YGNodeCalculateLayout(
&yogaNode_, availableWidth, availableHeight, YGDirectionInherit);
}
layout(layoutContext);
@@ -323,8 +320,7 @@ YGSize YogaLayoutableShadowNode::yogaNodeMeasureCallbackConnector(
float width,
YGMeasureMode widthMode,
float height,
YGMeasureMode heightMode,
void *layoutContext) {
YGMeasureMode heightMode) {
SystraceSection s(
"YogaLayoutableShadowNode::yogaNodeMeasureCallbackConnector");
@@ -121,8 +121,7 @@ class YogaLayoutableShadowNode : public LayoutableShadowNode {
float width,
YGMeasureMode widthMode,
float height,
YGMeasureMode heightMode,
void *layoutContext);
YGMeasureMode heightMode);
};
template <>