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 6f5347971b191cb4fefc79cb6e5990ff7c33e0e8..f03aeefbdebdbfc81721caa84f3d414dbd6eaec6 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -631,11 +631,11 @@ void LocalFrame::setPageAndTextZoomFactors(float pageZoomFactor, |
if (m_pageZoomFactor != 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); |
} |
} |