Bug 384576 - adding -moz-border-radius to an element causes the background to be drawn without dpi scaling

r=sharparrow1, sr=roc
This commit is contained in:
db48x@yahoo.com 2007-07-11 21:04:33 -07:00
parent 45c44493ab
commit 6b4d9b9fb0
4 changed files with 33 additions and 1 deletions

View File

@ -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) {

View File

@ -0,0 +1,15 @@
<html>
<style type="text/css">
div.test {
background-color: red;
margin: 5em;
}
div > div {
background-color: green;
}
</style>
<body>
<div class="test"><div>&nbsp;</div></div>
</body>
</html>

View File

@ -0,0 +1,16 @@
<html>
<style type="text/css">
div.test {
background-color: red;
margin: 5em;
-moz-border-radius: 10px;
}
div > div {
background-color: green;
}
</style>
<body>
<div class="test"><div>&nbsp;</div></div>
</body>
</html>

View File

@ -275,3 +275,4 @@ random-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 379316-2.html 379316-2-ref.html # bug
== 381507-1.html 381507-1-ref.html
== 382600-1.html 382600-1-ref.html
== 383551-1.html 383551-1-ref.html
== 384576-1.html 384576-1-ref.html