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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user