mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Make sure all caller have to pass in the "ignore 'print backgrounds'
preference" boolean. Make block/inline _not_ ignore that pref. Bug 191574, r+sr=dbaron, a=asa
This commit is contained in:
parent
c26d57eeef
commit
0757c0a5b1
@ -142,7 +142,7 @@ public:
|
||||
const nsStylePadding& aPadding,
|
||||
nscoord aDX,
|
||||
nscoord aDY,
|
||||
PRBool aUsePrintSettings=PR_FALSE);
|
||||
PRBool aUsePrintSettings);
|
||||
|
||||
/**
|
||||
* Same as |PaintBackground|, except using the provided style context
|
||||
|
@ -184,7 +184,7 @@ nsButtonFrameRenderer::PaintBorderAndBackground(nsIPresContext* aPresContext,
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, mFrame,
|
||||
aDirtyRect, buttonRect, *border, *padding,
|
||||
0, 0);
|
||||
0, 0, PR_FALSE);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame,
|
||||
aDirtyRect, buttonRect, *border, context, 0);
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ nsFieldSetFrame::Paint(nsIPresContext* aPresContext,
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *borderStyle,
|
||||
*paddingStyle, 0, 0);
|
||||
*paddingStyle, 0, 0, PR_TRUE);
|
||||
|
||||
if (mLegendFrame) {
|
||||
|
||||
|
@ -259,7 +259,7 @@ nsGfxCheckboxControlFrame::Paint(nsIPresContext* aPresContext,
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *myBorder, *myPadding,
|
||||
0, 0);
|
||||
0, 0, PR_FALSE);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *myBorder, mCheckButtonFaceStyle, 0);
|
||||
doDefaultPainting = PR_FALSE;
|
||||
|
@ -974,7 +974,7 @@ nsFrame::PaintSelf(nsIPresContext* aPresContext,
|
||||
nsRect rect(0, 0, mRect.width, mRect.height);
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *border, *padding,
|
||||
0, 0);
|
||||
0, 0, PR_TRUE);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *border, mStyleContext,
|
||||
aSkipSides);
|
||||
|
@ -974,7 +974,7 @@ nsFrame::PaintSelf(nsIPresContext* aPresContext,
|
||||
nsRect rect(0, 0, mRect.width, mRect.height);
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *border, *padding,
|
||||
0, 0);
|
||||
0, 0, PR_TRUE);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *border, mStyleContext,
|
||||
aSkipSides);
|
||||
|
@ -198,7 +198,7 @@ HRuleFrame::Paint(nsIPresContext* aPresContext,
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext,
|
||||
this,aDirtyRect, rect,
|
||||
*border, *padding, 0, 0);
|
||||
*border, *padding, 0, 0, PR_FALSE);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext,
|
||||
this,aDirtyRect, rect, *border,
|
||||
mStyleContext, 0);
|
||||
|
@ -184,7 +184,7 @@ nsButtonFrameRenderer::PaintBorderAndBackground(nsIPresContext* aPresContext,
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, mFrame,
|
||||
aDirtyRect, buttonRect, *border, *padding,
|
||||
0, 0);
|
||||
0, 0, PR_FALSE);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, mFrame,
|
||||
aDirtyRect, buttonRect, *border, context, 0);
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ nsFieldSetFrame::Paint(nsIPresContext* aPresContext,
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *borderStyle,
|
||||
*paddingStyle, 0, 0);
|
||||
*paddingStyle, 0, 0, PR_TRUE);
|
||||
|
||||
if (mLegendFrame) {
|
||||
|
||||
|
@ -259,7 +259,7 @@ nsGfxCheckboxControlFrame::Paint(nsIPresContext* aPresContext,
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *myBorder, *myPadding,
|
||||
0, 0);
|
||||
0, 0, PR_FALSE);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *myBorder, mCheckButtonFaceStyle, 0);
|
||||
doDefaultPainting = PR_FALSE;
|
||||
|
@ -142,7 +142,7 @@ public:
|
||||
const nsStylePadding& aPadding,
|
||||
nscoord aDX,
|
||||
nscoord aDY,
|
||||
PRBool aUsePrintSettings=PR_FALSE);
|
||||
PRBool aUsePrintSettings);
|
||||
|
||||
/**
|
||||
* Same as |PaintBackground|, except using the provided style context
|
||||
|
@ -164,7 +164,7 @@ nsGroupBoxFrame::Paint(nsIPresContext* aPresContext,
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *borderStyleData,
|
||||
*paddingStyleData, 0, 0);
|
||||
*paddingStyleData, 0, 0, PR_FALSE);
|
||||
|
||||
if (groupBox) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user