Call DOMWindow::finishedLoading from FrameLoader::checkLoadCompleteForThisFrame

Currently, calling DOMWindow::finishedLoading is called from DocumentLoader's
checkLoadComplete(), which is called from several different places. Just call
finishedLoading() once, from FrameLoader::checkLoadCompleteForThisFrame.

This also moves finishedLoading() to immediately after sending a didStopLoading
to the embedder. Because DOMWindow::finishedLoading's primary purpose is to
begin a page print, this ensures that print is not called until the embedder
has been notified that the load has stopped.

BUG=none, though the reorder might help resolve 365523

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172896 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Refactoring of emulation settings.

Moved settings to OverridesSupport.
Replaced usages of "remoteFrontend" parameter with more accurate checks.

BUG=353980

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172897 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ASSERTION FAILED: !begin.isIndefinite() in WebCore::SVGSMILElement::resolveFirstInterval

According to smil animation reference, max attribute cannot be 0.

This is a backport from WebKit r167761. Patch by Tamas Gergely and reviewed by Darin Adler.

R=pdr@chromium.org
BUG=367038

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

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