mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +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) {
|
if (eFramePaintLayer_Underlay == aWhichLayer) {
|
||||||
// Only paint the border and background if we're visible
|
// Only paint the border and background if we're visible
|
||||||
const nsStyleDisplay* disp = (const nsStyleDisplay*)
|
const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||||
if (disp->mVisible) {
|
|
||||||
|
if (display->mVisible) {
|
||||||
// Paint our border only (no background)
|
// Paint our border only (no background)
|
||||||
const nsStyleSpacing* spacing = (const nsStyleSpacing*)
|
const nsStyleSpacing* spacing = (const nsStyleSpacing*)
|
||||||
mStyleContext->GetStyleData(eStyleStruct_Spacing);
|
mStyleContext->GetStyleData(eStyleStruct_Spacing);
|
||||||
|
Loading…
Reference in New Issue
Block a user