Trim the includes and forward declares for WebViewImpl

WebViewImpl includes tons of things it doesn't actually use resulting in
building it when touching files that are unrelated. Thin down the
includes to rebuild this file less often.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160229 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Widen expectation for flaky progress events test

Unreviewed gardening. progress-events-generated-correctly.html
previously flaked only on win rel, but now also seen on linux and win
debug.

TBR=pfeldman@chromium.org
BUG=280342
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160230 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Allowing document.write in Image documents asserts the page.

Check the document type before writing into it. Add tests for checking the
assert/crash in TestRunner.

BUG=307650
R=abarth, japhet

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160233 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Publish the location of results.html to user in keyboard interrupt scenario.

In case of Ctrl+C (keyboard interrupt), results.html is generated but user
is never notified neither of its generation nor stored location of it. It
is not required in regular usecase because we open the browser window with
results.html loaded, but in other usecase it should be notified to atleast
let the user know the result is stored for him in case he wishes to see it.

R=dpranke

BUG=None

TEST=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160234 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Vibration API: use the [Clamp] attribute.

This makes it so that Javascript input of -1 is converted
to 0 rather than 4294967295.

BUG=310138

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160235 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove redundant checks from SharedStyleFinder::canShareStyleWithElement

Many of the checks in canShareStyleWithElement are not needed because
Element::supportsStyleSharing checks the same thing and call that before putting
the element into the candidate list. This patch removes all the redundant checks
and switches parent to be a reference since we know the candidate will always have
a parent element from the check in supportsStyleSharing.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160236 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added the document referrer to the public WebDocument interface

There were existing methods to determine what the referrer should be for
a request sent in the context of the document but no way to get the
referrer of the current document from outside of Blink.

We need this to be able to do reporting of UMA metrics for pages that
came from a websearch click.

BUG=309021

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160237 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't make lots of virtual calls in shadowPseudoId

shadowPseudoId() doesn't need to be virtual anymore and it should not
call part() more than once since that's also virtual.

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

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