Bug 1224251 patch 3 - Return nsChangeHint_UpdateUsesOpacity when opacity changes between 1 and non-1. r=xidorn

--HG--
extra : commitid : 9ILji8aGpnB
This commit is contained in:
L. David Baron 2015-11-29 23:15:01 -08:00
parent 7dcb2bf7c7
commit 2dd629b899
2 changed files with 4 additions and 0 deletions

View File

@ -2950,6 +2950,9 @@ nsChangeHint nsStyleDisplay::CalcDifference(const nsStyleDisplay& aOther) const
NS_UpdateHint(hint, nsChangeHint_RepaintFrame);
} else {
NS_UpdateHint(hint, nsChangeHint_UpdateOpacityLayer);
if ((mOpacity == 1.0f) != (aOther.mOpacity == 1.0f)) {
NS_UpdateHint(hint, nsChangeHint_UpdateUsesOpacity);
}
}
}

View File

@ -2201,6 +2201,7 @@ struct nsStyleDisplay {
// All the parts of FRAMECHANGE are present in CalcDifference.
return nsChangeHint(NS_STYLE_HINT_FRAMECHANGE |
nsChangeHint_UpdateOpacityLayer |
nsChangeHint_UpdateUsesOpacity |
nsChangeHint_UpdateTransformLayer |
nsChangeHint_UpdateOverflow |
nsChangeHint_UpdatePostTransformOverflow |