Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
index 4f3f496b44233d9d1cbcaaca20c459b07bbd1504..31dccf7ce79d4712ffe1406454109bdc41eb5dda 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -637,11 +637,11 @@ void LocalFrame::setPageAndTextZoomFactors(float pageZoomFactor, |
if (FrameView* view = this->view()) { |
// Update the scroll position when doing a full page zoom, so the content |
// stays in relatively the same position. |
- LayoutPoint scrollPosition = view->scrollPosition(); |
+ ScrollOffset scrollOffset = view->scrollOffset(); |
float percentDifference = (pageZoomFactor / m_pageZoomFactor); |
- view->setScrollPosition( |
- DoublePoint(scrollPosition.x() * percentDifference, |
- scrollPosition.y() * percentDifference), |
+ view->setScrollOffset( |
+ ScrollOffset(scrollOffset.width() * percentDifference, |
+ scrollOffset.height() * percentDifference), |
ProgrammaticScroll); |
} |
} |