mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +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
|
void
|
||||||
nsHTMLInputElement::AddedToRadioGroup()
|
nsHTMLInputElement::AddedToRadioGroup()
|
||||||
{
|
{
|
||||||
// Make sure not to notify if we're still being created by the parser
|
// If the element is neither in a form nor a document, there is no group so we
|
||||||
bool notify = !mParserCreating;
|
// should just stop here.
|
||||||
|
if (!mForm && !IsInDoc()) {
|
||||||
//
|
|
||||||
// If the input element is not in a form and
|
|
||||||
// not in a document, we just need to return.
|
|
||||||
//
|
|
||||||
if (!mForm && !(IsInDoc() && GetParent())) {
|
|
||||||
return;
|
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
|
// If the input element is checked, and we add it to the group, it will
|
||||||
// deselect whatever is currently selected in that group
|
// deselect whatever is currently selected in that group
|
||||||
|
Loading…
x
Reference in New Issue
Block a user