diff --git a/layout/svg/nsSVGUtils.cpp b/layout/svg/nsSVGUtils.cpp index 5c9d3adf1188..6696993c25b3 100644 --- a/layout/svg/nsSVGUtils.cpp +++ b/layout/svg/nsSVGUtils.cpp @@ -1309,6 +1309,11 @@ nsSVGUtils::CanOptimizeOpacity(nsIFrame *aFrame) if (style->HasMarker()) { return false; } + + if (nsLayoutUtils::HasAnimationOfProperty(aFrame, eCSSProperty_opacity)) { + return false; + } + if (!style->HasFill() || !HasStroke(aFrame)) { return true; }