Update WebView/FrameView size from LayoutView::UpdateAfterLayout
Previously, this was set *after* layout had completed, via
FrameView::AdjustViewSize and WebViewImpl::LayoutUpdated.
The layout size of the full document must be known before the
WebView and FrameView can be resized, because the document size may
affect the minimum page scale factor, which will affect the
FrameView's size. The earliest that the full document's layout size
is known is after the LayoutView completes its block layout.
This patch updates the FrameView size in
LayoutView::UpdateAfterLayout, which is after the LayoutView has
finished block layout, but still in time for the LayoutView to use
the new sizes when updating its scrollbars (when root layer
scrolling is enabled).
The new test expectations are just paint invalidation reasons, which
are expected; and one case (resize-iframe-text.html) where the existing
invalidation geometry was too big, and this patch results in a smaller,
correct set of invalidations.
BUG=
701575
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url:
https://codereview.chromium.org/2860433002
Cr-Commit-Position: refs/heads/master@{#471275}
Committed:
https://chromium.googlesource.com/chromium/src/+/54a03d79877c3cacd79e37e33ec715abb3460bd7