Bug 1463605 - Set mMayHaveOpacityAnimation and mMayHaveTransformAnimation flag to continuation or IB split sibling frames too. r=birtles

Without this fix layout/reftests/css-animations/ib-split-sibling-opacity.html
would have failed if the next change in this patch series is applied.

MozReview-Commit-ID: CFNXePkXuOs

--HG--
extra : rebase_source : 48df6bf107e1a14dd2b2ae7c23d38d29581aabcb
This commit is contained in:
Hiroyuki Ikezoe 2018-05-23 18:15:12 +09:00
Родитель 7c246fac68
Коммит 452c7f0e9a
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1785,14 +1785,16 @@ KeyframeEffect::UpdateEffectSet(EffectSet* aEffectSet) const
nsIFrame* frame = GetStyleFrame();
if (HasAnimationOfProperty(eCSSProperty_opacity)) {
effectSet->SetMayHaveOpacityAnimation();
if (frame) {
while (frame) {
frame->SetMayHaveOpacityAnimation();
frame = nsLayoutUtils::GetNextContinuationOrIBSplitSibling(frame);
}
}
if (HasAnimationOfProperty(eCSSProperty_transform)) {
effectSet->SetMayHaveTransformAnimation();
if (frame) {
while (frame) {
frame->SetMayHaveTransformAnimation();
frame = nsLayoutUtils::GetNextContinuationOrIBSplitSibling(frame);
}
}
}