From a0f4c46cb5bf99b5889a8dae6e5e3db203126f3d Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Wed, 16 Jan 2013 13:35:01 -0800 Subject: [PATCH 1/2] Add missing import --- AppKit/CPWindow/_CPWindow.j | 1 + 1 file changed, 1 insertion(+) diff --git a/AppKit/CPWindow/_CPWindow.j b/AppKit/CPWindow/_CPWindow.j index 343816c71..0cbec5113 100644 --- a/AppKit/CPWindow/_CPWindow.j +++ b/AppKit/CPWindow/_CPWindow.j @@ -29,6 +29,7 @@ @import "CPPlatformWindow.j" @import "CPResponder.j" @import "CPScreen.j" +@import "CPEvent.j" #if PLATFORM(BROWSER) @import "CPPlatformWindow+DOM.j" #endif From 82bb9a60085a78645aa0b8e3d7de289b533865eb Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Wed, 16 Jan 2013 13:42:46 -0800 Subject: [PATCH 2/2] Remove useless code in simple line CPBox --- AppKit/CPBox.j | 5 ----- 1 file changed, 5 deletions(-) diff --git a/AppKit/CPBox.j b/AppKit/CPBox.j index 60e08ed42..10ba4ac00 100644 --- a/AppKit/CPBox.j +++ b/AppKit/CPBox.j @@ -497,11 +497,6 @@ CPBelowBottom = 6; aRect = CGRectInset(aRect, borderWidth / 2.0, borderWidth / 2.0); - // clip the canvas to the actual content view in order to only display inner shadow - CGContextBeginPath(context); - CGContextAddPath(context, CGPathWithRoundedRectangleInRect(aRect, cornerRadius, cornerRadius, YES, YES, YES, YES)); - CGContextClip(context); - CGContextSetFillColor(context, [self fillColor]); CGContextSetStrokeColor(context, [self borderColor]);