commit | eb1fe5485b437a580ab205870b4d31640301595b | [log] [tgz] |
---|---|---|
author | Christopher Cameron <ccameron@chromium.org> | Wed Feb 28 04:06:47 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 28 04:06:47 2018 |
tree | 9ae1ec37435811802d1679e29249488b11753df5 | |
parent | 6f4d1915dbc5f2bb56e29e0a3a1dc13407c884f5 [diff] |
Disable PauseForPendingResizeOrRepaints in AutoResize In RenderWidgetHostImpl::OnResizeOrRepaintACK, we post a task to base::ThreadTaskRunnerHandle::Get(). During resize, in RenderWidgetHostImpl::PauseForPendingResizeOrRepaints, we pump a nested run loop on ui::WindowResizeHelperMac::task_runner, which will not run this message. This ends up causing the message to be received at an unexpected or delayed time. Avoid this by disallowing PauseForPendingResizeOrRepaints for AutoResize. In principle the task could be posted to the WindowResizeHelperMac task runner, but it's hard to be certain that that would not introduce bugs. Bug: 816421 Change-Id: Iaf8bdcc99e4b40d41e2a9590e4436d07c450d403 Reviewed-on: https://chromium-review.googlesource.com/940444 Reviewed-by: Robert Liao <robliao@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#539701}
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 .