Bug 406595. Accessible hierarchy broken. r=davidb, a=dsicore

This commit is contained in:
aaronleventhal@moonset.net 2007-12-03 14:49:42 -08:00
parent c84fb99b70
commit 684f6988ba

View File

@ -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);