mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1241453 - fire nsIAccessibleTextChangeEvents for proxies r=davidb
This commit is contained in:
parent
db4df87399
commit
2044341d8e
@ -212,6 +212,19 @@ DocAccessibleParent::RecvTextChangeEvent(const uint64_t& aID,
|
||||
|
||||
ProxyTextChangeEvent(target, aStr, aStart, aLen, aIsInsert, aFromUser);
|
||||
|
||||
if (!nsCoreUtils::AccEventObserversExist()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
xpcAccessibleGeneric* xpcAcc = GetXPCAccessible(target);
|
||||
xpcAccessibleDocument* doc = GetAccService()->GetXPCDocument(this);
|
||||
uint32_t type = nsIAccessibleEvent::EVENT_TEXT_CHANGED;
|
||||
nsIDOMNode* node = nullptr;
|
||||
RefPtr<xpcAccTextChangeEvent> event =
|
||||
new xpcAccTextChangeEvent(type, xpcAcc, doc, node, aFromUser, aStart, aLen,
|
||||
aIsInsert, aStr);
|
||||
nsCoreUtils::DispatchAccEvent(Move(event));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user