[ASTextNode] Go Back to Having Renderer as Ivar (#2376)

* Revert "Disable ASTextKitRenderer cache (#2315)"

This reverts commit 4aa7c9631d.

* Revert "[ASTextNode] Add NSCache based cache for ASTextKitRenderer (#2199)"
This commit is contained in:
Adlai Holler
2016-10-13 11:37:56 -07:00
committed by appleguy
parent 60b40d8e1c
commit cb838664aa
6 changed files with 197 additions and 103 deletions

View File

@@ -54,6 +54,18 @@
return self;
}
- (CGSize)constrainedSize
{
ASDN::MutexSharedLocker l(__instanceLock__);
return _textContainer.size;
}
- (void)setConstrainedSize:(CGSize)constrainedSize
{
ASDN::MutexSharedLocker l(__instanceLock__);
_textContainer.size = constrainedSize;
}
- (void)performBlockWithLockedTextKitComponents:(void (^)(NSLayoutManager *,
NSTextStorage *,
NSTextContainer *))block