mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
b49b52c268
commit
8a3bebfc44
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user