Commit 0e61ec9b authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

[BlackBerry] Set mouse document position for mouse event in updateCursor

https://bugs.webkit.org/show_bug.cgi?id=109094

Patch by Tiancheng Jiang <tijiang@rim.com> on 2013-03-26
Reviewed by Rob Buis.

Internally Reviewed by Jakob Petsovits.

Mouse content position should be in document coordinate.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::updateCursor):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cd1fa45e
......@@ -2418,8 +2418,9 @@ void WebPagePrivate::updateCursor()
BlackBerry::Platform::MouseEvent event(buttonMask, buttonMask, mapToTransformed(m_lastMouseEvent.position()), mapToTransformed(m_lastMouseEvent.globalPosition()), 0, modifiers, 0);
// We have added document viewport position and document content position as members of the mouse event, when we create the event, we should initial them as well.
event.populateDocumentPosition(m_lastMouseEvent.position(), mapFromTransformedViewportToTransformedContents(m_lastMouseEvent.position()));
// We have added document viewport position and document content position as members of the mouse event. When we create the event, we should initialize them as well.
event.populateDocumentPosition(m_lastMouseEvent.position(), mapFromViewportToContents(m_lastMouseEvent.position()));
m_webPage->mouseEvent(event);
}
......
2013-03-26 Tiancheng Jiang <tijiang@rim.com>
[BlackBerry] Set mouse document position for mouse event in updateCursor
https://bugs.webkit.org/show_bug.cgi?id=109094
Reviewed by Rob Buis.
Internally Reviewed by Jakob Petsovits.
Mouse content position should be in document coordinate.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::updateCursor):
2013-03-26 Arvid Nilsson <anilsson@rim.com>
 
[BlackBerry] Scrolling up and down can cause the screen to flash black
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment