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 a=asa

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@182306 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2005-10-15 07:54:38 +00:00
parent 5214b88d84
commit 9aaf107cb5

View File

@@ -4310,6 +4310,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) {