[WK2] TiledBackingStore: Scroll position is not reset when new page is loaded
authormikhail.pozdnyakov@intel.com <mikhail.pozdnyakov@intel.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Dec 2012 13:40:40 +0000 (13:40 +0000)
committermikhail.pozdnyakov@intel.com <mikhail.pozdnyakov@intel.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Dec 2012 13:40:40 +0000 (13:40 +0000)
commit327e33ef3e106fab0a4fb862f5ef2daf8339d88c
tree5b314621d55658609e5048c273e8a53361f8ed1b
parent9c876b218b7d862940097832e185badce8a1c084
[WK2] TiledBackingStore: Scroll position is not reset when new page is loaded
https://bugs.webkit.org/show_bug.cgi?id=105627

Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

Reset scroll position to (0,0) when new page is loaded.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::sendViewportAttributesChanged):

LayoutTests:

Added a layout test checking scroll position for newly loaded pages.

* fast/dom/resources/check-scroll-position-onload.html: Added.
* fast/dom/scroll-position-for-new-loads-expected.txt: Added.
* fast/dom/scroll-position-for-new-loads.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@138367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/resources/check-scroll-position-onload.html [new file with mode: 0644]
LayoutTests/fast/dom/scroll-position-for-new-loads-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/scroll-position-for-new-loads.html [new file with mode: 0644]
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/WebPage.cpp