Bug 1326686 - Only use the most recent refresh time as the start time of an AsyncScroll when the refresh driver is under test control. r=kip

MozReview-Commit-ID: FkyJfbaPPVl

--HG--
extra : rebase_source : 58ea615484a54b74b76f17e859136cf371b7c05f
This commit is contained in:
Botond Ballo 2017-01-20 19:28:29 -05:00
Родитель 491f63197d
Коммит 60d852855e
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -2271,7 +2271,9 @@ ScrollFrameHelper::ScrollToWithOrigin(nsPoint aScrollPosition,
} }
nsPresContext* presContext = mOuter->PresContext(); nsPresContext* presContext = mOuter->PresContext();
TimeStamp now = presContext->RefreshDriver()->MostRecentRefresh(); TimeStamp now = presContext->RefreshDriver()->IsTestControllingRefreshesEnabled()
? presContext->RefreshDriver()->MostRecentRefresh()
: TimeStamp::Now();
bool isSmoothScroll = (aMode == nsIScrollableFrame::SMOOTH) && bool isSmoothScroll = (aMode == nsIScrollableFrame::SMOOTH) &&
IsSmoothScrollingEnabled(); IsSmoothScrollingEnabled();