Gate orphaned node detector behind YOGA flag #trivial (#380)

* Gate orphaned node detector behind YOGA flag

* Tiny indentation change
This commit is contained in:
Huy Nguyen
2017-06-22 19:12:41 +01:00
committed by GitHub
parent e264bb7eb0
commit 992df78801

View File

@@ -143,7 +143,7 @@ ASPrimitiveTraitCollectionDeprecatedImplementation
{
NSString *string = NSStringFromClass([self class]);
if (_debugName) {
string = [string stringByAppendingString:[NSString stringWithFormat:@"\"%@\"",_debugName]];
string = [string stringByAppendingString:[NSString stringWithFormat:@"\"%@\"", _debugName]];
}
return string;
}
@@ -864,7 +864,11 @@ ASPrimitiveTraitCollectionDeprecatedImplementation
- (void)_pendingLayoutTransitionDidComplete
{
// This assertion introduces a breaking behavior for nodes that has ASM enabled but also manually manage some subnodes.
// Let's gate it behind YOGA flag and remove it right after a branch cut.
#if YOGA
[self _assertSubnodeState];
#endif
// Subclass hook
[self calculatedLayoutDidChange];