mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1518802 - Treat background-color animation as non-opaque even if the alpha channel is 1.0 at the moment. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D24656 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
4344ae1074
commit
01e23b1896
@ -4838,7 +4838,12 @@ nsRegion nsDisplayBackgroundColor::GetOpaqueRegion(
|
||||
nsDisplayListBuilder* aBuilder, bool* aSnap) const {
|
||||
*aSnap = false;
|
||||
|
||||
if (mColor.a != 1) {
|
||||
if (mColor.a != 1 ||
|
||||
// Even if the current alpha channel is 1, we treat this item as if it's
|
||||
// non-opaque if there is a background-color animation since the animation
|
||||
// might change the alpha channel.
|
||||
EffectCompositor::HasAnimationsForCompositor(
|
||||
mFrame, DisplayItemType::TYPE_BACKGROUND_COLOR)) {
|
||||
return nsRegion();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user