[CSS Grid Layout] Fix the handling of infinity in track growth limits

The growth limit of content sized tracks is initialized to
infinity which is internally represented as -1. We were not
specialcasing this situation, and thus, -1 was used in the
computations as any other value. This change makes the code aware
of the existence of infinites (like when sorting tracks by groth
potential or when initializing the track growth limits).

There was another bug related to infinities. The code that was
replacing a infinite growth limit by a finite one was not using
the proper indexes so the tracks that were being updated were the
wrong ones.

Finally this change unveiled a bug in the call to
distributeSpaceToTracks(). Sometimes the space to be distributed
might be negative or 0. In the former case that lead to wrong
computations while in the latter we were doing some extra job by
calling the function as there were nothing to do.

BUG=392200

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179621 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix fading out media controls

This patch fixes the media controls panel to fade out, instead of appear
instantly. This behaviour was broken in blink r175153 which changed how
we stored the parsed data for CSS transitions.

The fade in behaviour has actually been broken for a long time, since
CSS transitions will not start if the before style has display set to
none. I've not tried to fix this issue in this patch.

BUG=398279

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179622 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark video tests for rebaseline now that composited video is on.

TBR=scherkus
BUG=365857

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179623 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Async call stacks for FileSystem API part 2.

Instrumenting FileReader & FileWriter.

BUG=272416, 390863
R=pfeldman, yurys, kinuko@chromium.org, nhiroki@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179624 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix media/video expectations to need rebaseline for composited video.

TBR=scherkus
BUG=365857

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179625 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add support for RelatedEvent.

Add support for RelatedEvent which is needed to implement contextmenu.
Specifications:
http://www.whatwg.org/specs/web-apps/current-work/#relatedevent

BUG=87553

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179626 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused UseCounter features

These are the reviews in which the enum values became unused:

SVGInstanceRoot:
https://codereview.chromium.org/272523002

PromiseConstructor/PromiseCast/PromiseReject/PromiseResolve:
https://codereview.chromium.org/293933002

TextAutosizingLayout:
https://codereview.chromium.org/346603005

PrefixedElementRequestPointerLock/PrefixedDocumentExitPointerLock/PrefixedDocumentPointerLockElement:
https://codereview.chromium.org/437443005

PrefixedConvertPointFromPageToNode/PrefixedConvertPointFromNodeToPage:
https://codereview.chromium.org/428533003

MixedContentTextTrack:
https://codereview.chromium.org/348853009

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179627 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r179556

http://src.chromium.org/viewvc/blink?view=revision&revision=179556

BUG=296620
TBR=senorblanco@chromium.org

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

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