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 authored and Facebook Github Bot committed 2020-03-04 05:01:54 -08:00
1 parent 3ee1e5312a
commit 899b314ca2
2 files changed
+4 -9

No files matched your search

@@ -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 <>