[OS/2] Bug 498230: fix build breakage in nsWindow & nsFrameWindow, r=pweilbacher

This commit is contained in:
Rich Walsh 2009-06-15 11:06:31 +02:00
parent 42ec618ee6
commit 22942d32ba
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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);
}