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