| Index: sky/engine/core/frame/LocalFrame.cpp
|
| diff --git a/sky/engine/core/frame/LocalFrame.cpp b/sky/engine/core/frame/LocalFrame.cpp
|
| index c1eb350f9ce527abf3a45a3dd7eca2e37582d45f..bf62a02b3f3e80945974b067783c4397e9340390 100644
|
| --- a/sky/engine/core/frame/LocalFrame.cpp
|
| +++ b/sky/engine/core/frame/LocalFrame.cpp
|
| @@ -383,15 +383,6 @@ void LocalFrame::setPageAndTextZoomFactors(float pageZoomFactor, float textZoomF
|
| if (!document)
|
| return;
|
|
|
| - 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();
|
| - float percentDifference = (pageZoomFactor / m_pageZoomFactor);
|
| - view->setScrollPosition(IntPoint(scrollPosition.x() * percentDifference, scrollPosition.y() * percentDifference));
|
| - }
|
| - }
|
| -
|
| m_pageZoomFactor = pageZoomFactor;
|
| m_textZoomFactor = textZoomFactor;
|
|
|
|
|