LibWeb: Add a to_element function to ARIAMixin

This change adds a virtual to_element function to ARIAMixin, and
overrides it in DOM::Element so it can then be used back inside
ARIAMixin to get an element when needed (for example, when computing a
role requires checking the roles of ancestors of an element).
This commit is contained in:
sideshowbarker 2024-12-19 16:56:58 +09:00 committed by Sam Atkins
commit 9f01eebff3
Notes: github-actions[bot] 2025-01-09 14:10:11 +00:00
3 changed files with 5 additions and 0 deletions

View file

@ -315,6 +315,8 @@ public:
virtual bool include_in_accessibility_tree() const override;
virtual Element const* to_element() const override { return this; }
bool is_hidden() const;
bool has_hidden_ancestor() const;