Simplify hitTestResultAtPoint and nodesFromRect APIs
[WebKit-https.git] / Source / WebCore / page / TouchDisambiguation.cpp
index 5efe3db..dfeedb2 100644 (file)
@@ -96,7 +96,7 @@ void findGoodTouchTargets(const IntRect& touchBox, Frame* mainFrame, float pageS
     IntPoint touchPoint = touchBox.center();
     IntPoint contentsPoint = mainFrame->view()->windowToContents(touchPoint);
 
-    HitTestResult result = mainFrame->eventHandler()->hitTestResultAtPoint(contentsPoint, false, false, DontHitTestScrollbars, HitTestRequest::Active | HitTestRequest::ReadOnly, IntSize(padding, padding));
+    HitTestResult result = mainFrame->eventHandler()->hitTestResultAtPoint(contentsPoint, HitTestRequest::ReadOnly | HitTestRequest::Active, IntSize(padding, padding));
     const ListHashSet<RefPtr<Node> >& hitResults = result.rectBasedTestResult();
 
     HashMap<Node*, TouchTargetData> touchTargets;