Closed Bug 1439279 Opened 7 years ago Closed 7 years ago

Drop needless requestAnimationFrame in reftests for animations

Categories

(Core :: DOM: Animation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(3 files)

There are lots of unnecessary requestAnimationFrame in reftests for animations. I am suspecting it's one of the reasons that some reftests fail on WebRender. That's because if there is an unnecessary requestAnimationFrame, there are cases that we wait for a MozAfterPaint for the paint that no invalidation changes happened. (e.g. both from and to keyframes are the same value). We should drop requestAnimationFrame to get a MozAfterPaint event for the case where invalidation changes happen (i.e. right after style changes happen).
Brian, any chance of reviewing?
Flags: needinfo?(bbirtles)
Comment on attachment 8952042 [details] Bug 1439279 - Drop needless requestAnimationFrame that waits for applying new transition. https://reviewboard.mozilla.org/r/221264/#review227114
Attachment #8952042 - Flags: review+
Comment on attachment 8952043 [details] Bug 1439279 - Append animating element after animation gets ready. https://reviewboard.mozilla.org/r/221266/#review227116
Attachment #8952043 - Flags: review+
Comment on attachment 8952044 [details] Bug 1439279 - Drop needless requestAnimationFrame in reftest for web-animation. https://reviewboard.mozilla.org/r/221268/#review227118
Attachment #8952044 - Flags: review+
Flags: needinfo?(bbirtles)
Thank you for the quick reviews!
Pushed by hikezoe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b37d7ac91008 Drop needless requestAnimationFrame that waits for applying new transition. r=birtles https://hg.mozilla.org/integration/autoland/rev/04c3f7e2f6fe Append animating element after animation gets ready. r=birtles https://hg.mozilla.org/integration/autoland/rev/fc7f1c7fb157 Drop needless requestAnimationFrame in reftest for web-animation. r=birtles
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: