mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 10:42:51 +00:00
LibWeb: Avoid Vector filtering when performing find in page queries
This commit is contained in:
parent
26f32b11f9
commit
c322603c42
Notes:
github-actions[bot]
2024-11-24 19:29:20 +00:00
Author: https://github.com/tcl3
Commit: c322603c42
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2550
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 5 additions and 8 deletions
|
@ -73,6 +73,7 @@ public:
|
|||
void unregister_document(Badge<DOM::Document>, DOM::Document&);
|
||||
|
||||
Vector<GC::Root<DOM::Document>> documents_in_this_event_loop() const;
|
||||
[[nodiscard]] Vector<GC::Root<DOM::Document>> documents_in_this_event_loop_matching(Function<bool(DOM::Document&)> callback) const;
|
||||
|
||||
Vector<GC::Root<HTML::Window>> same_loop_windows() const;
|
||||
|
||||
|
@ -95,8 +96,6 @@ private:
|
|||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
[[nodiscard]] Vector<GC::Root<DOM::Document>> documents_in_this_event_loop_matching(auto callback) const;
|
||||
|
||||
void update_the_rendering();
|
||||
|
||||
Type m_type { Type::Window };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue