mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
fixes linux bustage r=evaughan
This commit is contained in:
parent
5fd7c54be3
commit
6e856c46d1
@ -1068,8 +1068,7 @@ nsHTMLInputElement::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
GetChecked(&checked);
|
||||
SetChecked(!checked);
|
||||
// Fire an event to notify accessibility
|
||||
nsLocalString checkboxStateChange(NS_LITERAL_STRING("CheckboxStateChange"));
|
||||
FireEventForAccessibility( aPresContext, checkboxStateChange);
|
||||
FireEventForAccessibility( aPresContext, NS_LITERAL_STRING("CheckboxStateChange"));
|
||||
}
|
||||
break;
|
||||
|
||||
@ -1088,8 +1087,7 @@ nsHTMLInputElement::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
SetChecked(PR_TRUE);
|
||||
// Fire an event to notify accessibility
|
||||
if ( selectedRadiobtn != this ) {
|
||||
nsLocalString radiobuttonStateChange(NS_LITERAL_STRING("RadiobuttonStateChange"));
|
||||
FireEventForAccessibility( aPresContext, radiobuttonStateChange);
|
||||
FireEventForAccessibility( aPresContext, NS_LITERAL_STRING("RadiobuttonStateChange"));;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -1682,10 +1680,9 @@ nsHTMLInputElement::FireEventForAccessibility(nsIPresContext* aPresContext,
|
||||
|
||||
// Create the DOM event
|
||||
nsCOMPtr<nsIDOMEvent> domEvent;
|
||||
nsLocalString mutationEvent(NS_LITERAL_STRING("MutationEvent"));
|
||||
rv = listenerManager->CreateEvent(aPresContext,
|
||||
nsnull,
|
||||
mutationEvent,
|
||||
NS_LITERAL_STRING("MutationEvent"),
|
||||
getter_AddRefs(domEvent) );
|
||||
if ( !domEvent )
|
||||
return NS_ERROR_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user