Changeset 282138 in webkit
- Timestamp:
- Sep 8, 2021 4:48:25 AM (11 months ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-large-top-2.tentative-expected.html (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-large-top.tentative-expected.html (modified) (1 diff)
-
LayoutTests/platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-gain-scrolling-ancestor-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-in-fixed-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-lose-scrolling-ancestor-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBoxModelObject.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r282136 r282138 1 2021-09-08 Martin Robinson <mrobinson@webkit.org> 2 3 [css-position-sticky] Sticky constraints are calculated incorrectly when scrolling container has padding and borders 4 https://bugs.webkit.org/show_bug.cgi?id=229997 5 6 Reviewed by Simon Fraser. 7 8 * TestExpectations: Unskip two newly passing tests. 9 * platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-expected.txt: Rebaseline. 10 * platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-gain-scrolling-ancestor-expected.txt: Ditto. 11 * platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-in-fixed-expected.txt: Ditto. 12 * platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-lose-scrolling-ancestor-expected.txt: Ditto. 13 1 14 2021-09-08 Kimmo Kinnunen <kkinnunen@apple.com> 2 15 -
trunk/LayoutTests/TestExpectations
r282133 r282138 3487 3487 webkit.org/b/228993 imported/w3c/web-platform-tests/css/css-position/multicol/static-position/vrl-rtl-rtl-in-multicol.html [ ImageOnlyFailure ] 3488 3488 webkit.org/b/203450 imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-writing-modes.html [ ImageOnlyFailure ] 3489 webkit.org/b/203450 imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-large-top-2.tentative.html [ ImageOnlyFailure ]3490 webkit.org/b/203450 imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-large-top.tentative.html [ ImageOnlyFailure ]3491 3489 webkit.org/b/203450 imported/w3c/web-platform-tests/css/css-position/sticky/sticky-after-input.html [ Failure ] 3492 3490 webkit.org/b/203451 imported/w3c/web-platform-tests/css/css-position/static-position/htb-ltr-ltr.html [ ImageOnlyFailure ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r282133 r282138 1 2021-09-08 Martin Robinson <mrobinson@webkit.org> 2 3 [css-position-sticky] Sticky constraints are calculated incorrectly when scrolling container has padding and borders 4 https://bugs.webkit.org/show_bug.cgi?id=229997 5 6 Reviewed by Simon Fraser. 7 8 * web-platform-tests/css/css-position/sticky/position-sticky-large-top-2.tentative-expected.html: This test uses 9 an identity transform to make a div a containing block for absolutely positioned items. This exposes a bug in 10 WebKit, but position: relative also does this without exposing the bug. The bug for this issue is 11 https://bugs.webkit.org/show_bug.cgi?id=229999. 12 * web-platform-tests/css/css-position/sticky/position-sticky-large-top.tentative-expected.html: Ditto. 13 1 14 2021-09-08 Tim Nguyen <ntim@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-large-top-2.tentative-expected.html
r280960 r282138 13 13 height: 200px; 14 14 width: 200px; 15 transform: scale(1);15 position: relative; 16 16 } 17 17 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-large-top.tentative-expected.html
r280960 r282138 12 12 height: 200px; 13 13 width: 200px; 14 transform: scale(1);14 position: relative; 15 15 } 16 16 -
trunk/LayoutTests/platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-expected.txt
r271070 r282138 42 42 (top offset 10.00) 43 43 (bottom offset 10.00) 44 (containing block rect at ( 2,2) size 400x1760)44 (containing block rect at (0,0) size 400x1760) 45 45 (sticky box rect at (0,830) size 100x100) 46 46 (constraining rect at (0,0) size 400x300) -
trunk/LayoutTests/platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-gain-scrolling-ancestor-expected.txt
r271070 r282138 47 47 (top offset 10.00) 48 48 (bottom offset 10.00) 49 (containing block rect at ( 2,2) size 400x1760)49 (containing block rect at (0,0) size 400x1760) 50 50 (sticky box rect at (0,830) size 100x100) 51 51 (constraining rect at (0,0) size 400x300) -
trunk/LayoutTests/platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-in-fixed-expected.txt
r271070 r282138 47 47 (top offset 10.00) 48 48 (bottom offset 10.00) 49 (containing block rect at ( 2,2) size 400x1760)49 (containing block rect at (0,0) size 400x1760) 50 50 (sticky box rect at (0,830) size 100x100) 51 51 (constraining rect at (0,0) size 400x300) -
trunk/LayoutTests/platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-lose-scrolling-ancestor-expected.txt
r271070 r282138 42 42 (top offset 10.00) 43 43 (bottom offset 10.00) 44 (containing block rect at ( 2,2) size 400x1760)44 (containing block rect at (0,0) size 400x1760) 45 45 (sticky box rect at (0,830) size 100x100) 46 46 (constraining rect at (0,0) size 400x300) -
trunk/Source/WebCore/ChangeLog
r282137 r282138 1 2021-09-08 Martin Robinson <mrobinson@webkit.org> 2 3 [css-position-sticky] Sticky constraints are calculated incorrectly when scrolling container has padding and borders 4 https://bugs.webkit.org/show_bug.cgi?id=229997 5 6 Reviewed by Simon Fraser. 7 8 No new tests. This is covered by two existing WPT tests: 9 web-platform-tests/css/css-position/sticky/position-sticky-large-top-2.tentative-expected.html 10 web-platform-tests/css/css-position/sticky/position-sticky-large-top.tentative-expected.html 11 12 * rendering/RenderBoxModelObject.cpp: 13 (WebCore::RenderBoxModelObject::computeStickyPositionConstraints const): When the containing block and the scroll container 14 are the same, fix the calculation of the container content rect. layoutOverflowRect() already does not include the border, 15 so stop adjusting for that. In addition, instead of simply adjusting the rect location by the padding, actually contract 16 it so that the bottom and right edges of the rectangle are correct. 17 1 18 2021-09-08 Jean-Yves Avenard <jya@apple.com> 2 19 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r282069 r282138 470 470 } else { 471 471 containerContentRect = containingBlock->layoutOverflowRect(); 472 LayoutPoint containerLocation = containerContentRect.location() + LayoutPoint(containingBlock->borderLeft() + containingBlock->paddingLeft(),473 containingBlock-> borderTop() + containingBlock->paddingTop());474 containerContentRect.setLocation(containerLocation);472 containerContentRect.contract(LayoutBoxExtent { 473 containingBlock->computedCSSPaddingTop(), containingBlock->computedCSSPaddingRight(), 474 containingBlock->computedCSSPaddingBottom(), containingBlock->computedCSSPaddingLeft() }); 475 475 } 476 476
Note: See TracChangeset
for help on using the changeset viewer.