From ff01a00e2c0350df00a5c4111365566c0d52e25c Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Mon, 3 Dec 2007 22:49:42 +0000 Subject: [PATCH] Bug 406595. Accessible hierarchy broken. r=davidb, a=dsicore git-svn-id: svn://10.0.0.236/trunk@240363 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/accessible/src/html/nsHyperTextAccessible.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/accessible/src/html/nsHyperTextAccessible.cpp b/mozilla/accessible/src/html/nsHyperTextAccessible.cpp index 871457b3a2c..c0247e500a4 100644 --- a/mozilla/accessible/src/html/nsHyperTextAccessible.cpp +++ b/mozilla/accessible/src/html/nsHyperTextAccessible.cpp @@ -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 editorRoot; editor->GetRootElement(getter_AddRefs(editorRoot)); nsCOMPtr editorRootDOMNode = do_QueryInterface(editorRoot);