Changeset 116650 in webkit
- Timestamp:
- May 10, 2012 9:17:53 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116649 r116650 1 2012-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 1 18 2012-05-10 Konrad Piascik <kpiascik@rim.com> 2 19 -
trunk/Source/WebCore/page/EventHandler.cpp
r115877 r116650 2479 2479 { 2480 2480 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); 2482 2483 2483 2484 IntRect touchRect = result.rectForPoint(touchCenter); … … 2489 2490 { 2490 2491 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); 2492 2494 2493 2495 IntRect touchRect = result.rectForPoint(touchCenter); -
trunk/Source/WebCore/page/TouchAdjustment.cpp
r113179 r116650 266 266 } 267 267 } 268 if (targetNode) { 269 targetArea = targetNode->document()->view()->contentsToWindow(targetArea); 270 targetPoint = targetNode->document()->view()->contentsToWindow(targetPoint); 271 } 268 272 269 273 return (targetNode); -
trunk/Source/WebCore/testing/Internals.cpp
r116610 r116650 775 775 IntRect zoomableArea; 776 776 document->frame()->eventHandler()->bestZoomableAreaForTouchPoint(point, radius, zoomableArea, targetNode); 777 if (targetNode)778 zoomableArea = targetNode->document()->view()->contentsToWindow(zoomableArea);779 777 780 778 return ClientRect::create(zoomableArea);
Note: See TracChangeset
for help on using the changeset viewer.