зеркало из https://github.com/mozilla/pjs.git
[OS/2] Bug 498230: fix build breakage in nsWindow & nsFrameWindow, r=pweilbacher
This commit is contained in:
Родитель
86a9952ec9
Коммит
796c106899
|
@ -225,7 +225,7 @@ void nsFrameWindow::RealDoCreate( HWND hwndP, nsWindow *aParent,
|
|||
|
||||
rc = CallCreateInstance(kDeviceContextCID, &mContext);
|
||||
if( NS_SUCCEEDED(rc))
|
||||
mContext->Init( (nsNativeWidget) mWnd);
|
||||
mContext->Init(this);
|
||||
#ifdef DEBUG
|
||||
else
|
||||
printf( "Couldn't find DC instance for nsWindow\n");
|
||||
|
@ -331,7 +331,7 @@ MRESULT EXPENTRY fnwpFrame( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
|
|||
msg == WM_BUTTON1DOWN || msg == WM_BUTTON2DOWN || msg == WM_BUTTON3DOWN) {
|
||||
// Rollup if the event is outside the popup
|
||||
if (PR_FALSE == nsWindow::EventIsInsideWindow((nsWindow*)gRollupWidget)) {
|
||||
gRollupListener->Rollup(nsnull);
|
||||
gRollupListener->Rollup(PR_UINT32_MAX, nsnull);
|
||||
|
||||
// if we are supposed to be consuming events and it is
|
||||
// a Mouse Button down, let it go through
|
||||
|
|
|
@ -723,7 +723,7 @@ MRESULT EXPENTRY fnwpNSWindow( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
|
|||
if( !mp2 &&
|
||||
!bothFromSameWindow( ((nsWindow*)gRollupWidget)->GetMainWindow(),
|
||||
(HWND)mp1) ) {
|
||||
gRollupListener->Rollup(nsnull);
|
||||
gRollupListener->Rollup(PR_UINT32_MAX, nsnull);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -949,7 +949,7 @@ void nsWindow::RealDoCreate( HWND hwndP,
|
|||
|
||||
rc = CallCreateInstance(kDeviceContextCID, &mContext);
|
||||
if( NS_SUCCEEDED(rc))
|
||||
mContext->Init( (nsNativeWidget) mWnd);
|
||||
mContext->Init(this);
|
||||
#ifdef DEBUG
|
||||
else
|
||||
printf( "Couldn't find DC instance for nsWindow\n");
|
||||
|
@ -1076,7 +1076,7 @@ NS_METHOD nsWindow::Destroy()
|
|||
// the rollup widget, rollup and turn off capture.
|
||||
if (this == gRollupWidget) {
|
||||
if (gRollupListener) {
|
||||
gRollupListener->Rollup(nsnull);
|
||||
gRollupListener->Rollup(PR_UINT32_MAX, nsnull);
|
||||
}
|
||||
CaptureRollupEvents(nsnull, PR_FALSE, PR_TRUE);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче