Chromium Code Reviews| Index: Source/web/WebFormControlElement.cpp |
| diff --git a/Source/web/WebFormControlElement.cpp b/Source/web/WebFormControlElement.cpp |
| index 585260f9128cf504a3271050c653b73089137eba..3968d035eef3a6afa8ac74c540e737edcfacd43a 100644 |
| --- a/Source/web/WebFormControlElement.cpp |
| +++ b/Source/web/WebFormControlElement.cpp |
| @@ -119,6 +119,8 @@ void WebFormControlElement::setSuggestedValue(const WebString& value) |
| unwrap<HTMLInputElement>()->setSuggestedValue(value); |
| if (m_private->hasTagName(HTMLNames::textareaTag)) |
| unwrap<HTMLTextAreaElement>()->setSuggestedValue(value); |
| + if (m_private->hasTagName(HTMLNames::selectTag)) |
|
Inactive
2014/03/16 23:58:47
This will also be isHTMLSelectElement(*m_private)
ziran.sun
2014/03/17 16:41:10
Done.
|
| + unwrap<HTMLSelectElement>()->setSuggestedValue(value); |
| } |
| WebString WebFormControlElement::suggestedValue() const |
| @@ -127,6 +129,8 @@ WebString WebFormControlElement::suggestedValue() const |
| return constUnwrap<HTMLInputElement>()->suggestedValue(); |
| if (m_private->hasTagName(HTMLNames::textareaTag)) |
| return constUnwrap<HTMLTextAreaElement>()->suggestedValue(); |
| + if (m_private->hasTagName(HTMLNames::selectTag)) |
|
Inactive
2014/03/16 23:58:47
Ditto.
ziran.sun
2014/03/17 16:41:10
Done.
|
| + return constUnwrap<HTMLSelectElement>()->suggestedValue(); |
| return WebString(); |
| } |