Index: Source/web/WebFormControlElement.cpp |
diff --git a/Source/web/WebFormControlElement.cpp b/Source/web/WebFormControlElement.cpp |
index bbabc8e918b81a41942c956d7341519a16caea12..d75f862d123917cdf0c34ad336f63371691c5582 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 (isHTMLTextAreaElement(*m_private)) |
unwrap<HTMLTextAreaElement>()->setSuggestedValue(value); |
+ if (isHTMLSelectElement(*m_private)) |
+ unwrap<HTMLSelectElement>()->setSuggestedValue(value); |
} |
WebString WebFormControlElement::suggestedValue() const |
@@ -127,6 +129,8 @@ WebString WebFormControlElement::suggestedValue() const |
return constUnwrap<HTMLInputElement>()->suggestedValue(); |
if (isHTMLTextAreaElement(*m_private)) |
return constUnwrap<HTMLTextAreaElement>()->suggestedValue(); |
+ if (isHTMLSelectElement(*m_private)) |
+ return constUnwrap<HTMLSelectElement>()->suggestedValue(); |
return WebString(); |
} |