| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 return constUnwrap<HTMLInputElement>()->checked(); | 183 return constUnwrap<HTMLInputElement>()->checked(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 bool WebInputElement::isMultiple() const | 186 bool WebInputElement::isMultiple() const |
| 187 { | 187 { |
| 188 return constUnwrap<HTMLInputElement>()->multiple(); | 188 return constUnwrap<HTMLInputElement>()->multiple(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 WebNodeCollection WebInputElement::dataListOptions() const | 191 WebNodeCollection WebInputElement::dataListOptions() const |
| 192 { | 192 { |
| 193 #if ENABLE(DATALIST_ELEMENT) | |
| 194 HTMLDataListElement* dataList = static_cast<HTMLDataListElement*>(constUnwra
p<HTMLInputElement>()->list()); | 193 HTMLDataListElement* dataList = static_cast<HTMLDataListElement*>(constUnwra
p<HTMLInputElement>()->list()); |
| 195 if (dataList) | 194 if (dataList) |
| 196 return WebNodeCollection(dataList->options()); | 195 return WebNodeCollection(dataList->options()); |
| 197 #endif | |
| 198 return WebNodeCollection(); | 196 return WebNodeCollection(); |
| 199 } | 197 } |
| 200 | 198 |
| 201 WebString WebInputElement::localizeValue(const WebString& proposedValue) const | 199 WebString WebInputElement::localizeValue(const WebString& proposedValue) const |
| 202 { | 200 { |
| 203 return constUnwrap<HTMLInputElement>()->localizeValue(proposedValue); | 201 return constUnwrap<HTMLInputElement>()->localizeValue(proposedValue); |
| 204 } | 202 } |
| 205 | 203 |
| 206 bool WebInputElement::isSpeechInputEnabled() const | 204 bool WebInputElement::isSpeechInputEnabled() const |
| 207 { | 205 { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 274 |
| 277 WebInputElement* toWebInputElement(WebElement* webElement) | 275 WebInputElement* toWebInputElement(WebElement* webElement) |
| 278 { | 276 { |
| 279 HTMLInputElement* inputElement = webElement->unwrap<Element>()->toInputEleme
nt(); | 277 HTMLInputElement* inputElement = webElement->unwrap<Element>()->toInputEleme
nt(); |
| 280 if (!inputElement) | 278 if (!inputElement) |
| 281 return 0; | 279 return 0; |
| 282 | 280 |
| 283 return static_cast<WebInputElement*>(webElement); | 281 return static_cast<WebInputElement*>(webElement); |
| 284 } | 282 } |
| 285 } // namespace WebKit | 283 } // namespace WebKit |
| OLD | NEW |