Minor cleanup

This commit is contained in:
troy%netscape.com 1998-12-18 17:33:23 +00:00
parent 389b69a87e
commit b550507587

View File

@ -458,9 +458,10 @@ nsScrollFrame::Paint(nsIPresContext& aPresContext,
{
if (eFramePaintLayer_Underlay == aWhichLayer) {
// Only paint the border and background if we're visible
const nsStyleDisplay* disp = (const nsStyleDisplay*)
const nsStyleDisplay* display = (const nsStyleDisplay*)
mStyleContext->GetStyleData(eStyleStruct_Display);
if (disp->mVisible) {
if (display->mVisible) {
// Paint our border only (no background)
const nsStyleSpacing* spacing = (const nsStyleSpacing*)
mStyleContext->GetStyleData(eStyleStruct_Spacing);