summaryrefslogtreecommitdiffstats
path: root/WebKit/win/WebActionPropertyBag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/win/WebActionPropertyBag.cpp')
-rw-r--r--WebKit/win/WebActionPropertyBag.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/WebKit/win/WebActionPropertyBag.cpp b/WebKit/win/WebActionPropertyBag.cpp
index 5ebe4c1..31252a5 100644
--- a/WebKit/win/WebActionPropertyBag.cpp
+++ b/WebKit/win/WebActionPropertyBag.cpp
@@ -123,9 +123,8 @@ HRESULT STDMETHODCALLTYPE WebActionPropertyBag::Read(LPCOLESTR pszPropName, VARI
}
if (isEqual(pszPropName, WebActionElementKey)) {
if (const MouseEvent* mouseEvent = findMouseEvent(m_action.event())) {
- IntPoint point(mouseEvent->clientX(), mouseEvent->clientY());
V_VT(pVar) = VT_UNKNOWN;
- V_UNKNOWN(pVar) = WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(point, false));
+ V_UNKNOWN(pVar) = WebElementPropertyBag::createInstance(m_frame->eventHandler()->hitTestResultAtPoint(mouseEvent->absoluteLocation(), false));
return S_OK;
}
}