window.scrollBy() scrolls incorrectly when zoomed in/out
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Mar 2012 14:37:56 +0000 (14:37 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Mar 2012 14:37:56 +0000 (14:37 +0000)
commit27310ddf92349fc52865082772ebbd740ab82060
tree3cb797dc66c022cbdef2f87249625eab6a084400
parente49984cdac89b12de5b4c7302333bf48c22334ab
window.scrollBy() scrolls incorrectly when zoomed in/out
https://bugs.webkit.org/show_bug.cgi?id=45228

Patch by Eugene Girard <girard@chromium.org> on 2012-03-28
Reviewed by Simon Fraser.

scrollBy now uses layout (not CSS) units. (As scrollTo does.)

Source/WebCore:

Test: fast/dom/zoom-scroll-page-test.html

* page/DOMWindow.cpp:
(WebCore::DOMWindow::scrollBy):

LayoutTests:

* fast/dom/zoom-scroll-page-test-expected.txt: Added.
* fast/dom/zoom-scroll-page-test.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/zoom-scroll-page-test-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/zoom-scroll-page-test.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/DOMWindow.cpp