From 9aaf107cb590f5e79d228893208e082be406895b Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Sat, 15 Oct 2005 07:54:38 +0000 Subject: [PATCH] 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 --- mozilla/view/src/nsViewManager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/view/src/nsViewManager.cpp b/mozilla/view/src/nsViewManager.cpp index 6592f724849..7d869affe33 100644 --- a/mozilla/view/src/nsViewManager.cpp +++ b/mozilla/view/src/nsViewManager.cpp @@ -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) {