Put date into field that was used to activate DatePicker instead of currectly focused...
authorRafal Lelusz <r.lelusz@samsung.com>
Tue, 8 Oct 2013 12:14:38 +0000 (14:14 +0200)
committerRafal Lelusz <r.lelusz@samsung.com>
Mon, 14 Oct 2013 12:10:59 +0000 (14:10 +0200)
commit7f4e4b6a5b2319576545e5fd22c99e55b7a0299a
treee5be16bfee12565fb234ec62e3bdced82eb62fdf
parent9a125270e6256666066ccfb648b6b63f20c9d0c9
Put date into field that was used to activate DatePicker instead of currectly focused field.

[Title] Show date in the correct field after DatePicker closes. Remember field that activated DatePicker and use it instead of focused field.
[Issue] N_SE-52629
[Problem] Date value is inserted into focused fields, which might not be date field that activated DatePicker.
[Cause] When asyncronic event is sent from WebProcess to UIProcess, for a short while focus chaning events are still active on page and can lead to focus move.
In order to put new text into correct field, we not longer put new text into focused field, but store the target node and store new text into this target node.
[Solution] Insert date value into last clicked or entered field.

Change-Id: Idbe7d9dadb8d68ab2c342e249a6137d7a533eb43
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/html/HTMLInputElement.cpp
Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/API/efl/ewk_view.h
Source/WebKit2/UIProcess/API/efl/tizen/InputPicker.cpp
Source/WebKit2/UIProcess/WebPageProxy.h
Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp
Source/WebKit2/WebProcess/WebPage/WebPage.h
Source/WebKit2/WebProcess/WebPage/WebPage.messages.in
Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp