From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- accessible/base/ARIAMap.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'accessible/base/ARIAMap.h') diff --git a/accessible/base/ARIAMap.h b/accessible/base/ARIAMap.h index 30cc1f0814..58a96b7112 100644 --- a/accessible/base/ARIAMap.h +++ b/accessible/base/ARIAMap.h @@ -234,6 +234,19 @@ const uint8_t LANDMARK_ROLE_MAP_ENTRY_INDEX = UINT8_MAX; */ const nsRoleMapEntry* GetRoleMap(dom::Element* aEl); +/* + * Get the role map entry pointer's index for a given DOM node, skipping any + * given roles. This will use the first valid ARIA role if the role attribute + * provides a space delimited list of roles, excluding any given roles. + * + * @param aEl [in] the DOM node to get the role map entry for + * @param aRolesToSkip [in] the roles to skip when searching the role string + * @return the index of the pointer to the role map entry for the + * ARIA role, or NO_ROLE_MAP_ENTRY_INDEX if none + */ +uint8_t GetFirstValidRoleMapIndexExcluding( + dom::Element* aEl, std::initializer_list aRolesToSkip); + /** * Get the role map entry pointer's index for a given DOM node. This will use * the first ARIA role if the role attribute provides a space delimited list of -- cgit v1.2.3