diff --git a/layout/base/nsCSSRendering.cpp b/layout/base/nsCSSRendering.cpp index fb374dfbf6b..05d0782fb19 100644 --- a/layout/base/nsCSSRendering.cpp +++ b/layout/base/nsCSSRendering.cpp @@ -3894,7 +3894,7 @@ nsCSSRendering::PaintRoundedBackground(nsPresContext* aPresContext, aRenderingContext.GetNativeGraphicData(nsIRenderingContext::NATIVE_THEBES_CONTEXT); // needed for our border thickness - nscoord appUnitsPerPixel = nsPresContext::AppUnitsPerCSSPixel(); + nscoord appUnitsPerPixel = aPresContext->AppUnitsPerDevPixel(); nscolor color = aColor.mBackgroundColor; if (!aCanPaintNonWhite) { diff --git a/layout/reftests/bugs/384576-1-ref.html b/layout/reftests/bugs/384576-1-ref.html new file mode 100644 index 00000000000..58a84349004 --- /dev/null +++ b/layout/reftests/bugs/384576-1-ref.html @@ -0,0 +1,15 @@ + + +
+