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:
Scott Goodson
2016-07-09 23:54:43 -07:00
parent d83f319fe3
commit bf9c142765
5 changed files with 7 additions and 55 deletions

View File

@@ -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.