Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shrink TextNode(2) #1495

Merged
merged 1 commit into from
May 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Source/ASTextNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ @implementation ASTextNode {

NSString *_highlightedLinkAttributeName;
id _highlightedLinkAttributeValue;
ASTextNodeHighlightStyle _highlightStyle;
NSRange _highlightRange;
ASHighlightOverlayLayer *_activeHighlightLayer;

UILongPressGestureRecognizer *_longPressGestureRecognizer;
ASTextNodeHighlightStyle _highlightStyle;
BOOL _longPressCancelsTouches;
BOOL _passthroughNonlinkTouches;
}
@dynamic placeholderEnabled;

Expand Down Expand Up @@ -265,6 +267,11 @@ - (void)dealloc
CGColorRelease(_shadowColor);
}

- (BOOL)usingExperiment
{
return NO;
}

#pragma mark - Description

- (NSString *)_plainStringForDescription
Expand Down
4 changes: 3 additions & 1 deletion Source/ASTextNode2.mm
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,14 @@ @implementation ASTextNode {

NSString *_highlightedLinkAttributeName;
id _highlightedLinkAttributeValue;
ASTextNodeHighlightStyle _highlightStyle;
NSRange _highlightRange;
ASHighlightOverlayLayer *_activeHighlightLayer;
UIColor *_placeholderColor;

UILongPressGestureRecognizer *_longPressGestureRecognizer;
ASTextNodeHighlightStyle _highlightStyle;
BOOL _longPressCancelsTouches;
BOOL _passthroughNonlinkTouches;
}
@dynamic placeholderEnabled;

Expand Down
2 changes: 1 addition & 1 deletion Source/ASTextNodeCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Highlight styles.
*/
typedef NS_ENUM(NSUInteger, ASTextNodeHighlightStyle) {
typedef NS_ENUM(unsigned char, ASTextNodeHighlightStyle) {
/**
* Highlight style for text on a light background.
*/
Expand Down