Adjust the scroll position when doing a full page zoom, so the content
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jan 2010 21:30:35 +0000 (21:30 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jan 2010 21:30:35 +0000 (21:30 +0000)
commit3c834ef13816ac588987b21c95f848ef64b23cf5
tree182fdf55646beb5f297ad6506c4ff78a51374e1b
parenteef4effe354b6816f2f217cdc12cdb9309fcb42c
Adjust the scroll position when doing a full page zoom, so the content
stays in relatively the same position.

<rdar://problem/6150099> Zooming should keep the page content in the same place

Reviewed by Oliver Hunt.

* page/Frame.cpp:
(WebCore::Frame::setZoomFactor): Apply the zoom percent difference to
the scroll position, only when doing a full page zoom.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@53424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/zoom-body-scroll-expected.txt
WebCore/ChangeLog
WebCore/page/Frame.cpp