mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Bug 1287122 - Make sure we build nsDisplayOpacity if we need it, since useOpacity already takes svg effects into account. r=dbaron
--HG-- extra : rebase_source : 7a9952fe0ed3a579083bd324002d44ab735d0735
This commit is contained in:
parent
c9c66a60a7
commit
bf8a0ba830
@ -2445,10 +2445,11 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
|
||||
aBuilder->ExitSVGEffectsContents();
|
||||
resultList.AppendToTop(&hoistedScrollInfoItemsStorage);
|
||||
}
|
||||
/* Else, if the list is non-empty and there is CSS group opacity without SVG
|
||||
|
||||
/* If the list is non-empty and there is CSS group opacity without SVG
|
||||
* effects, wrap it up in an opacity item.
|
||||
*/
|
||||
else if (useOpacity && !resultList.IsEmpty()) {
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user