TouchAdjustment does not correct for frame position
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2012 12:23:57 +0000 (12:23 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2012 12:23:57 +0000 (12:23 +0000)
commite30c219b54c640e2dfe92dec12d19758b33c21e7
treeea6e84fc3f4f31360b675d66ea0387977fce1c46
parentfb3091c39732804b531accf07e71771be0116054
TouchAdjustment does not correct for frame position
https://bugs.webkit.org/show_bug.cgi?id=82043

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-03-23
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Convert geometry to window coordinates before calculating distance.

Test: touchadjustment/iframe.html

* page/TouchAdjustment.cpp:
(WebCore::TouchAdjustment::distanceSquaredToTargetCenterLine):

LayoutTests:

Add test that will fail if frame position is not adjusted for.

* touchadjustment/iframe-expected.txt: Added.
* touchadjustment/iframe.html: Added.
* touchadjustment/resources/inner-frame.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/touchadjustment/iframe-expected.txt [new file with mode: 0644]
LayoutTests/touchadjustment/iframe.html [new file with mode: 0644]
LayoutTests/touchadjustment/resources/inner-frame.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/TouchAdjustment.cpp