commit | 3b3c412dc32f81872e86337c998574e88036fd1b | [log] [tgz] |
---|---|---|
author | Mike Wasserman <msw@chromium.org> | Fri Aug 11 16:54:59 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 11 16:54:59 2023 |
tree | 665b80e05252237bfbbd9e94aa13d9bcba1f5476 | |
parent | 3ed127a4ec08f5b1b32bb2df264c8d11f9c99c24 [diff] |
Fix custom cursor scaling logic for viewport checks Fix some cases where custom cursor images escape the viewport. - Apply display scale factor to fix High-DPI on all desktop OSes - Use the ui::Cursor hotspot clamped to custom image dimensions - Apply macOS's accessibility cursor scale factor, plus plumbing (other OS cursor scaling doesn't affect custom images for now) (note: we can skip plumbing if stale startup values suffice) Update and expand the relevant Blink unit test. Fixed: 1357442, 1455005 Change-Id: Id4f0d617210cdabdd616627217e661cc462f2291 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4730733 Commit-Queue: Mike Wasserman <msw@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org> Reviewed-by: Jeremy Roman <jbroman@chromium.org> Reviewed-by: Henrique Ferreiro <hferreiro@igalia.com> Reviewed-by: Ken Buchanan <kenrb@chromium.org> Cr-Commit-Position: refs/heads/main@{#1182635}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.