mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 161179 background image (no-repeat, repeat-x and repeat-y) size reduced when printing page (print preview is ok, scaling only happens in the repeat direction) r+sr=roc
This commit is contained in:
parent
e9f2e44e52
commit
210de117fb
@ -2923,7 +2923,7 @@ nsCSSRendering::PaintBackgroundWithSC(nsPresContext* aPresContext,
|
||||
image->GetHeight(&imageSize.height);
|
||||
|
||||
float p2t;
|
||||
p2t = aPresContext->PixelsToTwips();
|
||||
p2t = aPresContext->ScaledPixelsToTwips();
|
||||
imageSize.width = NSIntPixelsToTwips(imageSize.width, p2t);
|
||||
imageSize.height = NSIntPixelsToTwips(imageSize.height, p2t);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user