From b55050758753152a09a8bfc4a28724b022a9604a Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 18 Dec 1998 17:33:23 +0000 Subject: [PATCH] Minor cleanup --- layout/html/base/src/nsScrollFrame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layout/html/base/src/nsScrollFrame.cpp b/layout/html/base/src/nsScrollFrame.cpp index 943b13d2d618..5627294dbf2b 100644 --- a/layout/html/base/src/nsScrollFrame.cpp +++ b/layout/html/base/src/nsScrollFrame.cpp @@ -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);