Changeset 273982 in webkit


Ignore:
Timestamp:
Mar 5, 2021 10:51:46 AM (17 months ago)
Author:
Simon Fraser
Message:

sticky position incorrect behavior in table with dir=RTL
https://bugs.webkit.org/show_bug.cgi?id=221624
<rdar://problem/74403616>

Reviewed by Zalan Bujtas.
Source/WebCore:

We use scroll offsets when computing sticky constraints, so we should also use them
when computing layer positions in the scrolling tree.

Test: fast/css/sticky/sticky-in-rtl-overflow.html

  • page/scrolling/cocoa/ScrollingTreeStickyNode.mm:

(WebCore::ScrollingTreeStickyNode::computeLayerPosition const):

LayoutTests:

  • fast/css/sticky/sticky-in-rtl-overflow-expected.html: Added.
  • fast/css/sticky/sticky-in-rtl-overflow.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r273981 r273982  
     12021-03-05  Simon Fraser  <simon.fraser@apple.com>
     2
     3        sticky position incorrect behavior in table with dir=RTL
     4        https://bugs.webkit.org/show_bug.cgi?id=221624
     5        <rdar://problem/74403616>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        * fast/css/sticky/sticky-in-rtl-overflow-expected.html: Added.
     10        * fast/css/sticky/sticky-in-rtl-overflow.html: Added.
     11
    1122021-03-05  Jon Lee  <jonlee@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r273977 r273982  
     12021-03-05  Simon Fraser  <simon.fraser@apple.com>
     2
     3        sticky position incorrect behavior in table with dir=RTL
     4        https://bugs.webkit.org/show_bug.cgi?id=221624
     5        <rdar://problem/74403616>
     6
     7        Reviewed by Zalan Bujtas.
     8       
     9        We use scroll offsets when computing sticky constraints, so we should also use them
     10        when computing layer positions in the scrolling tree.
     11
     12        Test: fast/css/sticky/sticky-in-rtl-overflow.html
     13
     14        * page/scrolling/cocoa/ScrollingTreeStickyNode.mm:
     15        (WebCore::ScrollingTreeStickyNode::computeLayerPosition const):
     16
    1172021-03-04  Antoine Quint  <graouts@webkit.org>
    218
  • trunk/Source/WebCore/page/scrolling/cocoa/ScrollingTreeStickyNode.mm

    r269184 r273982  
    7777        } else {
    7878            auto& overflowScrollingNode = downcast<ScrollingTreeOverflowScrollingNode>(scrollingNode);
    79             constrainingRect = FloatRect(overflowScrollingNode.currentScrollPosition(), m_constraints.constrainingRectAtLastLayout().size());
     79            constrainingRect = FloatRect(overflowScrollingNode.currentScrollOffset(), m_constraints.constrainingRectAtLastLayout().size());
    8080        }
    8181        return m_constraints.layerPositionForConstrainingRect(constrainingRect);
Note: See TracChangeset for help on using the changeset viewer.