don't call UpdateView if visibility hasn't changed (bugs 14782, 14925). rev beard/ramiro, appr leaf.

This commit is contained in:
pinkerton%netscape.com 1999-09-28 21:23:32 +00:00
Родитель 4a9b682a87
Коммит 1de56fc7bf
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -1921,8 +1921,12 @@ NS_IMETHODIMP nsViewManager :: SetViewClip(nsIView *aView, nsRect *aRect)
NS_IMETHODIMP nsViewManager :: SetViewVisibility(nsIView *aView, nsViewVisibility aVisible)
{
aView->SetVisibility(aVisible);
UpdateView(aView, nsnull, NS_VMREFRESH_NO_SYNC);
nsViewVisibility isNowVisible;
aView->GetVisibility(isNowVisible);
if ( aVisible != isNowVisible ) {
aView->SetVisibility(aVisible);
UpdateView(aView, nsnull, NS_VMREFRESH_NO_SYNC);
}
return NS_OK;
}