зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
491f63197d
Коммит
60d852855e
|
@ -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();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче