Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: third_party/WebKit/Source/core/html/forms/MultipleFieldsTemporalInputTypeView.cpp

Issue 2435973002: INPUT element: code cleanup around setValue(). (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/forms/MultipleFieldsTemporalInputTypeView.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/MultipleFieldsTemporalInputTypeView.cpp b/third_party/WebKit/Source/core/html/forms/MultipleFieldsTemporalInputTypeView.cpp
index 5cf87fcad2864467947781410e5b890001e6fc52..daf8bad72a409ef8364d293ea19162fa7ca6ae0d 100644
--- a/third_party/WebKit/Source/core/html/forms/MultipleFieldsTemporalInputTypeView.cpp
+++ b/third_party/WebKit/Source/core/html/forms/MultipleFieldsTemporalInputTypeView.cpp
@@ -194,7 +194,7 @@ void MultipleFieldsTemporalInputTypeView::editControlValueChanged() {
if ((oldValue.isEmpty() && newValue.isEmpty()) || oldValue == newValue) {
element().setNeedsValidityCheck();
} else {
- element().setValueInternal(newValue, DispatchNoEvent);
+ element().setNonAttributeValue(newValue);
element().setNeedsStyleRecalc(
SubtreeStyleChange,
StyleChangeReasonForTracing::create(StyleChangeReason::ControlValue));
@@ -482,8 +482,7 @@ void MultipleFieldsTemporalInputTypeView::restoreFormControlState(
DateTimeFieldsState dateTimeFieldsState =
DateTimeFieldsState::restoreFormControlState(state);
edit->setValueAsDateTimeFieldsState(dateTimeFieldsState);
- element().setValueInternal(m_inputType->sanitizeValue(edit->value()),
- DispatchNoEvent);
+ element().setNonAttributeValue(m_inputType->sanitizeValue(edit->value()));
updateClearButtonVisibility();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/InputType.cpp ('k') | third_party/WebKit/Source/core/html/forms/RangeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698