LibWeb+LibWebView+WebContent: Add basic find in page functionality

This allows the browser to send a query to the WebContent process,
which will search the page for the given string and highlight any
occurrences of that string.
This commit is contained in:
Tim Ledbetter 2024-05-29 20:09:33 +01:00 committed by Andreas Kling
commit 7aea87c9df
Notes: sideshowbarker 2024-07-16 18:06:41 +09:00
9 changed files with 197 additions and 0 deletions

View file

@ -667,6 +667,8 @@ public:
// Does document represent an embedded svg img
[[nodiscard]] bool is_decoded_svg() const;
Vector<JS::Handle<DOM::Range>> find_matching_text(String const&);
protected:
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;