Index: Source/core/dom/TreeScope.cpp |
diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp |
index 4caf10359dda54444acad553da9d33c780bccdc6..801eafbc6ec8c056517e19f50aa3d1c0749c8d40 100644 |
--- a/Source/core/dom/TreeScope.cpp |
+++ b/Source/core/dom/TreeScope.cpp |
@@ -269,8 +269,8 @@ HitTestResult hitTestInDocument(const Document* document, int x, int y) |
return HitTestResult(); |
HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::Active); |
- HitTestResult result(hitPoint); |
- document->layoutView()->hitTest(request, result); |
+ HitTestResult result(request, hitPoint); |
+ document->layoutView()->hitTest(result); |
return result; |
} |
@@ -299,8 +299,8 @@ Vector<Element*> TreeScope::elementsFromPoint(int x, int y) const |
return elements; |
HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ListBased | HitTestRequest::PenetratingList); |
- HitTestResult result(hitPoint); |
- document.layoutView()->hitTest(request, result); |
+ HitTestResult result(request, hitPoint); |
+ document.layoutView()->hitTest(result); |
Node* lastNode = nullptr; |
for (const auto rectBasedNode : result.listBasedTestResult()) { |