Bug 1896762 - Make animation timing match the spec. r=smaug,firefox-animation-reviewers,boris

Differential Revision: https://phabricator.services.mozilla.com/D210658
This commit is contained in:
Emilio Cobos Álvarez
2024-05-17 08:33:36 +00:00
parent 3c54f786e7
commit c54d301d5e
8 changed files with 98 additions and 221 deletions

View File

@@ -994,8 +994,8 @@ void PresShell::Init(nsPresContext* aPresContext, nsViewManager* aViewManager) {
animCtrl->NotifyRefreshDriverCreated(GetPresContext()->RefreshDriver());
}
for (DocumentTimeline* timeline : mDocument->Timelines()) {
timeline->NotifyRefreshDriverCreated(GetPresContext()->RefreshDriver());
for (DocumentTimeline* timelines : mDocument->Timelines()) {
timelines->UpdateLastRefreshDriverTime();
}
// Get our activeness from the docShell.
@@ -1338,9 +1338,6 @@ void PresShell::Destroy() {
if (mDocument->HasAnimationController()) {
mDocument->GetAnimationController()->NotifyRefreshDriverDestroying(rd);
}
for (DocumentTimeline* timeline : mDocument->Timelines()) {
timeline->NotifyRefreshDriverDestroying(rd);
}
}
if (mPresContext) {