Remove padding workaround from old CoreText days.

This is a vestige from Paper.  Discussion: https://github.com/facebook/AsyncDisplayKit/issues/1013
This commit is contained in:
Scott Goodson 2015-12-31 01:52:08 -08:00
parent 640568aff8
commit aee7b3b77a

View File

@ -413,9 +413,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
if (backgroundColor) {
CGContextSetFillColorWithColor(context, backgroundColor);
CGContextSetBlendMode(context, kCGBlendModeCopy);
// outset the background fill to cover fractional errors when drawing at a
// small contentsScale.
CGContextFillRect(context, CGRectInset(bounds, -2, -2));
CGContextFillRect(context, CGContextGetClipBoundingBox(context));
CGContextSetBlendMode(context, kCGBlendModeNormal);
}
}