Bug 406595. Accessible hierarchy broken. r=davidb, a=dsicore
git-svn-id: svn://10.0.0.236/trunk@240363 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4e8ee7ac44
commit
ff01a00e2c
@ -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…
x
Reference in New Issue
Block a user