зеркало из https://github.com/mozilla/gecko-dev.git
Bug 617300 - pend accessible recreation on attribute change if necessary, r=davidb, a=blockingBetaN
This commit is contained in:
Родитель
549147007f
Коммит
4beedaf146
|
@ -1646,7 +1646,9 @@ nsDocAccessible::UpdateAccessibleOnAttrChange(dom::Element* aElement,
|
|||
// Recreate the accessible when role is changed because we might require a
|
||||
// different accessible class for the new role or the accessible may expose
|
||||
// a different sets of interfaces (COM restriction).
|
||||
RecreateAccessible(aElement);
|
||||
HandleNotification<nsDocAccessible, nsINode>
|
||||
(this, &nsDocAccessible::RecreateAccessible, aElement);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1655,7 +1657,9 @@ nsDocAccessible::UpdateAccessibleOnAttrChange(dom::Element* aElement,
|
|||
// Not worth the expense to ensure which namespace these are in
|
||||
// It doesn't kill use to recreate the accessible even if the attribute was used
|
||||
// in the wrong namespace or an element that doesn't support it
|
||||
RecreateAccessible(aElement);
|
||||
HandleNotification<nsDocAccessible, nsINode>
|
||||
(this, &nsDocAccessible::RecreateAccessible, aElement);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1664,7 +1668,9 @@ nsDocAccessible::UpdateAccessibleOnAttrChange(dom::Element* aElement,
|
|||
// This affects whether the accessible supports SelectAccessible.
|
||||
// COM says we cannot change what interfaces are supported on-the-fly,
|
||||
// so invalidate this object. A new one will be created on demand.
|
||||
RecreateAccessible(aElement);
|
||||
HandleNotification<nsDocAccessible, nsINode>
|
||||
(this, &nsDocAccessible::RecreateAccessible, aElement);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче