Changeset 116650 in webkit


Ignore:
Timestamp:
May 10, 2012 9:17:53 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

TouchAdjustment doesn't correct for scroll-offsets.
https://bugs.webkit.org/show_bug.cgi?id=86083

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

Already tested by: touchadjustment/scroll-delegation

  • page/EventHandler.cpp:

(WebCore::EventHandler::bestClickableNodeForTouchPoint):
(WebCore::EventHandler::bestZoomableAreaForTouchPoint):

  • page/TouchAdjustment.cpp:

(WebCore::TouchAdjustment::findNodeWithLowestDistanceMetric):

  • testing/Internals.cpp:

(WebCore::Internals::bestZoomableAreaForTouchPoint):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116649 r116650  
     12012-05-10  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        TouchAdjustment doesn't correct for scroll-offsets.
     4        https://bugs.webkit.org/show_bug.cgi?id=86083
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Already tested by: touchadjustment/scroll-delegation
     9
     10        * page/EventHandler.cpp:
     11        (WebCore::EventHandler::bestClickableNodeForTouchPoint):
     12        (WebCore::EventHandler::bestZoomableAreaForTouchPoint):
     13        * page/TouchAdjustment.cpp:
     14        (WebCore::TouchAdjustment::findNodeWithLowestDistanceMetric):
     15        * testing/Internals.cpp:
     16        (WebCore::Internals::bestZoomableAreaForTouchPoint):
     17
    1182012-05-10  Konrad Piascik  <kpiascik@rim.com>
    219
  • trunk/Source/WebCore/page/EventHandler.cpp

    r115877 r116650  
    24792479{
    24802480    HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active;
    2481     HitTestResult result = hitTestResultAtPoint(touchCenter, /*allowShadowContent*/ false, /*ignoreClipping*/ false, DontHitTestScrollbars, hitType, touchRadius);
     2481    IntPoint hitTestPoint = m_frame->view()->windowToContents(touchCenter);
     2482    HitTestResult result = hitTestResultAtPoint(hitTestPoint, /*allowShadowContent*/ false, /*ignoreClipping*/ false, DontHitTestScrollbars, hitType, touchRadius);
    24822483
    24832484    IntRect touchRect = result.rectForPoint(touchCenter);
     
    24892490{
    24902491    HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::Active;
    2491     HitTestResult result = hitTestResultAtPoint(touchCenter, /*allowShadowContent*/ false, /*ignoreClipping*/ false, DontHitTestScrollbars, hitType, touchRadius);
     2492    IntPoint hitTestPoint = m_frame->view()->windowToContents(touchCenter);
     2493    HitTestResult result = hitTestResultAtPoint(hitTestPoint, /*allowShadowContent*/ false, /*ignoreClipping*/ false, DontHitTestScrollbars, hitType, touchRadius);
    24922494
    24932495    IntRect touchRect = result.rectForPoint(touchCenter);
  • trunk/Source/WebCore/page/TouchAdjustment.cpp

    r113179 r116650  
    266266        }
    267267    }
     268    if (targetNode) {
     269        targetArea = targetNode->document()->view()->contentsToWindow(targetArea);
     270        targetPoint = targetNode->document()->view()->contentsToWindow(targetPoint);
     271    }
    268272
    269273    return (targetNode);
  • trunk/Source/WebCore/testing/Internals.cpp

    r116610 r116650  
    775775    IntRect zoomableArea;
    776776    document->frame()->eventHandler()->bestZoomableAreaForTouchPoint(point, radius, zoomableArea, targetNode);
    777     if (targetNode)
    778         zoomableArea = targetNode->document()->view()->contentsToWindow(zoomableArea);
    779777
    780778    return ClientRect::create(zoomableArea);
Note: See TracChangeset for help on using the changeset viewer.