mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 754046 - Fix "ASSERTION: mRequiredRadioCount about to wrap below 0!". r=bz
This commit is contained in:
parent
fefc1100ab
commit
7a844499f3
@ -3310,17 +3310,15 @@ nsHTMLInputElement::AllowDrop()
|
||||
void
|
||||
nsHTMLInputElement::AddedToRadioGroup()
|
||||
{
|
||||
// Make sure not to notify if we're still being created by the parser
|
||||
bool notify = !mParserCreating;
|
||||
|
||||
//
|
||||
// If the input element is not in a form and
|
||||
// not in a document, we just need to return.
|
||||
//
|
||||
if (!mForm && !(IsInDoc() && GetParent())) {
|
||||
// If the element is neither in a form nor a document, there is no group so we
|
||||
// should just stop here.
|
||||
if (!mForm && !IsInDoc()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Make sure not to notify if we're still being created by the parser
|
||||
bool notify = !mParserCreating;
|
||||
|
||||
//
|
||||
// If the input element is checked, and we add it to the group, it will
|
||||
// deselect whatever is currently selected in that group
|
||||
|
Loading…
Reference in New Issue
Block a user