mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-29 11:57:55 +00:00
Minor cleanup
This commit is contained in:
parent
389b69a87e
commit
b550507587
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user