Title: [116259] trunk/Source/WebKit/chromium
Revision
116259
Author
[email protected]
Date
2012-05-06 19:10:27 -0700 (Sun, 06 May 2012)

Log Message

[chromium] Add WebKit API to access multiple attribute of input element
https://bugs.webkit.org/show_bug.cgi?id=85355

Reviewed by Kent Tamura.

We need this to implement the datalist UI for <input type=email multiple>.

* public/WebInputElement.h:
(WebInputElement):
* src/WebInputElement.cpp:
(WebKit::WebInputElement::isMultiple):
(WebKit):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (116258 => 116259)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-05-07 01:50:45 UTC (rev 116258)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-05-07 02:10:27 UTC (rev 116259)
@@ -1,3 +1,18 @@
+2012-05-06  Keishi Hattori  <[email protected]>
+
+        [chromium] Add WebKit API to access multiple attribute of input element
+        https://bugs.webkit.org/show_bug.cgi?id=85355
+
+        Reviewed by Kent Tamura.
+
+        We need this to implement the datalist UI for <input type=email multiple>.
+
+        * public/WebInputElement.h:
+        (WebInputElement):
+        * src/WebInputElement.cpp:
+        (WebKit::WebInputElement::isMultiple):
+        (WebKit):
+
 2012-05-06  Adam Barth  <[email protected]>
 
         CSP should let sites both enforce one policy and monitor another

Modified: trunk/Source/WebKit/chromium/public/WebInputElement.h (116258 => 116259)


--- trunk/Source/WebKit/chromium/public/WebInputElement.h	2012-05-07 01:50:45 UTC (rev 116258)
+++ trunk/Source/WebKit/chromium/public/WebInputElement.h	2012-05-07 02:10:27 UTC (rev 116259)
@@ -85,6 +85,7 @@
         WEBKIT_EXPORT int selectionEnd() const;
         WEBKIT_EXPORT bool isValidValue(const WebString&) const;
         WEBKIT_EXPORT bool isChecked() const;
+        WEBKIT_EXPORT bool isMultiple() const;
 
         WEBKIT_EXPORT WebNodeCollection dataListOptions() const;
 

Modified: trunk/Source/WebKit/chromium/src/WebInputElement.cpp (116258 => 116259)


--- trunk/Source/WebKit/chromium/src/WebInputElement.cpp	2012-05-07 01:50:45 UTC (rev 116258)
+++ trunk/Source/WebKit/chromium/src/WebInputElement.cpp	2012-05-07 02:10:27 UTC (rev 116259)
@@ -153,6 +153,11 @@
     return constUnwrap<HTMLInputElement>()->checked();
 }
 
+bool WebInputElement::isMultiple() const
+{
+    return constUnwrap<HTMLInputElement>()->multiple();
+}
+
 WebNodeCollection WebInputElement::dataListOptions() const
 {
 #if ENABLE(DATALIST)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to