Bug 1895208 - Refactor IsFocusable checks to take flags rather than bool arguments. r=smaug
This doesn't change behavior on its own, but it's likely we want to make the tab focusability more complicated in bug 1895184, and this will make changes to this area less painful. Differential Revision: https://phabricator.services.mozilla.com/D209525
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "DocAccessible-inl.h"
|
||||
#include "DocAccessibleChild.h"
|
||||
#include "FocusManager.h"
|
||||
#include "mozilla/FocusModel.h"
|
||||
#include "HTMLCanvasAccessible.h"
|
||||
#include "HTMLElementAccessibles.h"
|
||||
#include "HTMLImageMapAccessible.h"
|
||||
@@ -188,8 +189,7 @@ static bool MustBeAccessible(nsIContent* aContent, DocAccessible* aDocument) {
|
||||
// not create Accessibles for some focusable elements; e.g. a span with only
|
||||
// a tabindex. Elements that are invisible within this document are excluded
|
||||
// earlier in CreateAccessible.
|
||||
if (frame->IsFocusable(/* aWithMouse */ false,
|
||||
/* aCheckVisibility */ false)) {
|
||||
if (frame->IsFocusable(IsFocusableFlags::IgnoreVisibility)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user