Bug 1463605 - Check mMayHaveOpacityAnimation in nsFrame::HasOpacityInternal(). r=birtles

If the mMayHaveOpacityAnimation is false there, we don't need to check opacity
animations at all.

MozReview-Commit-ID: LTYPPXzF8V6

--HG--
extra : rebase_source : ee2c90e04003140944fb4cc255aa3c6f1c07f0b0
This commit is contained in:
Hiroyuki Ikezoe 2018-05-23 18:15:12 +09:00
parent 452c7f0e9a
commit c4fb9d14c7

View File

@ -1553,6 +1553,10 @@ nsIFrame::HasOpacityInternal(float aThreshold,
return true;
}
if (!mMayHaveOpacityAnimation) {
return false;
}
EffectSet* effects =
aEffectSet ? aEffectSet : EffectSet::GetEffectSet(this);
if (!effects) {