Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index 381c8869ea952c8e76bb94dbe36e0e85b07a21a5..0a5271ea9e32b9c827e6240ec7dfbe8645c15c7b 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -1241,7 +1241,7 @@ VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint& |
HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(unscaledPoint))); |
frame()->document()->renderView()->layer()->hitTest(request, result); |
- if (Node* node = result.targetNode()) |
+ if (Node* node = result.innerNode()) |
return frame()->selection().selection().visiblePositionRespectingEditingBoundary(result.localPoint(), node); |
return VisiblePosition(); |
} |