mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 869091: Fix a couple of build warnings in Cocoa widgets. r=smichaud
This commit is contained in:
parent
4a110f4861
commit
b4dc5afa74
@ -707,7 +707,7 @@ nsChildView::GetCGContextForTitlebarDrawing(NSSize aSize)
|
||||
void
|
||||
nsChildView::WillPaint()
|
||||
{
|
||||
[mView maybeDrawInTitlebar];
|
||||
[(ChildView*)mView maybeDrawInTitlebar];
|
||||
}
|
||||
|
||||
void
|
||||
@ -2681,11 +2681,12 @@ NSEvent* gLastDragMouseDownEvent = nil;
|
||||
if (!mGeckoChild) {
|
||||
return;
|
||||
}
|
||||
ToolbarWindow* win = [self window];
|
||||
NSWindow* win = [self window];
|
||||
if (!win || ![win isKindOfClass:[ToolbarWindow class]]) {
|
||||
return;
|
||||
}
|
||||
if (![win drawsContentsIntoWindowFrame]) {
|
||||
ToolbarWindow* toolbarWin = (ToolbarWindow*)win;
|
||||
if (![toolbarWin drawsContentsIntoWindowFrame]) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -2695,8 +2696,8 @@ NSEvent* gLastDragMouseDownEvent = nil;
|
||||
// "unified toolbar". Our ChildView ('self') is the same size as the frame
|
||||
// view and covers it. Our ChildView has a flipped coordinate system, but
|
||||
// the frame view doesn't.
|
||||
NSRect titlebarRect = [win titlebarRect];
|
||||
NSView* frameView = [[win contentView] superview];
|
||||
NSRect titlebarRect = [toolbarWin titlebarRect];
|
||||
NSView* frameView = [[toolbarWin contentView] superview];
|
||||
NSRect dirtyRect = NSIntersectionRect([frameView _dirtyRect], titlebarRect);
|
||||
// Flip dirtyRect's coordinate system.
|
||||
dirtyRect.origin.y = [frameView bounds].size.height -
|
||||
|
Loading…
Reference in New Issue
Block a user