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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user