mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Fix print preview. r=rods sr = attinasi bug =117072. Only control backgrounds painting for printing.
This commit is contained in:
parent
38abf18e5f
commit
998f5ccf40
@ -2585,7 +2585,10 @@ nsCSSRendering::PaintBackgroundWithSC(nsIPresContext* aPresContext,
|
||||
// if we are printing, bail for now
|
||||
PRBool canDrawBackground;
|
||||
aPresContext->GetBackgroundDraw(canDrawBackground);
|
||||
if(!canDrawBackground){
|
||||
nsCOMPtr<nsIPrintContext> thePrinterContext = do_QueryInterface(aPresContext);
|
||||
|
||||
// only turn off background printing if we are currently printing.
|
||||
if(!canDrawBackground && thePrinterContext){
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2585,7 +2585,10 @@ nsCSSRendering::PaintBackgroundWithSC(nsIPresContext* aPresContext,
|
||||
// if we are printing, bail for now
|
||||
PRBool canDrawBackground;
|
||||
aPresContext->GetBackgroundDraw(canDrawBackground);
|
||||
if(!canDrawBackground){
|
||||
nsCOMPtr<nsIPrintContext> thePrinterContext = do_QueryInterface(aPresContext);
|
||||
|
||||
// only turn off background printing if we are currently printing.
|
||||
if(!canDrawBackground && thePrinterContext){
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user