mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Gate orphaned node detector behind YOGA flag #trivial (#380)
* Gate orphaned node detector behind YOGA flag * Tiny indentation change
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user