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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user