Changed the type of computedFlexBasis to YGFloatOptional in YGLayout

Summary: Changed the type of computedFlexBasis to YGFloatOptional in YGLayout

Reviewed By: emilsjolander

Differential Revision: D7340413

fbshipit-source-id: 39247b2b582a682e602f49f58b4bbd2bf0c995af
This commit is contained in:
Pritesh Nandgaonkar
2018-04-04 07:55:39 -07:00
committed by Facebook Github Bot
parent 77b720f9a5
commit 5b109578d3
6 changed files with 48 additions and 37 deletions

View File

@@ -6,6 +6,7 @@
*/
#pragma once
#include "YGFloatOptional.h"
#include "Yoga-internal.h"
struct YGLayout {
@@ -17,7 +18,7 @@ struct YGLayout {
YGDirection direction;
uint32_t computedFlexBasisGeneration;
float computedFlexBasis;
YGFloatOptional computedFlexBasis;
bool hadOverflow;
// Instead of recomputing the entire layout every single time, we