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:
Hiroyuki Ikezoe 2017-09-17 07:28:12 +09:00
Родитель 849e872d8a
Коммит 515e0000d1
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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;
}