LibWeb: Propagate input/textarea selection update to document selection

Calling `.setSelectionRange()` or `.select()` now updates the document
selection as well, visualizing the text selection.

(cherry picked from commit 732e3fa82f216a6f4114eb0e6bb89e167e95ab42)
This commit is contained in:
Jelle Raaijmakers
2024-08-26 14:08:40 +02:00
committed by Nico Weber
parent e140e94f25
commit 33562cc25e
6 changed files with 42 additions and 7 deletions

View File

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