commit | 73ebda830bedf9181d5717cb1010ae89a252e01a | [log] [tgz] |
---|---|---|
author | Stephen McGruer <smcgruer@chromium.org> | Fri Feb 01 19:09:25 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 01 19:09:25 2019 |
tree | 4d472045534e0c4266fe9dd0223216d1d950317d | |
parent | b76ea80f6715c4237a9518e95258eab010eb37a1 [diff] |
Update CSS prefers-reduced-motion dynamically on Mac and Windows Previously the content-side support for reduced motion for a frame was static and would not react to changes in the system settings until you created a new frame. This CL listens for notifications and recomputes the webkit preferences when that happens (which then causes the new prefers-reduced-motion value to be calculated). This CL also introduces a caching mechanism for the system setting, to avoid potentially expensive recomputation. Test: Tested manually on MacOS and Windows devices. Bug: 722548 Change-Id: I6be0822cc40a697a4373fbf53888d2219e5890f2 Reviewed-on: https://chromium-review.googlesource.com/c/1418498 Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Robert Flack <flackr@chromium.org> Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#628406}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .