Touch adjustment forgets some subtarget quads.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2012 12:41:07 +0000 (12:41 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2012 12:41:07 +0000 (12:41 +0000)
commitd2e86c872bb3d2d04208c61ae2f945d374bbd85f
treefdc92ef7825f367a85b9d682ff6bf754ae78b2c2
parente30c219b54c640e2dfe92dec12d19758b33c21e7
Touch adjustment forgets some subtarget quads.
https://bugs.webkit.org/show_bug.cgi?id=82044

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

Source/WebCore:

Do not uncritically skip all nodes that are ancestors to other test results.
Instead return the inner-most element if multiple nodes have the same distance.

Test: touchadjustment/block-testing.html

* page/TouchAdjustment.cpp:
(WebCore::TouchAdjustment::compileSubtargetList):
(WebCore::TouchAdjustment::findNodeWithLowestDistanceMetric):

LayoutTests:

* touchadjustment/block-testing-expected.txt: Added.
* touchadjustment/block-testing.html: Added.

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