From 368bfc5bf20eaa6afcf2f26d7ad35d29f42cce31 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Wed, 18 Mar 2020 08:31:44 +0000 Subject: [PATCH] Bug 1617111, reduce the time forced to be used outside animation frame callbacks, r=farre Differential Revision: https://phabricator.services.mozilla.com/D67123 --HG-- extra : moz-landing-system : lando --- layout/base/nsRefreshDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/base/nsRefreshDriver.cpp b/layout/base/nsRefreshDriver.cpp index 84bc32d38136..b65f5539261c 100644 --- a/layout/base/nsRefreshDriver.cpp +++ b/layout/base/nsRefreshDriver.cpp @@ -741,7 +741,7 @@ class VsyncRefreshDriverTimer : public RefreshDriverTimer { // before use. if (mVsyncRefreshDriverTimer) { timeForOutsideTick = TimeDuration::FromMilliseconds( - mVsyncRefreshDriverTimer->GetTimerRate().ToMilliseconds() / 10.0f); + mVsyncRefreshDriverTimer->GetTimerRate().ToMilliseconds() / 100.0f); RefPtr timer = mVsyncRefreshDriverTimer; timer->RunRefreshDrivers(aId, aVsyncTimestamp); // Note: mVsyncRefreshDriverTimer might be null now.