Web Animations: Move TimedItem::activeDuration out of updateInheritedTime and add end time

We will require later that the end time of a TimedItem is calculated
before updating inherited time (for Player time calculations to get
the inherited time). This patch makes active duration able to be
retrieved straight away and adds end time. Note that the end time
function here doesn't take end delay into account as it isn't yet
implemented.

BUG=334927

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165559 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move preferred scrollbar style preference change listening from renderer to browser, 1 of 3.

This first part just addds a new parameter (via method overloading to keep
compatibility) that will be sent in an IPC from the browser.

BUG=306348

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165560 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Minor refactoring to avoid redundant calls to VisibleSelection::visibleStart()

We can avoid redundant calls to visibleStart() which indirectly calls
several functions like canonicalPosition, isCandidate, upstream,
downstream, etc. by using a local variable.

Current code already makes use of a local variable to store the VisiblePosition
returned by visibleStart(). Just preponing the creation of this
local variable would avoid few more redundant calls.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165561 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add use counter for WebKitMediaSource object usage.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165562 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gracefully handle cases when WebFrameClient::createChildFrame returns 0.

This can occur when the WebView is being closed or a navigation that
results in a cross process swap is occurring.

BUG=336014

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165563 bbb929c8-8fbe-4397-9dbb-9b2b20218538
The HTML parser should ignore incoming bytes when stopped, not just when detached, otherwise we might redundantly re-start the background parser.

Also added a few asserts to catch any future causes of the linked crash.

BUG=329603
R=abarth@chromium.org,eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165564 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Keep br while replacing plain texts with content ending with newline. 

The <br> after the insert position was removed while inserting a text ending with a newline. This caused the loss of the newline at the end of the inserted text. This fix adds extra condition checking for this scenario and keeps the <br> while replacing plain texts with content ending with newline.


BUG=121627

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165565 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[SVG] Disallow SVGViewSpec.viewBox tearoff creation after contextElement is destroyed.

BUG=336436
BUG=308818

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165566 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Deferred image decoding: clean up and remove unused scaling code

There are some code doing scaling with lanczos3 filtering in the
deferred image decoding path. This code was never used and is good to
remove.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@165567 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement 'scroll-behavior' parsing

This implements parsing for the 'scroll-behavior' CSS
property, part of the CSSOM View smooth scroll API.

This property is protected by a runtime flag.

Intent-to-implement:
https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/YLWs9N46XjQ/mK7rCJ26BqAJ

Spec: http://www.w3.org/TR/cssom-view/


BUG=243871

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

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