Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit aee7b3b

Browse files
author
Scott Goodson
committed
Remove padding workaround from old CoreText days.
This is a vestige from Paper. Discussion: #1013
1 parent 640568a commit aee7b3b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

AsyncDisplayKit/ASTextNode.mm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,7 @@ + (void)drawRect:(CGRect)bounds withParameters:(ASTextNodeDrawParameters *)param
413413
if (backgroundColor) {
414414
CGContextSetFillColorWithColor(context, backgroundColor);
415415
CGContextSetBlendMode(context, kCGBlendModeCopy);
416-
// outset the background fill to cover fractional errors when drawing at a
417-
// small contentsScale.
418-
CGContextFillRect(context, CGRectInset(bounds, -2, -2));
416+
CGContextFillRect(context, CGContextGetClipBoundingBox(context));
419417
CGContextSetBlendMode(context, kCGBlendModeNormal);
420418
}
421419
}

0 commit comments

Comments
 (0)