[Yoga] Delete YOGA_TREE_CONTIGOUS gating and permanently enable. (#370)

[Yoga] Delete YOGA_TREE_CONTIGOUS gating and permanently enable. #trivial
This commit is contained in:
appleguy
2017-06-18 18:18:59 -07:00
committed by GitHub
parent 486410d7d6
commit 8c33a617ed
7 changed files with 2 additions and 42 deletions

View File

@@ -894,7 +894,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
_unflattenedLayout = nil;
#if YOGA_TREE_CONTIGUOUS
#if YOGA
[self invalidateCalculatedYogaLayout];
#endif
}
@@ -968,7 +968,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
ASDN::MutexLocker l(__instanceLock__);
#if YOGA_TREE_CONTIGUOUS /* YOGA */
#if YOGA
// There are several cases where Yoga could arrive here:
// - This node is not in a Yoga tree: it has neither a yogaParent nor yogaChildren.
// - This node is a Yoga tree root: it has no yogaParent, but has yogaChildren.