mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 01:08:56 +00:00
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:
parent
b08d43a5d3
commit
7aea87c9df
Notes:
sideshowbarker
2024-07-16 18:06:41 +09:00
Author: https://github.com/tcl3
Commit: 7aea87c9df
Pull-request: https://github.com/SerenityOS/serenity/pull/24480
Reviewed-by: https://github.com/awesomekling
9 changed files with 197 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue