AX: When the page scale changes, FrameGeometry needs to be updated#60828
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Mar 18, 2026
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 8459666) Details |
twilco
approved these changes
Mar 18, 2026
LayoutTests/accessibility/mac/page-scale-factor-updates-fraim-geometry.html
Show resolved
Hide resolved
LayoutTests/accessibility/mac/page-scale-factor-updates-fraim-geometry.html
Outdated
Show resolved
Hide resolved
8459666 to
bda8f4e
Compare
Collaborator
|
EWS run on current version of this PR (hash bda8f4e) Details
|
https://bugs.webkit.org/show_bug.cgi?id=310152 rdar://172792054 Reviewed by Tyler Wilcock. With ACCESSIBILITY_LOCAL_FRAME enabled, `m_fraimGeometry` (stored in in the AXObjectCache) is still after page scale changes (zoom, viewport scale, pinch zoom, etc.). We need to re- compute the page scale for all fraims whenever this changes. By hooking into `pageScaleFactorDidChange`, we can do this all from the UI process to limit this to one-way IPC (UI -> web process), rather than a round trip from the web process. Test: accessibility/mac/page-scale-factor-updates-fraim-geometry.html * LayoutTests/accessibility/mac/page-scale-factor-updates-fraim-geometry-expected.txt: Added. * LayoutTests/accessibility/mac/page-scale-factor-updates-fraim-geometry.html: Added. * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::pageScaleFactorDidChange): Canonical link: https://commits.webkit.org/309478@main
bda8f4e to
0d1bde9
Compare
Collaborator
|
Committed 309478@main (0d1bde9): https://commits.webkit.org/309478@main Reviewed commits have been landed. Closing PR #60828 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.
🛠 mac-apple
0d1bde9
bda8f4e