mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
Removed unneded setting of index to kNothingSelected when an disabled option is selected
r=blake, sr=buster Bug 57580
This commit is contained in:
parent
2c971746c9
commit
6db44af9f6
@ -2895,7 +2895,6 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent)
|
|||||||
mButtonDown = PR_FALSE;
|
mButtonDown = PR_FALSE;
|
||||||
CaptureMouseEvents(mPresContext, PR_FALSE);
|
CaptureMouseEvents(mPresContext, PR_FALSE);
|
||||||
SetContentSelected(mSelectedIndex, PR_FALSE);
|
SetContentSelected(mSelectedIndex, PR_FALSE);
|
||||||
mSelectedIndex = kNothingSelected;
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2895,7 +2895,6 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent)
|
|||||||
mButtonDown = PR_FALSE;
|
mButtonDown = PR_FALSE;
|
||||||
CaptureMouseEvents(mPresContext, PR_FALSE);
|
CaptureMouseEvents(mPresContext, PR_FALSE);
|
||||||
SetContentSelected(mSelectedIndex, PR_FALSE);
|
SetContentSelected(mSelectedIndex, PR_FALSE);
|
||||||
mSelectedIndex = kNothingSelected;
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user