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);