diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebKit/chromium/src/WebInputElement.cpp | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebKit/chromium/src/WebInputElement.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/WebInputElement.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/WebKit/chromium/src/WebInputElement.cpp b/Source/WebKit/chromium/src/WebInputElement.cpp index f5d52da80..c0037a0ef 100644 --- a/Source/WebKit/chromium/src/WebInputElement.cpp +++ b/Source/WebKit/chromium/src/WebInputElement.cpp @@ -31,9 +31,11 @@ #include "config.h" #include "WebInputElement.h" +#include "HTMLDataListElement.h" #include "HTMLInputElement.h" #include "HTMLNames.h" #include "TextControlInnerElements.h" +#include "WebNodeCollection.h" #include "platform/WebString.h" #include <wtf/PassRefPtr.h> @@ -151,6 +153,21 @@ bool WebInputElement::isChecked() const return constUnwrap<HTMLInputElement>()->checked(); } +bool WebInputElement::isMultiple() const +{ + return constUnwrap<HTMLInputElement>()->multiple(); +} + +WebNodeCollection WebInputElement::dataListOptions() const +{ +#if ENABLE(DATALIST) + HTMLDataListElement* dataList = static_cast<HTMLDataListElement*>(constUnwrap<HTMLInputElement>()->list()); + if (dataList) + return WebNodeCollection(dataList->options()); +#endif + return WebNodeCollection(); +} + bool WebInputElement::isSpeechInputEnabled() const { #if ENABLE(INPUT_SPEECH) @@ -218,5 +235,4 @@ WebInputElement* toWebInputElement(WebElement* webElement) return static_cast<WebInputElement*>(webElement); } - } // namespace WebKit |