Index: Source/core/frame/LocalFrame.cpp |
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp |
index 0ea5a2a94226d77baa61646f02961e34e0f4ec28..e12bbba282e6d19d101a7c34a96c0af79b93c7f1 100644 |
--- a/Source/core/frame/LocalFrame.cpp |
+++ b/Source/core/frame/LocalFrame.cpp |
@@ -699,12 +699,12 @@ VisiblePosition LocalFrame::visiblePositionForPoint(const IntPoint& framePoint) |
return visiblePos; |
} |
-Document* LocalFrame::documentAtPoint(const IntPoint& point) |
+Document* LocalFrame::documentAtPoint(const IntPoint& pointInRootFrame) |
{ |
if (!view()) |
return nullptr; |
- IntPoint pt = view()->windowToContents(point); |
+ IntPoint pt = view()->rootFrameToContents(pointInRootFrame); |
HitTestResult result = HitTestResult(pt); |
if (contentRenderer()) |