LibWeb: Fix internal logic for recognizing non-abstract ARIA roles

This commit is contained in:
sideshowbarker 2024-12-18 22:18:01 +09:00 committed by Sam Atkins
commit ce65457746
Notes: github-actions[bot] 2024-12-18 15:25:50 +00:00
7 changed files with 76 additions and 11 deletions

View file

@ -173,15 +173,6 @@ bool is_windows_role(Role role)
Role::dialog);
}
bool is_non_abstract_role(Role role)
{
return is_widget_role(role)
|| is_document_structure_role(role)
|| is_landmark_role(role)
|| is_live_region_role(role)
|| is_windows_role(role);
}
// https://www.w3.org/TR/wai-aria-1.2/#namefromcontent
bool allows_name_from_content(Role role)
{