Fixes <http://webkit.org/b/32399>.
commit1be6eed2c3e158f0906a742b1f29c8b191a1f385
authorbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Dec 2009 19:59:11 +0000 (11 19:59 +0000)
committerbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Dec 2009 19:59:11 +0000 (11 19:59 +0000)
tree6ebfbe03c981880eb0059bd5b80073648e467e63
parenta51504d49421624f0f991aa659ce476ee055c976
Fixes <http://webkit.org/b/32399>.
Pan Scrolling Jumps out of frames if the initial location is in a frame that can't be scrolled.

Reviewed by Darin Adler.

WebCore:

When we initially figure out the layer that we should begin scrolling, don't try to jump out
of frames/iFrames to look at the owner document. We don't want to jump out of frames, so we
don't need that logic anymore.

Added a test to make sure that we don't pan scroll if we start to scroll in an empty
iFrame that has a scrollable owner document.

Test: platform/win/fast/events/panScroll-no-iframe-jump.html

* dom/Node.cpp:
(WebCore::Node::defaultEventHandler):

LayoutTests:

Added a test to make sure that we don't pan scroll if we start to scroll in an empty
iFrame that has a scrollable owner document.

* platform/win/fast/events/panScroll-no-iframe-jump-expected.txt: Added.
* platform/win/fast/events/panScroll-no-iframe-jump.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52012 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/win/fast/events/panScroll-no-iframe-jump-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/events/panScroll-no-iframe-jump.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Node.cpp