mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 406595. Accessible hierarchy broken. r=davidb, a=dsicore
This commit is contained in:
parent
c84fb99b70
commit
684f6988ba
@ -198,7 +198,6 @@ void nsHyperTextAccessible::CacheChildren()
|
||||
|
||||
// Special case for text entry fields, go directly to editor's root for children
|
||||
if (mAccChildCount == eChildCountUninitialized) {
|
||||
mAccChildCount = 0; // Avoid reentry
|
||||
PRUint32 role;
|
||||
GetRole(&role);
|
||||
if (role != nsIAccessibleRole::ROLE_ENTRY && role != nsIAccessibleRole::ROLE_PASSWORD_TEXT) {
|
||||
@ -211,6 +210,7 @@ void nsHyperTextAccessible::CacheChildren()
|
||||
nsAccessible::CacheChildren();
|
||||
return;
|
||||
}
|
||||
mAccChildCount = 0; // Avoid reentry
|
||||
nsCOMPtr<nsIDOMElement> editorRoot;
|
||||
editor->GetRootElement(getter_AddRefs(editorRoot));
|
||||
nsCOMPtr<nsIDOMNode> editorRootDOMNode = do_QueryInterface(editorRoot);
|
||||
|
Loading…
Reference in New Issue
Block a user