LibWeb: Propagate input/textarea selection update to document selection

Calling `.setSelectionRange()` or `.select()` now updates the document
selection as well, visualizing the text selection.
This commit is contained in:
Jelle Raaijmakers 2024-08-26 14:08:40 +02:00 committed by Tim Flynn
commit 732e3fa82f
Notes: github-actions[bot] 2024-08-27 11:12:49 +00:00
6 changed files with 42 additions and 7 deletions

View file

@ -199,6 +199,9 @@ public:
bool select_applies() const;
bool selection_or_range_applies() const;
protected:
void selection_was_changed() override;
private:
HTMLInputElement(DOM::Document&, DOM::QualifiedName);