| Index: third_party/WebKit/Source/core/html/forms/InputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/InputType.cpp b/third_party/WebKit/Source/core/html/forms/InputType.cpp
|
| index 44c21d79388e83ad1913661147c93e82c7bfe5f2..48b12bd20519d52ea049b3720739ab7d795df06f 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/InputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/InputType.cpp
|
| @@ -513,7 +513,11 @@ void InputType::dispatchSearchEvent() {}
|
| void InputType::setValue(const String& sanitizedValue,
|
| bool valueChanged,
|
| TextFieldEventBehavior eventBehavior) {
|
| - element().setValueInternal(sanitizedValue, eventBehavior);
|
| + // This setValue() implementation is used only for ValueMode::kValue except
|
| + // TextFieldInputType. That is to say, type=color, type=range, and temporal
|
| + // input types.
|
| + DCHECK_EQ(valueMode(), ValueMode::kValue);
|
| + element().setNonAttributeValue(sanitizedValue);
|
| if (!valueChanged)
|
| return;
|
| switch (eventBehavior) {
|
|
|