Handle surrogates in BidiResolver::determineParagraphDirectionality

TEST=unittest:BidiResolver.ParagraphDirectionSurrogates
BUG=322051

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162915 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: move capture stack setting from Settings to Timeline toolbar.

R=caseq@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162916 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix tag closing issues in the WebVTT tree builder

An end tag </foo> that does not match the currently open element should
be dropped.

An exception to the above however, is the </ruby> end tag which also
closes any currently open <rt>.

BUG=321038

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162917 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix corner-cases for WebVTT tokenizer escape handling

Handle cases such as "&<", "&&", "&" followed by non-alphanumeric
characters (and similar variations).

Fix test tc022 which assumed that a single "&" would be ignored.

TEST=media/track/opera/track/webvtt/parsing-cue-data/tests/entities.html
BUG=321139

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

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