Bug 1877642 - Disable browser_fullscreen-tab-close-race.js on apple_silicon !debug...
[gecko.git] / accessible / base / Filters.cpp
blob3ef58dc4fefac0d96a7ce6b2048c7250549d07f7
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "Filters.h"
7 #include "LocalAccessible-inl.h"
8 #include "States.h"
10 using namespace mozilla::a11y;
11 using namespace mozilla::a11y::filters;
13 uint32_t filters::GetSelected(LocalAccessible* aAccessible) {
14 if (aAccessible->State() & states::SELECTED) return eMatch | eSkipSubtree;
16 return eSkip;
19 uint32_t filters::GetSelectable(LocalAccessible* aAccessible) {
20 if (aAccessible->InteractiveState() & states::SELECTABLE) {
21 return eMatch | eSkipSubtree;
24 return eSkip;