Changeset 273982 in webkit
- Timestamp:
- Mar 5, 2021 10:51:46 AM (17 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/sticky/sticky-in-rtl-overflow-expected.html (added)
-
LayoutTests/fast/css/sticky/sticky-in-rtl-overflow.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/scrolling/cocoa/ScrollingTreeStickyNode.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r273981 r273982 1 2021-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 1 12 2021-03-05 Jon Lee <jonlee@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r273977 r273982 1 2021-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 1 17 2021-03-04 Antoine Quint <graouts@webkit.org> 2 18 -
trunk/Source/WebCore/page/scrolling/cocoa/ScrollingTreeStickyNode.mm
r269184 r273982 77 77 } else { 78 78 auto& overflowScrollingNode = downcast<ScrollingTreeOverflowScrollingNode>(scrollingNode); 79 constrainingRect = FloatRect(overflowScrollingNode.currentScroll Position(), m_constraints.constrainingRectAtLastLayout().size());79 constrainingRect = FloatRect(overflowScrollingNode.currentScrollOffset(), m_constraints.constrainingRectAtLastLayout().size()); 80 80 } 81 81 return m_constraints.layerPositionForConstrainingRect(constrainingRect);
Note: See TracChangeset
for help on using the changeset viewer.