Force-restart adb when setting up the device at the beginning of the run.

This ports a change over from chromium r229931 / codereview.chromium.org/32163002
to forcibly restart adb on each connected device at the beginning of each webkit_tests
in the hopes of making it more reliable.

TBR=bulach@chromium.org, tonyg@chromium.org, peter@chromium.org
BUG=305040

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163674 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Allow TextIterator to enter author shadow roots.

This patch adds yet another iteration state to TextIterator so that it can
enter author shadow roots. This is the core change for fixing bug 244955,
but does not fix the bug (yet).

This change adds a new TextIteratorBehavior called
TextIteratorEntersAuthorShadowRoots. If this option is set, author shadow roots
are visited before UA shadow root or child nodes are visited. Author shadow
roots are visited from youngest to oldest, because the youngest takes
precedence on rendering.

After this change is landed, I will write a change that lets findPlainText()
use the option added in this change, and we'll be all set (hopefully)!

BUG=244955

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163675 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add type casting functions for subclasses of Entry/EntrySync, and use them.

This CL helps to detect bad casts.

BUG=309516

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163676 bbb929c8-8fbe-4397-9dbb-9b2b20218538
FastTextAutosizing: apply inflation to parent RenderBlock.

This patch boosts the font size of both the parent block and children
in FastTextAutosizer::inflate. Previously, the parent block would not
get inflated which caused surprising line-height bugs where text would
overlap other text on subsequent lines.

This patch adds a test that verifies that the inflated font size
is observable via javascript. Before this patch, the parent block
did not get autosized so this test would fail. This test trivially
passes with the existing autosizer.

TBR=pdr@google.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163677 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Repair early return when the matched properties cache is hit

This was accidently removed in r325799 [1]. The structure of the code made this
hard to detect in review :(

[1] https://src.chromium.org/viewvc/blink?view=rev&revision=163497

BUG=327454

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163678 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add check to run-bindings-tests for excess files

Renaming or deleting IDL test cases can leave cruft, b/c we don't check
that all files are actually generated by run-bindings-tests.
For example, this required the following recent CL:
Remove V8TestSerializedScriptValueInterface.cpp
https://codereview.chromium.org/107093008

This adds a check to avoid this in future.
Also some associated refactoring of run-bindings-tests.

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

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