Changeset 116766 in webkit
- Timestamp:
- May 11, 2012 7:04:45 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r116765 r116766 1 2012-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 1 13 2012-05-11 Kent Tamura <tkent@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r116764 r116766 1 2012-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 1 16 2012-05-11 Ilya Tikhonovsky <loislo@chromium.org> 2 17 -
trunk/Source/WebCore/testing/Internals.cpp
r116730 r116766 726 726 Node* targetNode; 727 727 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; 733 734 } 734 735 … … 761 762 Node* targetNode; 762 763 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; 766 769 } 767 770 #endif
Note: See TracChangeset
for help on using the changeset viewer.