зеркало из https://github.com/mozilla/pjs.git
don't call UpdateView if visibility hasn't changed (bugs 14782, 14925). rev beard/ramiro, appr leaf.
This commit is contained in:
Родитель
542000257a
Коммит
59dd7211e2
|
@ -1921,8 +1921,12 @@ NS_IMETHODIMP nsViewManager :: SetViewClip(nsIView *aView, nsRect *aRect)
|
|||
|
||||
NS_IMETHODIMP nsViewManager :: SetViewVisibility(nsIView *aView, nsViewVisibility aVisible)
|
||||
{
|
||||
nsViewVisibility isNowVisible;
|
||||
aView->GetVisibility(isNowVisible);
|
||||
if ( aVisible != isNowVisible ) {
|
||||
aView->SetVisibility(aVisible);
|
||||
UpdateView(aView, nsnull, NS_VMREFRESH_NO_SYNC);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче