Changeset 194004 in webkit


Ignore:
Timestamp:
Dec 11, 2015 10:58:15 PM (8 years ago)
Author:
Simon Fraser
Message:

Mousewheel events don't work in iframes in RTL documents
https://bugs.webkit.org/show_bug.cgi?id=152200

Reviewed by Beth Dakin.

Source/WebCore:

When dispatching wheel events, the testing of the event point against the
non-fast scrollable region was broken in an RTL document. Fix by taking
the scrollOrigin into account in ScrollingTreeFrameScrollingNode::viewToContentsOffset().

Test: fast/scrolling/rtl-point-in-iframe.html

  • page/scrolling/ScrollingTreeFrameScrollingNode.cpp:

(WebCore::ScrollingTreeFrameScrollingNode::viewToContentsOffset):

LayoutTests:

Try dispatching wheel events to an iframe in an RTL document.

  • fast/scrolling/rtl-point-in-iframe-expected.txt: Added.
  • fast/scrolling/rtl-point-in-iframe.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r194002 r194004  
     12015-12-11  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Mousewheel events don't work in iframes in RTL documents
     4        https://bugs.webkit.org/show_bug.cgi?id=152200
     5
     6        Reviewed by Beth Dakin.
     7       
     8        Try dispatching wheel events to an iframe in an RTL document.
     9
     10        * fast/scrolling/rtl-point-in-iframe-expected.txt: Added.
     11        * fast/scrolling/rtl-point-in-iframe.html: Added.
     12
    1132015-12-11  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r194002 r194004  
     12015-12-11  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Mousewheel events don't work in iframes in RTL documents
     4        https://bugs.webkit.org/show_bug.cgi?id=152200
     5
     6        Reviewed by Beth Dakin.
     7       
     8        When dispatching wheel events, the testing of the event point against the
     9        non-fast scrollable region was broken in an RTL document. Fix by taking
     10        the scrollOrigin into account in ScrollingTreeFrameScrollingNode::viewToContentsOffset().
     11
     12        Test: fast/scrolling/rtl-point-in-iframe.html
     13
     14        * page/scrolling/ScrollingTreeFrameScrollingNode.cpp:
     15        (WebCore::ScrollingTreeFrameScrollingNode::viewToContentsOffset):
     16
    1172015-12-11  Zalan Bujtas  <zalan@apple.com>
    218
  • trunk/Source/WebCore/page/scrolling/ScrollingTreeFrameScrollingNode.cpp

    r183655 r194004  
    9292FloatSize ScrollingTreeFrameScrollingNode::viewToContentsOffset(const FloatPoint& scrollOffset) const
    9393{
    94     return toFloatSize(scrollOffset) - FloatSize(0, headerHeight() + topContentInset());
     94    return toFloatSize(scrollOffset) - toFloatSize(scrollOrigin()) - FloatSize(0, headerHeight() + topContentInset());
    9595}
    9696
Note: See TracChangeset for help on using the changeset viewer.