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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user