mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Revert "[ASTextNode] Fix text node truncation (#1863)"
This reverts commit 6238e5edbd.
We will re-apply this change, but there are some early signs of performance impacts that need to be investigated.
This commit is contained in:
@@ -10,8 +10,6 @@
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
typedef NSTextStorage *(^ASTextKitContextTextStorageCreationBlock)(NSAttributedString *attributedString);
|
||||
|
||||
/**
|
||||
A threadsafe container for the TextKit components that ASTextKit uses to lay out and truncate its text.
|
||||
|
||||
@@ -32,19 +30,10 @@ typedef NSTextStorage *(^ASTextKitContextTextStorageCreationBlock)(NSAttributedS
|
||||
constrainedSize:(CGSize)constrainedSize
|
||||
layoutManagerCreationBlock:(NSLayoutManager * (^)(void))layoutCreationBlock
|
||||
layoutManagerDelegate:(id<NSLayoutManagerDelegate>)layoutManagerDelegate
|
||||
textStorageCreationBlock:(ASTextKitContextTextStorageCreationBlock)textStorageCreationBlock;
|
||||
textStorageCreationBlock:(NSTextStorage * (^)(NSAttributedString *attributedString))textStorageCreationBlock;
|
||||
|
||||
/**
|
||||
Set the constrained size for the text context.
|
||||
*/
|
||||
@property (nonatomic, assign, readwrite) CGSize constrainedSize;
|
||||
|
||||
/**
|
||||
Resets the text storage to the original value in case it was truncated before. This method is called within
|
||||
a locked context.
|
||||
*/
|
||||
- (void)resetTextStorage;
|
||||
|
||||
/**
|
||||
All operations on TextKit values MUST occur within this locked context. Simultaneous access (even non-mutative) to
|
||||
TextKit components may cause crashes.
|
||||
|
||||
Reference in New Issue
Block a user