[go: nahoru, domu]

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}
6 files changed