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