[DevTools] Stabilize network-dosument-initiator test.

BUG=272725

Review URL: https://chromiumcodereview.appspot.com/22802010

git-svn-id: svn://svn.chromium.org/blink/trunk@156445 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Timeline > Records section is not displayed as intended.

The _scheduleRefresh can call _refresh synchronously and asynchronously.
The _refresh calls _refreshRecords, which uses _containerElementHeight and _graphRowsElementWidth,
thus these values should be updated before calling the _scheduleRefresh,
in case it calls the _refresh synchronously.

BUG=276197
R=yurys@chromium.org,caseq@chromium.org,pfeldman@chromium.org

Review URL: https://chromiumcodereview.appspot.com/23191005

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

FileWriter can directly call WebFileWriter instead.

BUG=257349

Review URL: https://chromiumcodereview.appspot.com/23199005

git-svn-id: svn://svn.chromium.org/blink/trunk@156447 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Separate drawing and revealing execution line, remove unused and duplicating code.

R=pfeldman

Review URL: https://chromiumcodereview.appspot.com/23125010

git-svn-id: svn://svn.chromium.org/blink/trunk@156448 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Compute the percentage height for the block when the containing block has viewport percentage specified.

BUG=225664

Review URL: https://chromiumcodereview.appspot.com/18434003

git-svn-id: svn://svn.chromium.org/blink/trunk@156449 bbb929c8-8fbe-4397-9dbb-9b2b20218538
outerHTML and outerText should AttachLazily

Just like innerHTML and innerText the outer versions should use lazy attach.

Review URL: https://chromiumcodereview.appspot.com/23287004

git-svn-id: svn://svn.chromium.org/blink/trunk@156450 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Ensure touch hit rects are cleared on layers that have no remaining rects

With this change the test results are now back to the same as what they were when using the stored changed rects instead of reading the real rects back from the compositor (http://crbug.com/270922).

BUG=271747

Review URL: https://chromiumcodereview.appspot.com/22884005

git-svn-id: svn://svn.chromium.org/blink/trunk@156451 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Ensure keySplines is valid in SMIL animations

This patch fixes a crash in SMIL animations when keySplines are not
specified. The SMIL spec is clear on this:
http://www.w3.org/TR/2001/REC-smil-animation-20010904/#AnimFuncCalcMode
"If there are any errors in the keyTimes specification (bad values,
too many or too few values), the animation will have no effect."

This patch simply checks that keyTimes is not empty. Previously,
splinesCount was set to be m_keySplines.size() + 1 in
SVGAnimationElement.cpp; this patch changes splinesCount to be equal
to m_keySplines.size() to make the logic easier to follow and to
match other checks in SVGAnimationElement::startedActiveInterval.

BUG=276111

Review URL: https://chromiumcodereview.appspot.com/23254006

git-svn-id: svn://svn.chromium.org/blink/trunk@156452 bbb929c8-8fbe-4397-9dbb-9b2b20218538
CSS Animations: Clamp to avoid underflow when blending unsigned values

Previously our implementation could underflow when given a timing function that
produced values outside 0-1.

This change clamps any possible underflow of unsigned interpolation to produce
0. This affects interpolation of the following properties:
border-*-width (specified to be interpolated as length)
-webkit-column-rule-width (specified to be interpolated as length)
-webkit-column-count (specified to be interpolated as integer)
outline-width (specified to be interpolated as length)

Interpolation of these types is defined here:
http://dev.w3.org/csswg/css-transitions/#animtype-length
http://dev.w3.org/csswg/css-transitions/#animtype-integer

Both are "interpolated as real numbers" and integer is then "converted to an
integer by rounding to the nearest integer"

Clamping to 0 matches the behavior of Firefox for the test added here.

BUG=276109

Review URL: https://chromiumcodereview.appspot.com/23287005

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