Fix a crash when a form control is in a past naems map of a demoted form element.

Note that we wanted to add the protector in FormAssociatedElement::setForm(),
but we couldn't do it because it is called from the constructor.

BUG=326854
TEST=automated.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163680 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace static_casts with existing casting helper functions.

BUG=309516

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163681 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove keyboard input timeout for date, datetime-local, month, time, and week input types on non-Android.

We had a feature that a numeric field in a date/time input field reset keyboard
input state if a user typed nothing for one second. This behavior was annoying
for slow-typing users. We just remove it.

BUG=232296

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163682 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Show spinbutton in input[type=number] only if the field is editable and focused/hovered.

Note for test changes:
We add focus() to some tests. We enable a spin button when the owner
input element is hovered, and these tests move mouse cursor on the input
by eventSender.mouseMoveTo(). However we have no chance to update
input style before the following eventSender.mouseDown(). Calling focus()
is a simple workaround.

BUG=325496
TEST=automated

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163683 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add exception to run-bindings-test for .svn directory

.svn on try servers shows up as an excess output file,
causing run-bindings-tests to fail (blocking CLs).
This fixes it.

Followup to:
Add check to run-bindings-tests for excess files
https://codereview.chromium.org/112463002/

NOTRY=true
TBR=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163684 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Let WebViewImpl::textInputInfo() query the focused element when selection is empty

This function should return the most accurate information about current text input
based on focus and selection. This change rearranges it so that it can return available
values based on querying the focused element even if the selection is not updated yet.
This will be used in chromium to fix an input method related issue.

BUG=318460

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

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