Content inside frames and scrollbars in overflow areas hit-tests incorrectly when
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2013 23:23:20 +0000 (23:23 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2013 23:23:20 +0000 (23:23 +0000)
commitf81c7a6441d09569855164d53a08facdcb92ec4a
tree674a7a70cc9f32db9c26a065ab954c1c34fa734f
parent4dfbb5c64f703bd26e3ab28f70b8f9ea4b4973c4
Content inside frames and scrollbars in overflow areas hit-tests incorrectly when
the WKView has a header
https://bugs.webkit.org/show_bug.cgi?id=114769

Reviewed by Simon Fraser.

Source/WebCore:

convertToRenderer() and convertFromRenderer() need to factor in the headerHeight,
much like all of the conversion functions on ScrollView.
* page/FrameView.cpp:
(WebCore::FrameView::convertFromRenderer):
(WebCore::FrameView::convertToRenderer):

The scrollPosition equivalent of the existing scrollOffsetRelativeToDocument()
function.
* platform/ScrollView.cpp:
(WebCore::ScrollView::scrollPositionRelativeToDocument):
* platform/ScrollView.h:
(ScrollView):

LayoutTests:

* platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame-expected.txt: Added.
* platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html: Added.
* platform/mac-wk2/tiled-drawing/resources/iframe-to-hit-test.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html [new file with mode: 0644]
LayoutTests/platform/mac-wk2/tiled-drawing/resources/iframe-to-hit-test.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/FrameView.cpp
Source/WebCore/platform/ScrollView.cpp
Source/WebCore/platform/ScrollView.h