Bustage fix

This commit is contained in:
aaronleventhal%moonset.net 2006-08-11 18:02:52 +00:00
parent cf8cfd98f5
commit ce12dbae16
2 changed files with 4 additions and 6 deletions

View File

@ -60,10 +60,6 @@ interface nsPIAccessible : nsISupports
*/
[noscript] readonly attribute boolean allowsAnonChildAccessibles;
%{C++
#ifdef DEBUG_A11Y
[noscript] void testChildCache(in nsIAccessible aCachedChild); // Assert if child not in parent's cache
#endif
%}
};

View File

@ -729,9 +729,11 @@ NS_IMETHODIMP nsAccessible::GetIndexInParent(PRInt32 *aIndexInParent)
return NS_OK;
}
#ifdef DEBUG_A11Y
NS_IMETHODIMP nsAccessible::TestChildCache(nsIAccessible *aCachedChild)
{
#ifndef DEBUG_A11Y
return NS_OK;
#else
// All cached accessible nodes should be in the parent
// It will assert if not all the children were created
// when they were first cached, and no invalidation
@ -751,8 +753,8 @@ NS_IMETHODIMP nsAccessible::TestChildCache(nsIAccessible *aCachedChild)
sibling = tempAccessible;
}
return NS_OK;
}
#endif
}
nsresult nsAccessible::GetTranslatedString(const nsAString& aKey, nsAString& aStringOut)
{