Bug 1733457 - Remove unused LocalAccessible::MaybeFireFocusableStateChange. r=morgan

Differential Revision: https://phabricator.services.mozilla.com/D127156
This commit is contained in:
Eitan Isaacson 2021-09-30 20:00:06 +00:00
Родитель a41b48f764
Коммит da1f9f11d1
2 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -3056,15 +3056,6 @@ already_AddRefed<AccAttributes> LocalAccessible::BundleFieldsForCache(
return fields.forget(); return fields.forget();
} }
void LocalAccessible::MaybeFireFocusableStateChange(bool aPreviouslyFocusable) {
bool isFocusable = (State() & states::FOCUSABLE);
if (isFocusable != aPreviouslyFocusable) {
RefPtr<AccEvent> focusableChangeEvent =
new AccStateChangeEvent(this, states::FOCUSABLE, isFocusable);
mDoc->FireDelayedEvent(focusableChangeEvent);
}
}
void LocalAccessible::GetPositionAndSizeInternal(int32_t* aPosInSet, void LocalAccessible::GetPositionAndSizeInternal(int32_t* aPosInSet,
int32_t* aSetSize) { int32_t* aSetSize) {
AccGroupInfo* groupInfo = GetGroupInfo(); AccGroupInfo* groupInfo = GetGroupInfo();

Просмотреть файл

@ -877,12 +877,6 @@ class LocalAccessible : public nsISupports, public Accessible {
void Announce(const nsAString& aAnnouncement, uint16_t aPriority); void Announce(const nsAString& aAnnouncement, uint16_t aPriority);
/**
* Fire a focusable state change event if the previous state
* was different.
*/
void MaybeFireFocusableStateChange(bool aPreviouslyFocusable);
virtual bool IsRemote() const override { return false; } virtual bool IsRemote() const override { return false; }
already_AddRefed<AccAttributes> BundleFieldsForCache( already_AddRefed<AccAttributes> BundleFieldsForCache(