Timeline: speed up TimelineFlameChart.setSelection

When user clicks on an item the view gets an event with entryIndex and
notifies TimelinePanel about that in term of records. As a result the
panel calls setSelection and it takes O(N) time to converts record back to entryIndex.

BUG=

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

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

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

BUG=369609
TBR=enne@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@174179 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix edge cases in CSS animations keyframe timing functions

This patch fixes the cases where we specify a timing function list or
inherit for a keyframe timing function. These were both broken by
crrev.com/265453005. The second case was broken prior to that patch and
would not correctly inherit the parent's timing function.

In the linked change, we changed from applying all animation properties
and reading out the timing-function value to simply converting the
individual timing-function value. This failed to handle some edge cases,
which we fix in this patch.

I've also re-added the defensive check in mapAnimationTimingFunction,
since we'll still end up getting in here with CSSValues that aren't
otherwise handled here, as described in the comment.

BUG=372820

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

git-svn-id: svn://svn.chromium.org/blink/trunk@174180 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Overload resolution: ignore extra arguments

2.5 year old bug, now an easy fix.

Implement this step of the algorithm:
2. Initialize argcount to be min(maxarg, n).

This should be safe: it just allows looser calls (JS-style), and does not
change any existing correct calls.

R=haraken, jsbell
BUG=102925

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

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