diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 3474a53f587..4ee404cc334 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -1575,7 +1575,7 @@ void nsGfxScrollFrameInner::MarkActive() } } -void nsGfxScrollFrameInner::ScrollVisual(nsIntPoint aPixDelta) +void nsGfxScrollFrameInner::ScrollVisual() { nsRootPresContext* rootPresContext = mOuter->PresContext()->GetRootPresContext(); if (!rootPresContext) { @@ -1665,7 +1665,7 @@ nsGfxScrollFrameInner::ScrollToImpl(nsPoint aPt) mScrolledFrame->SetPosition(mScrollPort.TopLeft() - pt); // We pass in the amount to move visually - ScrollVisual(curPosDevPx - ptDevPx); + ScrollVisual(); presContext->PresShell()->SynthesizeMouseMove(PR_TRUE); UpdateScrollbarPosition(); diff --git a/layout/generic/nsGfxScrollFrame.h b/layout/generic/nsGfxScrollFrame.h index 015d0b9271c..7ef4bccceed 100644 --- a/layout/generic/nsGfxScrollFrame.h +++ b/layout/generic/nsGfxScrollFrame.h @@ -154,7 +154,7 @@ public: static void AsyncScrollCallback(nsITimer *aTimer, void* anInstance); void ScrollTo(nsPoint aScrollPosition, nsIScrollableFrame::ScrollMode aMode); void ScrollToImpl(nsPoint aScrollPosition); - void ScrollVisual(nsIntPoint aPixDelta); + void ScrollVisual(); void ScrollBy(nsIntPoint aDelta, nsIScrollableFrame::ScrollUnit aUnit, nsIScrollableFrame::ScrollMode aMode, nsIntPoint* aOverflow); void ScrollToRestoredPosition();