commit | 4f44caa1b4678e6a149953c156b004f1becc4a20 | [log] [tgz] |
---|---|---|
author | Francois Doray <fdoray@chromium.org> | Fri Mar 23 15:48:05 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Mar 23 15:48:05 2018 |
tree | 0cb63a79722dbd28076a69b783a3ce090abfef39 | |
parent | 36b2e1e82bab94a2ad746fbb9af6656f9d306503 [diff] |
Don't compute occlusion when window with hidden parent is hidden/shown. A window with a hidden parent is not painted on the screen. Calling Hide() or Show() on it can't immediately affect occlusion and should therefore not cause occlusion states to be recomputed. This optimization is useful for when we hide a WebContentsViewAura. When we hide a WebContentsViewAura, Hide() is called on child RenderWidgetHostViewAura. There is no reason to recompute occlusion when that happens. Bug: 668690 Change-Id: Id02c195aa5e74313fdc790e365c19337615fcf2b Reviewed-on: https://chromium-review.googlesource.com/970848 Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#545462}
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 .