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+branch181=roc

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@190678 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
masayuki%d-toybox.com
2006-02-21 14:48:27 +00:00
parent ed80190c7f
commit 3ce8188eaf

View File

@@ -2879,7 +2879,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);