mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 747718 - Disable ColorLayer optimizations when we have rounded-rect clipping. r=roc
This commit is contained in:
parent
3fa63af2c3
commit
b60d95b9d8
@ -1216,7 +1216,7 @@ ContainerState::ThebesLayerData::Accumulate(ContainerState* aState,
|
||||
isUniform = false;
|
||||
}
|
||||
}
|
||||
if (isUniform) {
|
||||
if (isUniform && aClip.mRoundedClipRects.IsEmpty()) {
|
||||
if (mVisibleRegion.IsEmpty()) {
|
||||
// This color is all we have
|
||||
mSolidColor = uniformColor;
|
||||
|
10
layout/reftests/border-radius/color-layer-1-ref.html
Normal file
10
layout/reftests/border-radius/color-layer-1-ref.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body style="overflow:hidden">
|
||||
<div style="border-radius:100px; width:800px; height:1000px; position:absolute; left:0px; top:0px; overflow:hidden">
|
||||
<div style="background:blue; width:100%; height:100%;"></div>
|
||||
<div style="position:absolute; top:100px; left:100px; width:100px; height:100px; border:5px solid white"></div>
|
||||
<div style="position:absolute; top:100px; left:100px; width:100px; height:100px; border:5px solid blue"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
8
layout/reftests/border-radius/color-layer-1a.html
Normal file
8
layout/reftests/border-radius/color-layer-1a.html
Normal file
@ -0,0 +1,8 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body style="overflow:hidden">
|
||||
<div style="border-radius:100px; width:800px; height:1000px; position:absolute; left:0px; top:0px; overflow:hidden">
|
||||
<div style="background:blue; width:100%; height:100%;"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -82,3 +82,5 @@ random-if(winWidget) HTTP(..) == corner-joins-2.xhtml corner-joins-2-ref.xhtml
|
||||
|
||||
# Test for antialiasing gaps between background and border
|
||||
fails-if(winWidget) == curved-border-background-nogap.html curved-border-background-nogap-ref.html
|
||||
|
||||
== color-layer-1a.html color-layer-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user