mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
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:
parent
2731e16c98
commit
f6731636bf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user