Back out an old change by dcone which attempted to fix a redraw bug that has since been fixed a different way. r=beard.

This commit is contained in:
sfraser%netscape.com 2000-02-04 01:51:49 +00:00
Родитель a59485a7ad
Коммит 75b7087995
1 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -504,23 +504,8 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool bState)
{
if ( mAcceptsActivation )
{
Point topleft,botright;
::ShowWindow(mWindowPtr);
::SelectWindow(mWindowPtr);
RgnHandle contentRgn = NewRgn();
::GetWindowRegion ( mWindowPtr, kWindowContentRgn, contentRgn );
Rect windowrect;
::GetRegionBounds(contentRgn, &windowrect);
// on some windows (with pop ups) the ::ShowWindow will not invalidate the parent
// properly
topleft = topLeft(windowrect);
GlobalToLocal(&topleft);
botright = botRight(windowrect);
GlobalToLocal(&botright);
SetRect(&windowrect,topleft.h,topleft.v,botright.h,botright.v);
::InvalRect(&windowrect);
}
else
{