mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 23:15:38 +00:00
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:
parent
7dcb2bf7c7
commit
2dd629b899
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user