Index: Source/core/page/TouchDisambiguation.cpp |
diff --git a/Source/core/page/TouchDisambiguation.cpp b/Source/core/page/TouchDisambiguation.cpp |
index d6fd118e4351a413d117ce949e203e21a4be174f..88fa20270e5addf604ba635924a00a0aa06bdb6f 100644 |
--- a/Source/core/page/TouchDisambiguation.cpp |
+++ b/Source/core/page/TouchDisambiguation.cpp |
@@ -95,8 +95,8 @@ void findGoodTouchTargets(const IntRect& touchBox, LocalFrame* mainFrame, Vector |
IntPoint touchPoint = touchBox.center(); |
IntPoint contentsPoint = mainFrame->view()->windowToContents(touchPoint); |
- HitTestResult result = mainFrame->eventHandler().hitTestResultAtPoint(contentsPoint, HitTestRequest::ReadOnly | HitTestRequest::Active, LayoutSize(touchPointPadding, touchPointPadding)); |
- const WillBeHeapListHashSet<RefPtrWillBeMember<Node>>& hitResults = result.rectBasedTestResult(); |
+ HitTestResult result = mainFrame->eventHandler().hitTestResultAtPoint(contentsPoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ListBased, LayoutSize(touchPointPadding, touchPointPadding)); |
+ const WillBeHeapListHashSet<RefPtrWillBeMember<Node>>& hitResults = result.listBasedTestResult(); |
// Blacklist nodes that are container of disambiguated nodes. |
// It is not uncommon to have a clickable <div> that contains other clickable objects. |