-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scroll-anchoring] Implement scroll anchoring for subscrollers
https://bugs.webkit.org/show_bug.cgi?id=261775 rdar://115746157 Reviewed by Simon Fraser. Implement scroll anchoring for subscrollers. * Source/WebCore/dom/Document.cpp: (WebCore::Document::runScrollSteps): * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::LocalFrameView): (WebCore::LocalFrameView::scrollPositionChanged): (WebCore::LocalFrameView::updateScrollAnchoringElementsForScrollableAreas): (WebCore::LocalFrameView::invalidateScrollAnchoringElement): Deleted. (WebCore::LocalFrameView::updateScrollAnchoringElement): Deleted. (WebCore::LocalFrameView::updateScrollPositionForScrollAnchoringController): Deleted. * Source/WebCore/page/LocalFrameView.h: * Source/WebCore/page/scrolling/ScrollAnchoringController.cpp: (WebCore::ScrollAnchoringController::ScrollAnchoringController): (WebCore::ScrollAnchoringController::invalidateAnchorElement): (WebCore::ScrollAnchoringController::updateAnchorElement): (WebCore::ScrollAnchoringController::adjustScrollPositionForAnchoring): * Source/WebCore/page/scrolling/ScrollAnchoringController.h: * Source/WebCore/platform/ScrollableArea.cpp: (WebCore::ScrollableArea::setScrollAnchoringController): (WebCore::ScrollableArea::scrollAnchoringController): (WebCore::ScrollableArea::scrollPositionChanged): (WebCore::ScrollableArea::updateScrollAnchoringElement): (WebCore::ScrollableArea::updateScrollPositionForScrollAnchoringController): (WebCore::ScrollableArea::invalidateScrollAnchoringElement): * Source/WebCore/platform/ScrollableArea.h: (WebCore::ScrollableArea::updateScrollAnchoringElement): Deleted. (WebCore::ScrollableArea::updateScrollPositionForScrollAnchoringController): Deleted. * Source/WebCore/rendering/RenderLayerScrollableArea.cpp: (WebCore::RenderLayerScrollableArea::RenderLayerScrollableArea): Canonical link: https://commits.webkit.org/268848@main
- Loading branch information
Showing
29 changed files
with
181 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/accessibility/scroll-to-global-point-iframe-nested.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/fast/scrolling/ios/adjust-scroll-snap-during-gesture.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/fast/scrolling/ios/mixing-user-and-programmatic-scroll-002.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/fast/scrolling/ios/mixing-user-and-programmatic-scroll-003.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/fast/scrolling/ios/mixing-user-and-programmatic-scroll-006.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LayoutTests/fast/scrolling/mac/adjust-scroll-snap-during-gesture.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ed/w3c/web-platform-tests/css/css-scroll-anchoring/ancestor-change-heuristic-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL Ancestor changes in document scroller. assert_equals: expected 150 but got 220 | ||
FAIL Ancestor changes in scrollable <div>. assert_equals: expected 200 but got 150 | ||
FAIL Ancestor changes in scrollable <div>. assert_equals: expected 150 but got 220 | ||
|
2 changes: 1 addition & 1 deletion
2
...platform-tests/css/css-scroll-anchoring/anchor-updates-after-explicit-scroll-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
FAIL Anchor node recomputed after an explicit scroll occurs. assert_equals: expected 600 but got 500 | ||
FAIL Anchor node recomputed after an explicit scroll occurs. assert_equals: expected 200 but got 100 | ||
|
2 changes: 1 addition & 1 deletion
2
...w3c/web-platform-tests/css/css-scroll-anchoring/heuristic-with-offset-update-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
PASS Positioned ancestors with dynamic changes to offsets trigger scroll suppressions. | ||
FAIL Positioned ancestors with dynamic changes to offsets trigger scroll suppressions. assert_equals: expected 200 but got 310 | ||
|
2 changes: 1 addition & 1 deletion
2
...d/w3c/web-platform-tests/css/css-scroll-anchoring/multicol-fragmented-anchor-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
content | ||
|
||
FAIL An element in a fragmented div should be able to be selected as an anchor node. assert_equals: expected 20 but got 10 | ||
PASS An element in a fragmented div should be able to be selected as an anchor node. | ||
|
2 changes: 1 addition & 1 deletion
2
...sts/imported/w3c/web-platform-tests/css/css-scroll-anchoring/opt-out-dynamic-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
content | ||
|
||
FAIL Dynamically styling 'overflow-anchor: none' on the anchor node should prevent scroll anchoring assert_equals: expected 150 but got 100 | ||
FAIL Dynamically styling 'overflow-anchor: none' on the anchor node should prevent scroll anchoring assert_equals: expected 150 but got 200 | ||
|
2 changes: 1 addition & 1 deletion
2
...ted/w3c/web-platform-tests/css/css-scroll-anchoring/opt-out-dynamic-scroller-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
content | ||
|
||
FAIL Dynamically styling 'overflow-anchor: none' on the scroller element should prevent scroll anchoring assert_equals: expected 150 but got 100 | ||
FAIL Dynamically styling 'overflow-anchor: none' on the scroller element should prevent scroll anchoring assert_equals: expected 150 but got 200 | ||
|
2 changes: 1 addition & 1 deletion
2
...ed/w3c/web-platform-tests/css/css-scroll-anchoring/position-change-heuristic-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL Position changes in document scroller. assert_equals: expected 200 but got 175 | ||
FAIL Position changes in scrollable <div>. assert_equals: expected 225 but got 200 | ||
FAIL Position changes in scrollable <div>. assert_equals: expected 200 but got 175 | ||
|
2 changes: 1 addition & 1 deletion
2
...ests/css/css-scroll-anchoring/position-change-heuristic-in-nested-scroll-box-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL Position changes in document scroller. assert_equals: expected 200 but got 175 | ||
FAIL Position changes in document scroller. assert_equals: expected 225 but got 200 | ||
FAIL Position changes in scrollable <div>. assert_equals: expected 225 but got 200 | ||
|
2 changes: 1 addition & 1 deletion
2
...tTests/scrollingcoordinator/mac/latching/scrolling-select-should-not-latch-mainframe.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.