[BlackBerry] Page Popup for Month is non-functional.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2012 16:01:46 +0000 (16:01 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Sep 2012 16:01:46 +0000 (16:01 +0000)
https://bugs.webkit.org/show_bug.cgi?id=96651

Patch by Jessica Cao <jecao@rim.com> on 2012-09-13
Reviewed by Rob Buis.

Hook up support for Month popup.

* WebCoreSupport/DatePickerClient.cpp:
(WebCore::DatePickerClient::generateHTML):
* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::openDatePopup):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@128471 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/blackberry/ChangeLog
Source/WebKit/blackberry/WebCoreSupport/DatePickerClient.cpp
Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp

index dffa353..0bcb057 100644 (file)
@@ -1,3 +1,17 @@
+2012-09-13  Jessica Cao  <jecao@rim.com>
+
+        [BlackBerry] Page Popup for Month is non-functional.
+        https://bugs.webkit.org/show_bug.cgi?id=96651
+
+        Reviewed by Rob Buis.
+
+        Hook up support for Month popup.
+
+        * WebCoreSupport/DatePickerClient.cpp:
+        (WebCore::DatePickerClient::generateHTML):
+        * WebKitSupport/InputHandler.cpp:
+        (BlackBerry::WebKit::InputHandler::openDatePopup):
+
 2012-09-13  Antonio Gomes  <agomes@rim.com>
 
         [BlackBerry] ASSERT failure in InRegionScrollableArea::InRegionScrollableArea
index b652bdf..50942ca 100644 (file)
@@ -74,6 +74,8 @@ void DatePickerClient::generateHTML(BlackBerry::Platform::BlackBerryInputType ty
         source.appendLiteral("window.popupcontrol.show(\"DateTimeLocal\", ");
         break;
     case BlackBerry::Platform::InputTypeMonth:
+        source.appendLiteral("window.popupcontrol.show(\"Month\", ");
+        break;
     case BlackBerry::Platform::InputTypeWeek:
     default:
         break;
index 6e8715a..690c1bb 100644 (file)
@@ -972,7 +972,8 @@ bool InputHandler::openDatePopup(HTMLInputElement* element, BlackBerryInputType
     case BlackBerry::Platform::InputTypeDate:
     case BlackBerry::Platform::InputTypeTime:
     case BlackBerry::Platform::InputTypeDateTime:
-    case BlackBerry::Platform::InputTypeDateTimeLocal: {
+    case BlackBerry::Platform::InputTypeDateTimeLocal:
+    case BlackBerry::Platform::InputTypeMonth: {
         // Check if popup already exists, close it if does.
         m_webPage->m_page->chrome()->client()->closePagePopup(0);
         String value = element->value();