diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index e03480744f3e..5d07eeade99b 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -2282,9 +2282,7 @@ ScrollFrameHelper::ScrollToWithOrigin(nsPoint aScrollPosition, } nsPresContext* presContext = mOuter->PresContext(); - TimeStamp now = presContext->RefreshDriver()->IsTestControllingRefreshesEnabled() - ? presContext->RefreshDriver()->MostRecentRefresh() - : TimeStamp::Now(); + TimeStamp now = presContext->RefreshDriver()->MostRecentRefresh(); bool isSmoothScroll = (aMode == nsIScrollableFrame::SMOOTH) && IsSmoothScrollingEnabled();