From 3ce8188eaf4c976a5ac606eebf677dce2cf8dad7 Mon Sep 17 00:00:00 2001 From: "masayuki%d-toybox.com" Date: Tue, 21 Feb 2006 14:48:27 +0000 Subject: [PATCH] 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 --- mozilla/layout/base/nsCSSRendering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/layout/base/nsCSSRendering.cpp b/mozilla/layout/base/nsCSSRendering.cpp index c75b12962ec..3564c29be19 100644 --- a/mozilla/layout/base/nsCSSRendering.cpp +++ b/mozilla/layout/base/nsCSSRendering.cpp @@ -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);