Changeset 142364 in webkit


Ignore:
Timestamp:
Feb 9, 2013 9:54:42 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[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-02-09
Reviewed by Rob Buis.

RIM PR 246976
Internally Reviewed by Genevieve Mak.

BlackBerry::Platform::MouseEvent have document viewport and document
content position as members. When we create the event, we should initial
them as well.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::updateCursor):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r142220 r142364  
    24172417
    24182418    BlackBerry::Platform::MouseEvent event(buttonMask, buttonMask, mapToTransformed(m_lastMouseEvent.position()), mapToTransformed(m_lastMouseEvent.globalPosition()), 0, modifiers,  0);
     2419
     2420    // 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.
     2421    event.populateDocumentPosition(m_lastMouseEvent.position(), mapFromTransformedViewportToTransformedContents(m_lastMouseEvent.position()));
    24192422    m_webPage->mouseEvent(event);
    24202423}
  • trunk/Source/WebKit/blackberry/ChangeLog

    r142227 r142364  
     12013-02-09  Tiancheng Jiang  <tijiang@rim.com>
     2
     3        [BlackBerry] Set mouse document position for mouse event in updateCursor.
     4        https://bugs.webkit.org/show_bug.cgi?id=109094.
     5
     6        Reviewed by Rob Buis.
     7
     8        RIM PR 246976
     9        Internally Reviewed by Genevieve Mak.
     10
     11        BlackBerry::Platform::MouseEvent have document viewport and document
     12        content position as members. When we create the event, we should initial
     13        them as well.
     14
     15        * Api/WebPage.cpp:
     16        (BlackBerry::WebKit::WebPagePrivate::updateCursor):
     17
    1182013-02-07  Charles Wei  <charles.wei@torchmobile.com.cn>
    219
Note: See TracChangeset for help on using the changeset viewer.