Reviewed by Darin Adler.
Fix http://bugs.webkit.org/show_bug.cgi?id=15780
Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates
in the page coordinate system rather than the client area coordinate system.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27376
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-02 Mark Rowe <mrowe@apple.com>
+
+ Reviewed by Darin Adler.
+
+ Fix http://bugs.webkit.org/show_bug.cgi?id=15780
+ Bug 15780: WebFrameLoaderClient: WebActionElementKey wrong if view is scrolled
+
+ * WebCoreSupport/WebFrameLoaderClient.mm:
+ (WebFrameLoaderClient::actionDictionary): Retrieve the mouse event coordinates
+ in the page coordinate system rather than the client area coordinate system.
+
2007-11-01 Dan Bernstein <mitz@apple.com>
Reviewed by Oliver Hunt.
modifierFlags |= NSCommandKeyMask;
}
if (const MouseEvent* mouseEvent = findMouseEvent(event)) {
- IntPoint point(mouseEvent->clientX(), mouseEvent->clientY());
+ IntPoint point(mouseEvent->pageX(), mouseEvent->pageY());
WebElementDictionary *element = [[WebElementDictionary alloc]
initWithHitTestResult:core(m_webFrame.get())->eventHandler()->hitTestResultAtPoint(point, false)];
NSDictionary *result = [NSDictionary dictionaryWithObjectsAndKeys: