Changeset 116766 in webkit


Ignore:
Timestamp:
May 11, 2012 7:04:45 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Internals::touchPositionAdjustedToBestClickableNode adjust twice for scroll-offset
https://bugs.webkit.org/show_bug.cgi?id=86205

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-05-11
Reviewed by Simon Hausmann.

Source/WebCore:

Remove the redundant conversion from document to window coords.

Test: touchadjustment/scroll-offset.html

  • testing/Internals.cpp:

(WebCore::Internals::touchPositionAdjustedToBestClickableNode):
(WebCore::Internals::bestZoomableAreaForTouchPoint):

LayoutTests:

Add test of touchPositionAdjustedToBestClickableNode with scroll-offset.

  • touchadjustment/scroll-offset-expected.txt: Added.
  • touchadjustment/scroll-offset.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r116765 r116766  
     12012-05-11  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        Internals::touchPositionAdjustedToBestClickableNode adjust twice for scroll-offset
     4        https://bugs.webkit.org/show_bug.cgi?id=86205
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Add test of touchPositionAdjustedToBestClickableNode with scroll-offset.
     9
     10        * touchadjustment/scroll-offset-expected.txt: Added.
     11        * touchadjustment/scroll-offset.html: Added.
     12
    1132012-05-11  Kent Tamura  <tkent@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r116764 r116766  
     12012-05-11  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        Internals::touchPositionAdjustedToBestClickableNode adjust twice for scroll-offset
     4        https://bugs.webkit.org/show_bug.cgi?id=86205
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Remove the redundant conversion from document to window coords.
     9
     10        Test: touchadjustment/scroll-offset.html
     11
     12        * testing/Internals.cpp:
     13        (WebCore::Internals::touchPositionAdjustedToBestClickableNode):
     14        (WebCore::Internals::bestZoomableAreaForTouchPoint):
     15
    1162012-05-11  Ilya Tikhonovsky  <loislo@chromium.org>
    217
  • trunk/Source/WebCore/testing/Internals.cpp

    r116730 r116766  
    726726    Node* targetNode;
    727727    IntPoint adjustedPoint;
    728     document->frame()->eventHandler()->bestClickableNodeForTouchPoint(point, radius, adjustedPoint, targetNode);
    729     if (targetNode)
    730         adjustedPoint = targetNode->document()->view()->contentsToWindow(adjustedPoint);
    731 
    732     return WebKitPoint::create(adjustedPoint.x(), adjustedPoint.y());
     728
     729    bool foundNode = document->frame()->eventHandler()->bestClickableNodeForTouchPoint(point, radius, adjustedPoint, targetNode);
     730    if (foundNode)
     731        return WebKitPoint::create(adjustedPoint.x(), adjustedPoint.y());
     732
     733    return 0;
    733734}
    734735
     
    761762    Node* targetNode;
    762763    IntRect zoomableArea;
    763     document->frame()->eventHandler()->bestZoomableAreaForTouchPoint(point, radius, zoomableArea, targetNode);
    764 
    765     return ClientRect::create(zoomableArea);
     764    bool foundNode = document->frame()->eventHandler()->bestZoomableAreaForTouchPoint(point, radius, zoomableArea, targetNode);
     765    if (foundNode)
     766        return ClientRect::create(zoomableArea);
     767
     768    return 0;
    766769}
    767770#endif
Note: See TracChangeset for help on using the changeset viewer.