From fb40606d0bfe26fe3ea903b692db837bd9f87a2d Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Mon, 25 Sep 2006 15:09:28 +0000 Subject: [PATCH] Bug 353187. GetIndexInParent() broken for combo boxes. Patch by Nian Liu, r=aaronlev --- accessible/src/html/nsHTMLSelectAccessible.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accessible/src/html/nsHTMLSelectAccessible.cpp b/accessible/src/html/nsHTMLSelectAccessible.cpp index 62d3de68516..01bbefb2d36 100644 --- a/accessible/src/html/nsHTMLSelectAccessible.cpp +++ b/accessible/src/html/nsHTMLSelectAccessible.cpp @@ -975,6 +975,7 @@ NS_IMETHODIMP nsHTMLComboboxTextFieldAccessible::GetNextSibling(nsIAccessible ** if (!*aNextSibling) return NS_ERROR_FAILURE; accessible->Init(); + mNextSibling = accessible; } NS_ADDREF(*aNextSibling); return NS_OK; @@ -1227,6 +1228,7 @@ NS_IMETHODIMP nsHTMLComboboxButtonAccessible::GetNextSibling(nsIAccessible **aNe if (!*aNextSibling) return NS_ERROR_OUT_OF_MEMORY; accessible->Init(); + mNextSibling = accessible; } NS_ADDREF(*aNextSibling); return NS_OK;