зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
51adfbc8fb
Коммит
60cd251d95
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче