Line ending conversion should be able to handle strings with null chars.

Currently the line ending normalization functions returns an empty string
when a string including null characters is given.
This CL fixes the behavior.

BUG=274983
R=tkent

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

git-svn-id: svn://svn.chromium.org/blink/trunk@161908 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Animations CSS: Restart animations from the beginning when display is changed from 'none'

The spec [1] requires that setting the display property of a running animation
to 'none' causes it to be cancelled, and that updating it to any other value
causes the animation to start from the beginning.

Also adds a test to verify this behavior.

[1] http://dev.w3.org/csswg/css-animations/#animations

BUG=257591
R=dstockwell

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

git-svn-id: svn://svn.chromium.org/blink/trunk@161909 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Keep looking for allowed punctuation when punctuation that precedes the first letter is already found.

We keep looking for whitespace and allowed punctuation in order to find close punctuation
after checking first letter, but we need to do this when there is any punctuation
that precedes the first letter.

BUG=61724
TEST=fast/css/first-letter-punctuation-follow.html

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

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