Address comments

This commit is contained in:
Garrett Moon 2015-10-05 14:29:41 -07:00
parent d6c107a896
commit b1d03f1d58

View File

@ -131,9 +131,9 @@ static void __ASDisplayLayerDecrementConcurrentDisplayCount(BOOL displayIsAsync,
CGContextTranslateCTM(context, frame.origin.x, frame.origin.y);
//support cornerRadius
if (clipsToBounds) {
if (rasterizingFromAscendent && clipsToBounds) {
if (cornerRadius) {
[[UIBezierPath bezierPathWithRoundedRect:bounds cornerRadius:self.cornerRadius] addClip];
[[UIBezierPath bezierPathWithRoundedRect:bounds cornerRadius:cornerRadius] addClip];
} else {
[[UIBezierPath bezierPathWithRect:bounds] addClip];
}