Chrome_Win: Renderer Crash - WebCore::FrameView::setFrameRect

This crash is caused by r166295
ismainframe check needs to be added before using the page

BUG=340580

Review URL: https://codereview.chromium.org/151363003

git-svn-id: svn://svn.chromium.org/blink/trunk@166431 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gate unprefixed MediaSource endOfStream() and setDuration() on asynch appends

Matches the current MSE spec's requirement that MediaSource.endOfStream()
and MediaSource.duration= throw exception if any of the source
buffers are pending completion of asynchronous append.
Also adds enforcement (including prefixed implementation) that the
'error' argument of endOfStream() either be within the current spec's
EndOfStreamError enum or not be set. This invalidates null and
empty string values in anticipation that the spec is updated similarly.
Adds relevant layout tests.

R=acolwell@chromium.org,scherkus@chromium.org
BUG=337900
TEST=New tests fail without patch, all MSE layout tests pass with patch on local linux

Review URL: https://codereview.chromium.org/147553002

git-svn-id: svn://svn.chromium.org/blink/trunk@166432 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Remove the layout timer (https://codereview.chromium.org/145663012/)

Reason for revert:
Broke browser_tests:DeclarativeContentApiTest.Overview & content_browsertests:SiteIsolationPolicyBrowserTest.CrossSiteDocumentBlockingForDifferentTargets.

Original issue's description:
> Remove the layout timer
> 
> As discussed on blink-dev, we want to remove the layout timer
> in order to better synchronize work with the compositor.
> Prior to this CL, we'd trigger layout at arbitrary times,
> which meant we could end up doing layout multiple times per
> frame unnecessarily.
> 
> BUG=340357
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166415

TBR=ojan@chromium.org,eseidel@chromium.org,abarth@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=340357

Review URL: https://codereview.chromium.org/154273002

git-svn-id: svn://svn.chromium.org/blink/trunk@166433 bbb929c8-8fbe-4397-9dbb-9b2b20218538