ScrollingCoordinator touch event hit rects aren't converted to proper coordinates...
authorleviw@chromium.org <leviw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2013 19:33:20 +0000 (19:33 +0000)
committerleviw@chromium.org <leviw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2013 19:33:20 +0000 (19:33 +0000)
commit44e5f602cac141835f644d70a18edb14e94e750c
treea4e99892dcb859ebb5d9a1cce55a07c236803ee9
parent76fa01e33e3b52b23c4dd0efdd88e091a5330dae
ScrollingCoordinator touch event hit rects aren't converted to proper coordinates when in nested views
https://bugs.webkit.org/show_bug.cgi?id=106383

Reviewed by James Robinson.

Source/WebCore:

ScrollingCoordinator uses clippedOverflowRectForRepaint(0) to generate the bounds for a renderer's hit
testing rect. The rect this returns is in the coordinates of its document. This change converts the
rect to the outermost view's coordinate system using convertToContainingView.

Tests: platform/chromium/fast/events/touch/touch-hit-rects-in-iframe.html

* page/scrolling/ScrollingCoordinator.cpp:
(WebCore::accumulateRendererTouchEventTargetRects):

LayoutTests:

* platform/chromium/fast/events/touch/resources: Added.
* platform/chromium/fast/events/touch/resources/frame-with-touch-handler.html: Added.
* platform/chromium/fast/events/touch/touch-hit-rects-in-iframe-expected.txt: Added.
* platform/chromium/fast/events/touch/touch-hit-rects-in-iframe.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/chromium/fast/events/touch/resources/frame-with-touch-handler.html [new file with mode: 0644]
LayoutTests/platform/chromium/fast/events/touch/touch-hit-rects-in-iframe-expected.txt [new file with mode: 0644]
LayoutTests/platform/chromium/fast/events/touch/touch-hit-rects-in-iframe.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/scrolling/ScrollingCoordinator.cpp