mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 423698 - Incorrectly used variables in nsAccessibleWrap::FireAccessibleEvent(), patch=aaronlev, r=me, a=beltzner
This commit is contained in:
parent
0483f28682
commit
59f147fb94
@ -1672,11 +1672,6 @@ nsAccessibleWrap::FireAccessibleEvent(nsIAccessibleEvent *aEvent)
|
||||
if (!accessible)
|
||||
return NS_OK;
|
||||
|
||||
PRUint32 role = ROLE_SYSTEM_TEXT; // Default value
|
||||
|
||||
nsCOMPtr<nsIAccessNode> accessNode(do_QueryInterface(accessible));
|
||||
NS_ENSURE_STATE(accessNode);
|
||||
|
||||
if (eventType == nsIAccessibleEvent::EVENT_TEXT_CARET_MOVED ||
|
||||
eventType == nsIAccessibleEvent::EVENT_FOCUS) {
|
||||
UpdateSystemCaret();
|
||||
@ -1697,7 +1692,7 @@ nsAccessibleWrap::FireAccessibleEvent(nsIAccessibleEvent *aEvent)
|
||||
newAccessible = accessible;
|
||||
}
|
||||
|
||||
HWND hWnd = GetHWNDFor(accessible);
|
||||
HWND hWnd = GetHWNDFor(newAccessible);
|
||||
NS_ENSURE_TRUE(hWnd, NS_ERROR_FAILURE);
|
||||
|
||||
// Gecko uses two windows for every scrollable area. One window contains
|
||||
|
Loading…
Reference in New Issue
Block a user