Fix OOP <webview> resize and autosize.
This CL removes the dependency of updating guest's size based
on compositor frame: BPG::UpdateGuestSizeIfNecessary(). This
info is not readily available in --site-per-process since we
do not have a RWHVGuest. Instead, this CL uses
WebContentsObserver::ResizeDueToAutoResize to resize guest when
autosize is turned on.
This CL also changes the test to look at actual guest window
resizing in one test: testResizeEvents().
I've seen two tests seeing window.onresize with original guest
size (300x300) some times, I've added an exception for this
initial size, which should help deflake these tests. These tests
are:
testResizeWebviewResizesContent()
testResizeWebviewWithDisplayNoneResizesContent()
There's a dependent blink patch for this CL:
https://chromiumcodereview.appspot.com/
1309343002/
TBR=jam@chromium.org testing/buildbot/chromium.fyi.json
BUG=517291
Test=With --site-per-process, run a <webview> in a chrome app.
1) Notice resizing a <webview> works, e.g.
document.querySelector('webview').style.width = '1000px';
2) Notice that turning on autosize also works, e.g.
var w = document.querySelector('webview');
w.minheight = '400', w.maxheight = '800';
w.minwidth = '500', w.maxheight = '600';
w.setAttribute('autosize', true);
Review URL: https://codereview.chromium.org/
1262553003
Cr-Commit-Position: refs/heads/master@{#349205}