Remove the use of YGUnwrapOptional from YGConstrainedMaxSizeForMode

Summary: Remove the use of YGUnwrapOptional from YGConstrainedMaxSizeForMode

Reviewed By: emilsjolander

Differential Revision: D7322743

fbshipit-source-id: d825c60bcdc9ecdc0c784a215dc6b1b8a7a7860e
This commit is contained in:
Pritesh Nandgaonkar
2018-04-04 07:55:25 -07:00
committed by Facebook Github Bot
parent 08743a42e2
commit bb139d3f91
4 changed files with 28 additions and 9 deletions

View File

@@ -167,6 +167,7 @@ float YGNode::getTrailingMargin(
widthSize));
}
// TODO: Make its return type to YGFloatOptional
float YGNode::getMarginForAxis(
const YGFlexDirection axis,
const float widthSize) const {