In PageAnimator iterate through collected documents instead of frames

In PageAnimator, it's possible frame tree has been mutated by
Javascript. To avoid this, we iterator through documents collection
instead, and check whether they are still present in their frames.

This was part of CL 214953004, which got reverted in 335103004 when it
caused crbug.com/383946. So I am adding back the reverted CL in parts.
This part should be only related to crbug.com/359028.

BUG=359028

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179992 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Kill ui.js

Move remaining ui.js functionality into existing classes and elements.

BUG=400393
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179993 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of [SVG2] Make transform, gradientTransform and patternTransform presentation attributes.

Reason for revert:
Caused 10-50% performance regressions on svg, see http://crbug.com/402133.

Original issue's description:
> [SVG2] Make transform, gradientTransform and patternTransform presentation attributes.
>
> Spec:
> http://www.w3.org/TR/css3-transforms/#svg-transform
> http://www.w3.org/TR/css3-transforms/#svg-syntax
> http://www.w3.org/TR/css3-transforms/#svg-gradient-transform-pattern-transform
>
> BUG=369942
>
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179702

TBR=dschulze@chromium.org,ed@opera.com
NOTREECHECKS=true
BUG=369942

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179998 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Invalidation tests for :host-context.

We did not have any test coverage on :host-context and targeted style
recalc. Added a few tests.

R=chrishtr@chromium.org,esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179999 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Position overflow controls during layout.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180000 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Set SO_REUSEADDR on layout test server sockets on non-Windows systems

Code to set the flag was removed as part of debugging crbug.com/378444
but this causes ports to report as "in use" for some time after the
test server stops, meaning that re-running layout tests with only a
short delay may fail.

Restore setting the flag, but scoped to non-Windows systems.

BUG=378444
R=dpranke@chromium.org

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

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