mVisible not being used correctly nneded to check against NS_STYLE_VISIBILITY_VISIBLE

bug 19300,20250 r=kmcclusk a=chofmann
This commit is contained in:
rods%netscape.com 1999-12-14 20:27:20 +00:00
parent 2731e16c98
commit f6731636bf

View File

@ -327,7 +327,7 @@ nsScrollFrame::CreateScrollingView(nsIPresContext* aPresContext)
}
// Initialize the scrolling view
view->Init(viewManager, mRect, parentView, nsnull, display->mVisible ?
view->Init(viewManager, mRect, parentView, nsnull, display->mVisible == NS_STYLE_VISIBILITY_VISIBLE?
nsViewVisibility_kShow : nsViewVisibility_kHide);
// Insert the view into the view hierarchy
@ -821,7 +821,7 @@ nsScrollFrame::Paint(nsIPresContext* aPresContext,
const nsStyleDisplay* display = (const nsStyleDisplay*)
mStyleContext->GetStyleData(eStyleStruct_Display);
if (display->mVisible) {
if (display->mVisible == NS_STYLE_VISIBILITY_VISIBLE) {
// Paint our border only (no background)
const nsStyleSpacing* spacing = (const nsStyleSpacing*)
mStyleContext->GetStyleData(eStyleStruct_Spacing);