mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
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:
parent
81d6cd497a
commit
9f01eebff3
Notes:
github-actions[bot]
2025-01-09 14:10:11 +00:00
Author: https://github.com/sideshowbarker
Commit: 9f01eebff3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2972
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <LibWeb/ARIA/ARIAMixin.h>
|
||||
#include <LibWeb/ARIA/Roles.h>
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/Infra/CharacterTypes.h>
|
||||
|
||||
namespace Web::ARIA {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue