зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a59485a7ad
Коммит
75b7087995
|
@ -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
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче