Bug 1332588 - Set NS_FRAME_MAY_BE_TRANSFORMED bit in nsIFrame::SetMayHaveTransformAnimation. r=boris

Without this change stacking-context-transform-changing-keyframe.html will fail
with the next change, since we will incorrectly remove
nsChangeHint_UpdateTransformLayer from the target nsIFrame if the frame doesn't
have NS_FRAME_MAY_BE_TRANSFORMED bit.

Differential Revision: https://phabricator.services.mozilla.com/D75049
This commit is contained in:
Hiroyuki Ikezoe 2020-05-13 21:39:59 +00:00
Родитель b38fe47182
Коммит 0d80395dfa
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -4415,7 +4415,10 @@ class nsIFrame : public nsQueryFrame {
}
bool MayHaveTransformAnimation() const { return mMayHaveTransformAnimation; }
void SetMayHaveTransformAnimation() { mMayHaveTransformAnimation = true; }
void SetMayHaveTransformAnimation() {
AddStateBits(NS_FRAME_MAY_BE_TRANSFORMED);
mMayHaveTransformAnimation = true;
}
bool MayHaveOpacityAnimation() const { return mMayHaveOpacityAnimation; }
void SetMayHaveOpacityAnimation() { mMayHaveOpacityAnimation = true; }