mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1400035 - Check the frame has opacity animations in nsSVGUtils::CanOptimizeOpacity(). r=jwatt
If the frame has opacity animation, we can't optimize it at all. MozReview-Commit-ID: JQYiPvSaxEs --HG-- extra : rebase_source : b344b56793ba93ac2f763a6cc7f16edcf06e8f7a
This commit is contained in:
parent
849e872d8a
commit
515e0000d1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user