mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 893909 - Part g: Cleanup HTMLSelectElement::OnOptionSelected; r=dzbarsky
This commit is contained in:
parent
c63360da24
commit
75d9db187b
@ -837,12 +837,9 @@ HTMLSelectElement::OnOptionSelected(nsISelectControlFrame* aSelectFrame,
|
||||
|
||||
if (aChangeOptionState) {
|
||||
// Tell the option to get its bad self selected
|
||||
nsCOMPtr<nsIDOMNode> option;
|
||||
Item(aIndex, getter_AddRefs(option));
|
||||
nsRefPtr<HTMLOptionElement> option = Item(static_cast<uint32_t>(aIndex));
|
||||
if (option) {
|
||||
nsRefPtr<HTMLOptionElement> optionElement =
|
||||
static_cast<HTMLOptionElement*>(option.get());
|
||||
optionElement->SetSelectedInternal(aSelected, aNotify);
|
||||
option->SetSelectedInternal(aSelected, aNotify);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user