mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
2aa4371c12
commit
b3cd97da9b
@ -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) {
|
||||
|
15
layout/reftests/bugs/384576-1-ref.html
Normal file
15
layout/reftests/bugs/384576-1-ref.html
Normal 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> </div></div>
|
||||
</body>
|
||||
</html>
|
16
layout/reftests/bugs/384576-1.html
Normal file
16
layout/reftests/bugs/384576-1.html
Normal 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> </div></div>
|
||||
</body>
|
||||
</html>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user