mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 06:00:43 +00:00
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:
parent
640568aff8
commit
aee7b3b77a
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user