зеркало из https://github.com/mozilla/gecko-dev.git
Bug 885405 - Don't override wantsDefaultClipping, use default clipping in -[ChildView drawRect:]. r=mattwoodrow
This commit is contained in:
Родитель
4b350e03a5
Коммит
468a4a5217
|
@ -3036,12 +3036,6 @@ NSEvent* gLastDragMouseDownEvent = nil;
|
|||
|
||||
PROFILER_LABEL("widget", "ChildView::drawRect");
|
||||
|
||||
// Clip to the dirty region.
|
||||
const NSRect *rects;
|
||||
NSInteger count;
|
||||
[[NSView focusView] getRectsBeingDrawn:&rects count:&count];
|
||||
CGContextClipToRects(aContext, (CGRect*)rects, count);
|
||||
|
||||
// The CGContext that drawRect supplies us with comes with a transform that
|
||||
// scales one user space unit to one Cocoa point, which can consist of
|
||||
// multiple dev pixels. But Gecko expects its supplied context to be scaled
|
||||
|
@ -3361,13 +3355,6 @@ NSEvent* gLastDragMouseDownEvent = nil;
|
|||
[super viewWillDraw];
|
||||
}
|
||||
|
||||
// Allows us to turn off setting up the clip region
|
||||
// before each drawRect. We already clip within gecko.
|
||||
- (BOOL)wantsDefaultClipping
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
#if USE_CLICK_HOLD_CONTEXTMENU
|
||||
//
|
||||
// -clickHoldCallback:
|
||||
|
|
Загрузка…
Ссылка в новой задаче