Update all WebContents on resize event
Upon screen resize, only the WebContents on the front got the timely update while those in the back were updated later when they got to the front. This has a caveat when working with Android tabswitcher where the one in the background can be shown without it going fore- ground as reported in the bug. This CL fixes it by enumerating all the WebContents and update their size when the resize event occurs. This had been previously handled by each |ContentView.onSizeChanged| per WebContents, but r522517 changed the way Chrome handles the resize event. So this should also be taken care of by CompositorViewHolder for each WebContents as well. Bug: 798277 Change-Id: I4b0d25850ded812668e5bdbba52c4898492bd9cd Reviewed-on: https://chromium-review.googlesource.com/848758Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/master@{#527121}
Showing
Please register or sign in to comment