LibWeb: Implement algorithms for determining an indicated element

This commit is contained in:
Sam Atkins 2023-08-11 20:20:09 +01:00 committed by Andreas Kling
commit be9c975b2e
Notes: sideshowbarker 2024-07-17 05:13:53 +09:00
2 changed files with 71 additions and 0 deletions

View file

@ -524,6 +524,11 @@ private:
void queue_intersection_observer_task();
void queue_an_intersection_observer_entry(IntersectionObserver::IntersectionObserver&, HighResolutionTime::DOMHighResTimeStamp time, JS::NonnullGCPtr<Geometry::DOMRectReadOnly> root_bounds, JS::NonnullGCPtr<Geometry::DOMRectReadOnly> bounding_client_rect, JS::NonnullGCPtr<Geometry::DOMRectReadOnly> intersection_rect, bool is_intersecting, double intersection_ratio, JS::NonnullGCPtr<Element> target);
struct TopOfTheDocument { };
using IndicatedPart = Variant<Element*, TopOfTheDocument>;
IndicatedPart determine_the_indicated_part() const;
Element* find_a_potential_indicated_element(DeprecatedString fragment) const;
OwnPtr<CSS::StyleComputer> m_style_computer;
JS::GCPtr<CSS::StyleSheetList> m_style_sheets;
JS::GCPtr<Node> m_hovered_node;