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:
masayuki%d-toybox.com 2006-02-03 09:45:28 +00:00
parent e9f2e44e52
commit 210de117fb

View File

@ -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);