Changed SetScrolledView() to mark the clip view as having transparent content

if the scrolled view has transparent content
This commit is contained in:
troy%netscape.com 1998-10-25 04:15:59 +00:00
Родитель 0cadccb4e3
Коммит e065f28fe7
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -1384,6 +1384,12 @@ void nsScrollingView :: AdjustChildWidgets(nsScrollingView *aScrolling, nsIView
NS_IMETHODIMP nsScrollingView :: SetScrolledView(nsIView *aScrolledView)
{
PRBool isTransparent;
// If the scrolled view has transparent content areas then the clip view also
// needs to be marked as having a transparent content area
aScrolledView->HasTransparency(isTransparent);
mViewManager->SetViewContentTransparency(mClipView, isTransparent);
return mViewManager->InsertChild(mClipView, aScrolledView, 0);
}