Bug 532878 - Call [super viewWillDraw] in viewWillDraw. r=josh
--- a/widget/src/cocoa/nsChildView.mm
+++ b/widget/src/cocoa/nsChildView.mm
@@ -2660,21 +2660,21 @@ static const PRInt32 sShadowInvalidation
CGContextSetLineWidth(aContext, 4.0);
CGContextStrokeRect(aContext,
CGRectMake(aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height));
#endif
}
- (void)viewWillDraw
{
- if (!mGeckoChild)
- return;
-
- nsPaintEvent paintEvent(PR_TRUE, NS_WILL_PAINT, mGeckoChild);
- mGeckoChild->DispatchWindowEvent(paintEvent);
+ if (mGeckoChild) {
+ nsPaintEvent paintEvent(PR_TRUE, NS_WILL_PAINT, mGeckoChild);
+ mGeckoChild->DispatchWindowEvent(paintEvent);
+ }
+ [super viewWillDraw];
}
// Allows us to turn off setting up the clip region
// before each drawRect. We already clip within gecko.
- (BOOL)wantsDefaultClipping
{
return NO;
}