LibWeb: Fix selectionchange event dispatch on text control elements

With a8077f79cc Selection object is no
longer aware of selection state inside text controls (<textarea> and
<input>), so this change makes them responsible for dispatching
`selectionchange` if their selection state was changed.
This commit is contained in:
Aliaksandr Kalenik 2024-10-31 21:59:19 +01:00 committed by Alexander Kalenik
commit e915143593
Notes: github-actions[bot] 2024-11-01 14:07:07 +00:00
7 changed files with 91 additions and 70 deletions

View file

@ -192,8 +192,6 @@ protected:
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-textarea/input-relevant-value
void relevant_value_was_changed();
virtual void selection_was_changed([[maybe_unused]] size_t selection_start, [[maybe_unused]] size_t selection_end) { }
private:
void collapse_selection_to_offset(size_t);
void selection_was_changed();