Restoring control state should dispatch 'input' and 'change' events only if values are changed
This CL is a follow-up of crrev.com/727843, which caused a regression seen in the local-NTP. * HTMLTextAreaElement and HTMLSelectElement: Call QueueInputAndChangeEvents() only if their values are changed. * HTMLInputElement and input type implementations: InputTypeView::RestoreFormControlState() returns a boolean flag to ask to call QueueInputAndChangeEvents(). Bug: 1038655 Change-Id: Ib68077516d1d6c032dbc2599abbcd541c281f4de Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1983692 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by:Mason Freed <masonfreed@chromium.org> Cr-Commit-Position: refs/heads/master@{#729334}
Showing
Please register or sign in to comment