From 5374fbfbcf7a39556e934dec962024336dcc4ccb Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 23 Aug 2023 18:26:16 -0600 Subject: [PATCH] LibWeb: Make Document::determine_the_indicated_part public We need to call this from NavigateEvent as part of the Navigation API. --- Userland/Libraries/LibWeb/DOM/Document.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index a268ede06a..558c219aaf 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -524,6 +524,10 @@ public: void shared_declarative_refresh_steps(StringView input, JS::GCPtr meta_element = nullptr); + struct TopOfTheDocument { }; + using IndicatedPart = Variant; + IndicatedPart determine_the_indicated_part() const; + protected: virtual void initialize(JS::Realm&) override; virtual void visit_edges(Cell::Visitor&) override; @@ -543,9 +547,6 @@ private: void queue_intersection_observer_task(); void queue_an_intersection_observer_entry(IntersectionObserver::IntersectionObserver&, HighResolutionTime::DOMHighResTimeStamp time, JS::NonnullGCPtr root_bounds, JS::NonnullGCPtr bounding_client_rect, JS::NonnullGCPtr intersection_rect, bool is_intersecting, double intersection_ratio, JS::NonnullGCPtr target); - struct TopOfTheDocument { }; - using IndicatedPart = Variant; - IndicatedPart determine_the_indicated_part() const; Element* find_a_potential_indicated_element(DeprecatedString fragment) const; OwnPtr m_style_computer;