From c4fb9d14c7dd67f0d6c5d658ccecf95d1e284d1b Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Wed, 23 May 2018 18:15:12 +0900 Subject: [PATCH] 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 --- layout/generic/nsFrame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 9705a848e9d5..863924ad6a0d 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -1553,6 +1553,10 @@ nsIFrame::HasOpacityInternal(float aThreshold, return true; } + if (!mMayHaveOpacityAnimation) { + return false; + } + EffectSet* effects = aEffectSet ? aEffectSet : EffectSet::GetEffectSet(this); if (!effects) {