| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index 138e00626067e3d7750b949cfbfafdad56940c55..87d5169233044306820aa9639b7f1374b34190fa 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -1483,10 +1483,14 @@ void HTMLInputElement::requiredAttributeChanged()
|
|
|
| void HTMLInputElement::selectColorInColorChooser(const Color& color)
|
| {
|
| - // FIXME: Remove type check and static_cast.
|
| - if (type() != InputTypeNames::color)
|
| - return;
|
| - static_cast<ColorInputType*>(m_inputType.get())->didChooseColor(color);
|
| + if (ColorChooserClient* client = m_inputType->colorChooserClient())
|
| + client->didChooseColor(color);
|
| +}
|
| +
|
| +void HTMLInputElement::endColorChooser()
|
| +{
|
| + if (ColorChooserClient* client = m_inputType->colorChooserClient())
|
| + client->didEndChooser();
|
| }
|
|
|
| HTMLElement* HTMLInputElement::list() const
|
|
|