зеркало из https://github.com/mozilla/gecko-dev.git
don't call UpdateView if visibility hasn't changed (bugs 14782, 14925). rev beard/ramiro, appr leaf.
This commit is contained in:
Родитель
4a9b682a87
Коммит
1de56fc7bf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче