Calendar Picker: Support RTL layout
https://bugs.webkit.org/show_bug.cgi?id=83668
Reviewed by Hajime Morita.
.:
* ManualTests/forms/calendar-picker.html:
Add Arabic parameters.
Add <select> to select a locale.
Source/WebCore:
Manual test: ManualTests/forms/calendar-picker.html
* Resources/calendarPicker.js:
(layout): If params.isRTL, add dir=rtl to the body.
(DaysTable.prototype._handleKey): Reverse Left and Right cursor keys if RTL.
* html/shadow/CalendarPickerElement.cpp:
(WebCore::addProperty): Add addProperty() with a bool value.
(WebCore::CalendarPickerElement::writeDocument):
Check the direction of the first character of localized January label,
and pass it as isRTL property.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114356
268f45cc-cd09-0410-ab3c-
d52691b4dbfc