mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-05-13 08:57:27 +00:00

The two happening at the same time can lead to the APZ autoscroll being cancelled due to APZ receiving a main-thread scroll offset update. To achieve this: - The content process assumes APZ is handling the autoscroll until told otherwise. - If the parent process knows APZ won't handle an autoscroll, it tells the content process via its response to the Autoscroll:Start message. This covers all cases where APZ doesn't handle the autoscroll, except the case where APZCTreeManager itself rejects the autoscroll and it lives in the compositor process rather than the parent process. - If APZCTreeManager rejects an autoscroll and it lives in the compositor process, it sends an 'autoscroll-rejected-by-apz' message to the content process. MozReview-Commit-ID: L62v4COai6W --HG-- extra : rebase_source : bc4c6417e77461634263defb88e67ed5036c454e