mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Initial experimental commit with functioning preloading, without the working window.
This commit is contained in:
committed by
Scott Goodson
parent
771eca5083
commit
7f59beb195
@@ -665,7 +665,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
|
||||
[self _addSubnodeViewsAndLayers];
|
||||
}
|
||||
|
||||
[self recursivelyDisplayImmediately];
|
||||
[self recursivelyEnsureDisplay];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1454,8 +1454,8 @@ void recursivelyEnsureDisplayForLayer(CALayer *layer)
|
||||
- (void)recursivelyEnsureDisplay
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
ASDisplayNodeAssert(self.isNodeLoaded, @"Node must have layer or view loaded to use -recursivelyEnsureDisplay");
|
||||
ASDisplayNodeAssert(self.inHierarchy && (self.isLayerBacked || self.view.window != nil), @"Node must be in a hierarchy to use -recursivelyEnsureDisplay");
|
||||
// ASDisplayNodeAssert(self.isNodeLoaded, @"Node must have layer or view loaded to use -recursivelyEnsureDisplay");
|
||||
// ASDisplayNodeAssert(self.inHierarchy && (self.isLayerBacked || self.view.window != nil), @"Node must be in a hierarchy to use -recursivelyEnsureDisplay");
|
||||
|
||||
CALayer *layer = self.layer;
|
||||
// -layoutIfNeeded is recursive, and even walks up to superlayers to check if they need layout,
|
||||
|
||||
Reference in New Issue
Block a user