Bug 376013 [a11y]Incorrect text information sent in "object:text-changed:insert" events.patch by Evan.Yan at sun.com r=aaronleventhal

This commit is contained in:
ginn.chen@sun.com 2007-06-06 00:56:52 -07:00
parent b49b52c268
commit 8a3bebfc44

View File

@ -1185,7 +1185,9 @@ NS_IMETHODIMP nsHyperTextAccessible::DidInsertNode(nsIDOMNode *aNode, nsIDOMNode
}
}
if (NS_FAILED(DOMPointToOffset(aNode, aPosition, &start)))
nsCOMPtr<nsIDOMNode> parentNode;
aNode->GetParentNode(getter_AddRefs(parentNode));
if (NS_FAILED(DOMPointToOffset(parentNode, aPosition, &start)))
return NS_OK;
nsCOMPtr<nsIAccessibleTextChangeEvent> event =