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
Widen failure expectation for interrupted-all-transition test

Unreviewed gardening. Looks flaky on all platforms/build types.

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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160239 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update webkit.org lines to match the bots and delete cross-platform failures.

Avoided touching tests that look like they may pass if we just unskip them.

BUG=308779

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160240 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add myself to Source/web/OWNERS

This will make me a more effective reviewer of API cleanups in Source/core.

R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160241 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebaseline listbox bidi images

Unreviewed gardening - auto-rebaseline in 160220 may have done the
wrong thing.

BUG=85833
TBR=sanjoy.pal@samsung.com,ojan@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160242 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unstick background position origins

In the FillLayer class, reset the {x,y} origins each time {x,y}
position is set and require the caller to later call
setBackground{X,Y}Origin to override the default value. This fits
better with the way 'initial' values are set from the StyleBuilder and
avoids the problem of origins lingering in the FillLayer when setting
the 2-value versions of background-position.

Furthermore, split the flag m_backgroundOriginSet into one for each
property so that something like 'background-position-x:initial' won't
reset the position origin for both properties.

Also, remove code for handling 'initial' for {x,y} position, 'initial'
is already handled in the StyleBuilder further up the call chain.

BUG=304721

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160243 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove pthread_getspecific_direct code.

We were never using and half-removed it already. It also relies on internal
APIs and an internal header where OS X's libc effectively special-cases their
WebKit.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160244 bbb929c8-8fbe-4397-9dbb-9b2b20218538
cloneNode: Change the default value back to false

This reverts the revert done in
commit 45c50f19df78c69e26ca3c98854bbf35ebc51004.

We used to use false as the default value for cloneNode. It was
recently changed to default to true to match the DOM spec. However, the
DOM spec was changed back to use false as the default value.

This should be safe because until recently Firefox threw exceptions
if no argument was passed. IE11, WebKit, Presto and Chrome
(before r153733, July) uses false as the default.

BUG=309628
TBR=lushnikov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160245 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove support for the '-khtml-' and '-apple-' CSS prefixes.

The majority of Blink's support for '-khtml-' and '-apple-' prefixes was removed
in [1] and [2]. Looks like we missed a spot or two.

This CL removes the remaining occurrences from CSSParser-in.cpp and drops the
disabled test that would have tested this behavior.

[1]: https://bugs.webkit.org/show_bug.cgi?id=111890
[2]: https://codereview.chromium.org/13685003

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160246 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove bogus ASSERT(frame) from RenderObject::willBeDestroyed

This ASSERT was added way back in http://trac.webkit.org/changeset/48070 but
is false in practice (see attached bug). Given that we already handle frame-nullity
in this method, I don't see a reason to carry this legacy ASSERT around with us.

R=eae@chromium.org
BUG=308786

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

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

This reverts commit 481c9bfa6a21d9f1bcf9610820e2465c02c76173.

BUG=310266
TBR=esprehn@chromium.org,eseidel@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160248 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove some dead code.

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160249 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix tracking of the id attribute string if it is shared across elements.

The patch to remove AtomicStringImpl:
http://src.chromium.org/viewvc/blink?view=rev&rev=154790

Exposed a lifetime issue with strings for id attributes. We simply need to use
AtomicString.

BUG=290566

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

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