Backed out changeset f5a5f7463224 (bug 1119117)

This commit is contained in:
Ms2ger 2015-01-10 20:23:06 +01:00
parent bb03a1718c
commit a161fccb98
5 changed files with 1 additions and 86 deletions

View File

@ -2020,7 +2020,7 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
DisplayListClipState::AutoSaveRestore clipState(aBuilder); DisplayListClipState::AutoSaveRestore clipState(aBuilder);
if (isTransformed || useBlendMode || usingSVGEffects || useStickyPosition) { if (isTransformed || useOpacity || useBlendMode || usingSVGEffects || useStickyPosition) {
// We don't need to pass ancestor clipping down to our children; // We don't need to pass ancestor clipping down to our children;
// everything goes inside a display item's child list, and the display // everything goes inside a display item's child list, and the display
// item itself will be clipped. // item itself will be clipped.
@ -2136,11 +2136,6 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
* effects, wrap it up in an opacity item. * effects, wrap it up in an opacity item.
*/ */
else if (useOpacity && !resultList.IsEmpty()) { else if (useOpacity && !resultList.IsEmpty()) {
// Don't clip nsDisplayOpacity items. We clip their descendants instead.
// The clip we would set on an element with opacity would clip
// all descendant content, but some should not be clipped.
DisplayListClipState::AutoSaveRestore opacityClipState(aBuilder);
opacityClipState.Clear();
resultList.AppendNewToTop( resultList.AppendNewToTop(
new (aBuilder) nsDisplayOpacity(aBuilder, this, &resultList)); new (aBuilder) nsDisplayOpacity(aBuilder, this, &resultList));
} }

View File

@ -1,19 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<style>
#image {
position:fixed;
opacity:0.5;
left:0;
top:0;
width:100%;
height:100%;
background:blue;
}
</style>
</head>
<body>
<div id="image"></div>
</body>
</html>

View File

@ -1,29 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<style>
#d1 {
overflow:hidden;
height:0;
}
#d2 {
opacity:0.5;
}
#d3 {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
background:blue;
}
</style>
</head>
<body>
<div id="d1">
<div id="d2">
<div id="d3"></div>
</div>
</div>
</body>
</html>

View File

@ -1,30 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<style>
#d1 {
overflow:hidden;
height:0;
}
#d2 {
opacity:0.5;
}
#image {
position:fixed;
left:0;
top:0;
width:100%;
height:100%;
background:blue;
}
</style>
</head>
<body>
<div id="d1">
<div id="d2" class="active">
<div id="image"></div>
<h2>ABCDEFG</h2>
</div>
</div>
</body>
</html>

View File

@ -1854,5 +1854,3 @@ fuzzy-if(winWidget&&!layersGPUAccelerated,1,31) fuzzy-if(B2G,128,75) == 1081185-
== 1105137-1.html 1105137-1-ref.html == 1105137-1.html 1105137-1-ref.html
fuzzy-if(d2d,36,304) HTTP(..) == 1116480-1-fakeitalic-overflow.html 1116480-1-fakeitalic-overflow-ref.html fuzzy-if(d2d,36,304) HTTP(..) == 1116480-1-fakeitalic-overflow.html 1116480-1-fakeitalic-overflow-ref.html
== 1111753-1.html about:blank == 1111753-1.html about:blank
== 1119117-1a.html 1119117-1-ref.html
== 1119117-1b.html 1119117-1-ref.html