-
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.
REGRESSION (269897@main): [ Sonoma wk2 ] 2 tests in imported/w3c/web-…
…platform-tests/css/cssom-view/ are a constant failure https://bugs.webkit.org/show_bug.cgi?id=263925 rdar://117706782 Reviewed by Richard Robinson. Fix a bug introduced in 269897@main, and an older bug that prevented scroll-behavior-main-frame* tests from passing. In 269897@main the intermediate scrollTo() that we do when we have `requestedDataBeforeAnimatedScroll` data needs to also contribute its destination position to the animated scroll that happens second, but both `ScrollingTreeScrollingNode::handleScrollPositionRequest()` and `RemoteScrollingTreeMac::startPendingScrollAnimations()` failed to do this. Even wit this fix, two WPT tests were failing when they made the following sequence of programmatic scrolls: scrollBy(0, X, animated) scrollTo(0, 0) scrollBy(0, Y, animated) We'd end up scrolling to X + Y because `ScrollView::setScrollPosition()` early returned if there was no position change for the `scrollTo(0, 0)`. But we need to hit `requestScrollToPosition()` so that we have a chance to cancel the enqueued animated scroll, so remove the `!delegatesScrollingToNativeView()` check. * LayoutTests/platform/mac-ventura-wk2/TestExpectations: * LayoutTests/platform/mac-wk2/TestExpectations: * Source/WebCore/page/scrolling/ScrollingTreeScrollingNode.cpp: (WebCore::ScrollingTreeScrollingNode::handleScrollPositionRequest): * Source/WebCore/platform/ScrollView.cpp: (WebCore::ScrollView::setScrollPosition): * Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteScrollingTreeMac.mm: (WebKit::RemoteScrollingTreeMac::startPendingScrollAnimations): Canonical link: https://commits.webkit.org/270243@main
- Loading branch information
Showing
9 changed files
with
22 additions
and
19 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
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
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