Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index 968bfa0cd9160df7bbdb8168495eb0073a19b52c..53530ec2c5ddce9300d922c3ac9e92d59d17b85f 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -158,8 +158,8 @@ static Node* hoveredNodeForPoint(LocalFrame* frame, const IntPoint& pointInRootF |
if (ignorePointerEventsNone) |
hitType |= HitTestRequest::IgnorePointerEventsNone; |
HitTestRequest request(hitType); |
- HitTestResult result(frame->view()->rootFrameToContents(pointInRootFrame)); |
- frame->contentRenderer()->hitTest(request, result); |
+ HitTestResult result(request, frame->view()->rootFrameToContents(pointInRootFrame)); |
+ frame->contentRenderer()->hitTest(result); |
Node* node = result.innerPossiblyPseudoNode(); |
while (node && node->nodeType() == Node::TEXT_NODE) |
node = node->parentNode(); |
@@ -1533,8 +1533,8 @@ void InspectorDOMAgent::getNodeForLocation(ErrorString* errorString, int x, int |
if (!pushDocumentUponHandlelessOperation(errorString)) |
return; |
HitTestRequest request(HitTestRequest::Move | HitTestRequest::ReadOnly | HitTestRequest::AllowChildFrameContent); |
- HitTestResult result(IntPoint(x, y)); |
- m_document->frame()->contentRenderer()->hitTest(request, result); |
+ HitTestResult result(request, IntPoint(x, y)); |
+ m_document->frame()->contentRenderer()->hitTest(result); |
Node* node = result.innerPossiblyPseudoNode(); |
while (node && node->nodeType() == Node::TEXT_NODE) |
node = node->parentNode(); |