commit | 97b87d124d1ce3e64bf18ffdb6be24a3bdd09ef8 | [log] [tgz] |
---|---|---|
author | Daniel Cheng <dcheng@chromium.org> | Wed Jan 30 22:01:03 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 30 22:01:03 2019 |
tree | 289094a3bbb7851c088621f27911bde3abd518fd | |
parent | e4b13876add0470f3a6122895136821875237667 [diff] |
Prepare page scale code for compositor being removed when frozen. When the main frame is remote and the RenderWidget is frozen, we'd like blink to have its WebWidgetClient and LayerTreeView removed so in the future the RenderWidget can be destroyed. This recovers from freezing by setting the page scale factor on the "new" compositor. We also clean up the page scale factor code with naming changes. The setting of page scale was weirdly tied to DidInvalidateRect in the WebWidgetClient for some historical reasons, and we detangle this. a) When layout says DidInvalidateRect() for WebViewPlugin, we don't need to update page scale, since it's not related and WebViewPlugin isn't composited and thus doesn't use page scale. b) When updating page scale we don't need to also DidInvalidateRect() on the WebWidgetClient. This does nothing for RenderWidget anymore, and we already call it each frame during layout for WebViewPlugin elsewhere. Oh and some dead code removal in RenderViewImpl cuz why not. R=dcheng@chromium.org Change-Id: Ieab66be71a5ae98108244e16f5efdf45d8693d75 Bug: 912193 Reviewed-on: https://chromium-review.googlesource.com/c/1416450 Commit-Queue: danakj <danakj@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#627608}
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 .