commit | 834d10a5e7ee0893169c111ba9482cf4bd952a1e | [log] [tgz] |
---|---|---|
author | Patrick Noland <pnoland@google.com> | Mon Jan 22 22:26:21 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 22 22:26:21 2024 |
tree | a351b1bfc76f192dfd925603bca4eaa3e930a893 | |
parent | fe13ee9004bffe82a84a759cc8a998ee7f39901c [diff] |
[NTP][Toolbar] Post scroll progress notifications These notifications currently happen mid-layout, which makes it unreliable to synchronosuly mutate layout-affecting state in response. In the best case this state mutation succeeds and triggers a second layout pass in the same frame, which is bad for perceived performance. In the worst case, the affected view is left in a bad state (e.g. with the wrong width). postOnAnimation ensures the notification arrives very soon and that notifications will be delivered in order. Bug: 1492681 Change-Id: I58ad3f008d5b51d62c91ca86b74006d85b6b77fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5213490 Reviewed-by: Tomasz Wiszkowski <ender@google.com> Reviewed-by: Cathy Li <chili@chromium.org> Commit-Queue: Patrick Noland <pnoland@chromium.org> Cr-Commit-Position: refs/heads/main@{#1250483}
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.