Loading accessible/public/nsPIAccessible.idl +0 −4 Original line number Diff line number Diff line Loading @@ -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 %} }; accessible/src/base/nsAccessible.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -751,8 +753,8 @@ NS_IMETHODIMP nsAccessible::TestChildCache(nsIAccessible *aCachedChild) sibling = tempAccessible; } return NS_OK; } #endif } nsresult nsAccessible::GetTranslatedString(const nsAString& aKey, nsAString& aStringOut) { Loading Loading
accessible/public/nsPIAccessible.idl +0 −4 Original line number Diff line number Diff line Loading @@ -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 %} };
accessible/src/base/nsAccessible.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -751,8 +753,8 @@ NS_IMETHODIMP nsAccessible::TestChildCache(nsIAccessible *aCachedChild) sibling = tempAccessible; } return NS_OK; } #endif } nsresult nsAccessible::GetTranslatedString(const nsAString& aKey, nsAString& aStringOut) { Loading