Inserting list item when typing Enter in list item containing paragraph

This patch changes behavior of InsertParagraphSeparator command when inserting paragraph separator into list item containing paragraph to insert paragraph separator with clone of enclosing list item.

This new behavior is specified in the latest, May 20, 2012 version of HTML Editing specification and compatible with IE and FireFox.

BUG=224709, 222918
TEST=LayoutTests/editing/inserting/insert-paragraph-separator-in-paragraph-in-list.html
R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158070 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert r158037 - "Move FontSelector to StyleEngine."

This change caused a failure in content_browsertests under ASAN
(a use-after-free in ~CSSFontSelector).

See http://build.chromium.org/p/chromium.memory/builders/Linux%20ASAN%20Tests%20%282%29/builds/17540/steps/browser_tests/logs/stdio

Original code review: https://chromiumcodereview.appspot.com/23464076

TBR=dglazkov@chromium.org, kkania@chromium.org, japhet@chromium.org, simonhatch@chromium.org, eseidel@chromium.org
BUG=291287

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158071 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Localize variable parts in form validation messages.

Some form validation messages contain limit information or current value
length.  They are numbers or date/time, and we should localize them.

For rangeOverflow/rangeUnderflow:
We just apply localizeValue()

For tooLong:
We can't use localizeValue() because localizeValue() for text input types
does nothing. We add a function to Locale class, and it handles localization
of numbers.

Also, we remove some functions in LocalizedStrings.

BUG=161733
TEST=automated

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158072 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Promise init callback takes resolve and reject functions

The old DOM Promise spec is removed and the consensus[1] is updated.
PromiseResolver is removed and instead 2 functions are given to
the Promise init callback.

[1]: https://github.com/domenic/promises-unwrapping

Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=911213
WebKit: https://bugs.webkit.org/show_bug.cgi?id=120954

BUG=293904

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

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