Webkit: use fabs() for double

fabsf() is for float, use fabs() for double instead.

BUG=chromium:348044

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168557 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Dispatch input event for Range element keyboard event

For any value update, dispatch both input and change event.

Also removes extra dispatch change event, as event are dispatch from TextFieldInputType:setValue.

R=tkent, keishi1
BUG=345611
TEST=On keyboard event, both oninput and onchange event are triggered

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168558 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Animations: define distance for AnimatableColor

Distance is defined in
http://dev.w3.org/fxtf/web-animations/ section 4.1.3.5

Web Animations use property distance calculations in paced keyframe animation effects, in assigning the timing for keyframes so that a 'paced' property changes at constant velocity.

BUG=348896

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168559 bbb929c8-8fbe-4397-9dbb-9b2b20218538
First step to remove wallClockTime from animation interface.

We are currently removing trying to remove all references to base::Time (wall
clock time) from Chrome/Blink compositor/graphics stack.

This requires multiple two-sided patches. Following the process found at
https://groups.google.com/a/chromium.org/d/msg/chromium-dev/ukaRczAK6t8/0ludyZ1Nu4cJ

The steps are;
 * (This Patch) -- Adding monotonic only API to Blink's animation delegate interface
   https://codereview.chromium.org/185633002

 * Making the delegate adapter use monotonic only API
   https://codereview.chromium.org/185643002

 * Remove the wallClockTime API from Blink/WebKit.
   https://codereview.chromium.org/185393005

BUG=299945

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168560 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement addPath() method for Path object

Intent to implement on blink-dev:
https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/addPath/blink-dev/YY-FmD8Efhc/y4Ag3pGF-toJ

BUG=159839

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168561 bbb929c8-8fbe-4397-9dbb-9b2b20218538
MediaStream API: Addding support for UA specific error messages for gUM
The spec now says that getUserMedia error messages are UA specific with
the exception for PermissionDeniedError and ConstraintNotSatisfied.

BUG=132812

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168562 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Skip 'accessibilityController' property in the cached properties test

https://codereview.chromium.org/172263002/ moves AccessibilityController
from CppBoundClass to gin::Wrappable, and that CL changes this cached-
properties test's result so that 'accessibilityController' is enumerated
as properties of an object. However, it is hard to expect a stable cache
result of WebAXObject of AccessibilityController for now.

BUG=297480, 331301, 347331

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168564 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Continue recording object allocation after navigation

Old profile is removed on HeapProfiler.resetProfiles message and a new one is added immediately to collect all object allocation events from the backend after navigation.

BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168565 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of DevTools: Enable antialiasing in the pie chart. (https://codereview.chromium.org/179853002/)

Reason for revert:
This change introduced significant performance penalty - paint time prevents timeline from animating even at 30 fps.

Original issue's description:
> DevTools: Enable antialiasing in the pie chart.
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168025

TBR=yurys@chromium.org,caseq@chromium.org,alph@chromium.org
NOTREECHECKS=true
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168566 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Sync Blob.close() behavior wrt updated spec.

The File API now defines Blobs as having a readability state of
opened/closed, http://dev.w3.org/2006/webapi/FileAPI/#readabilityState
With close() naturally making the Blob enter the 'closed' state,

  http://dev.w3.org/2006/webapi/FileAPI/#close-method

Like the FileReader operations, Blob methods will now throw
InvalidStateError when passed a Blob in such a 'closed' state.

Update the implementation to follow the spec.

R=kinuko@chromium.org
BUG=344820

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168567 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unneeded destructors and add finalization support to various classes.

Issues reported by the Blink GC clang plugin.

R=haraken@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168568 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Small refactoring of InspectorView

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168569 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Apply 'x-content-type-options' check to dynamically inserted script.

BUG=348581

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168570 bbb929c8-8fbe-4397-9dbb-9b2b20218538
hr color attribute not working.

The noshade attribute is a boolean attribute and when set on hr element
it shows a gray color. When there is color attribute the default gray
color should be replaced by the color mentioned by the color attribute.
Firefox and IE show the same behaviour but Blink is different. Making
the behaviour of Blink similiar to Firefox and IE's behaviour.

When the color attribute is present that value is applied and the
default gray color is ignored. Incase of no color attribute the default
gray color is applied.

I already landed this patch on Webkit. Just modified the layout test file.
http://trac.webkit.org/changeset/161334

R=esprehn@chromium.org,eseidel@chromium.org
BUG=175359

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168571 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge/rename two MediaControlElements into their parent classes

MediaControlPanelMuteButtonElement/MediaControlPanelVolumeSliderElement
were the only classes that inherited
MediaControlMuteButtonElement/MediaControlVolumeSliderElement.

Remove the m_panelMuteButton->show() in MediaControls::reset(), because
there is nothing that ever hides the button in the first place.

BUG=341813

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168572 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] Use Render methods, rather than style, to
 determine shrink-to-fit behavior

In order to determine whether the RemainingSpace is 
undetermined or not (shrink-to-fit) the current algorithm 
is checking out the style for clarifying if the Render object 
is float or absolute positioned.

It's better to use the Render functions instead, since the 
style might be applied or not, depending on several factors, 
like CSS properties inheritance.

BUG=79180, 234204

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

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