Changeset 245771 in webkit


Ignore:
Timestamp:
May 25, 2019 8:01:09 AM (5 years ago)
Author:
Simon Fraser
Message:

[macOS] Fix programmatic scroll in RTL overflow with async scrolling enabled
https://bugs.webkit.org/show_bug.cgi?id=198226

Reviewed by Antti Koivisto.

Source/WebCore:

On macOS we need to use a scroll offset to set the layer position, not
a scroll position.

Test: scrollingcoordinator/mac/rtl-programmatic-overflow-scroll.html

  • page/scrolling/mac/ScrollingTreeOverflowScrollingNodeMac.mm:

(WebCore::ScrollingTreeOverflowScrollingNodeMac::repositionScrollingLayers):

Source/WebCore/../../LayoutTests:

  • scrollingcoordinator/mac/rtl-programmatic-overflow-scroll-expected.html: Added.
  • scrollingcoordinator/mac/rtl-programmatic-overflow-scroll.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245768 r245771  
     12019-05-25  Simon Fraser  <simon.fraser@apple.com>
     2
     3        [macOS] Fix programmatic scroll in RTL overflow with async scrolling enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=198226
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * scrollingcoordinator/mac/rtl-programmatic-overflow-scroll-expected.html: Added.
     9        * scrollingcoordinator/mac/rtl-programmatic-overflow-scroll.html: Added.
     10
    1112019-05-24  Joonghun Park  <jh718.park@samsung.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r245768 r245771  
     12019-05-25  Simon Fraser  <simon.fraser@apple.com>
     2
     3        [macOS] Fix programmatic scroll in RTL overflow with async scrolling enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=198226
     5
     6        Reviewed by Antti Koivisto.
     7
     8        On macOS we need to use a scroll offset to set the layer position, not
     9        a scroll position.
     10
     11        Test: scrollingcoordinator/mac/rtl-programmatic-overflow-scroll.html
     12
     13        * page/scrolling/mac/ScrollingTreeOverflowScrollingNodeMac.mm:
     14        (WebCore::ScrollingTreeOverflowScrollingNodeMac::repositionScrollingLayers):
     15
    1162019-05-24  Joonghun Park  <jh718.park@samsung.com>
    217
  • trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeOverflowScrollingNodeMac.mm

    r244947 r245771  
    9191void ScrollingTreeOverflowScrollingNodeMac::repositionScrollingLayers()
    9292{
    93     auto scrollPosition = currentScrollPosition();
    94     scrolledContentsLayer().position = -scrollPosition;
     93    auto scrollOffset = ScrollableArea::scrollOffsetFromPosition(currentScrollPosition(), toFloatSize(scrollOrigin()));
     94    scrolledContentsLayer().position = -scrollOffset;
    9595}
    9696
Note: See TracChangeset for help on using the changeset viewer.