Change GetRectVisibility so that floating views (such as combobox dropdowns and menupopups) are always considered visible, since they are visible where other views would be clipped. b=310604 r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2005-10-15 07:10:08 +00:00
Родитель 51adfbc8fb
Коммит 60cd251d95
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -4294,6 +4294,13 @@ NS_IMETHODIMP nsViewManager::GetRectVisibility(nsIView *aView,
return NS_OK;
}
// nsViewManager::InsertChild ensures that descendants of floating views
// are also marked floating.
if (view->GetFloating()) {
*aRectVisibility = nsRectVisibility_kVisible;
return NS_OK;
}
// Calculate the absolute coordinates for the visible rectangle
nsRect visibleRect;
if (GetVisibleRect(visibleRect) == NS_ERROR_FAILURE) {