Stage Manager resize is very jumpy#45877
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom May 25, 2025
Merged
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 64348a4) Details |
64348a4 to
0b404ad
Compare
Collaborator
|
EWS run on previous version of this PR (hash 0b404ad) Details |
rr-codes
reviewed
May 24, 2025
Member
|
Seems reasonable, if we replace |
0b404ad to
bbf8a20
Compare
Collaborator
|
EWS run on previous version of this PR (hash bbf8a20) Details |
whsieh
approved these changes
May 24, 2025
bbf8a20 to
621b6c0
Compare
Collaborator
|
EWS run on current version of this PR (hash 621b6c0) Details |
https://bugs.webkit.org/show_bug.cgi?id=293530 rdar://151952483 Reviewed by Wenson Hsieh. Fix two bugs with the "automatic live resize" mechanism: 1) In _beginLiveResize, we record the current scroll position; in _updateLiveResizeTransform we pass the scroll position through _contentOffsetAdjustedForObscuredInset before comparing it to the current one. But, the originally saved scroll position had the obscured inset factored into it. Subtract it out so that the math works out (this didn't cause trouble where automatic live resize was originally introduced, on visionOS, because it has no obscured insets). 2) Don't start a animated resize if we're about to kick off an automatic live resize. The precise timing of `_beginLiveResize` vs. clients calling into `_beginAnimatedResizeWithUpdates` is hard to guarantee, so make sure that if `_beginAnimatedResizeWithUpdates` is called first in a situation where we *will* start a live resize, we bail from the animated resize. We already guard against animated resize happening *during* live resize, we just missed this ordering. * Source/WebKit/Platform/spi/ios/UIKitSPI.h: * Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView _canBeginAutomaticLiveResize]): (-[WKWebView _beginLiveResize]): (-[WKWebView _beginAnimatedResizeWithUpdates:]): Canonical link: https://commits.webkit.org/295400@main
621b6c0 to
06265c0
Compare
Collaborator
|
Committed 295400@main (06265c0): https://commits.webkit.org/295400@main Reviewed commits have been landed. Closing PR #45877 and removing active labels. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
06265c0
621b6c0
🧪 ios-wk2-wpt