Bug 418756. When inserting a radio, default its "checked changed" state to its existing "checked changed" state. r+sr=sicking

This commit is contained in:
Boris Zbarsky 2008-07-24 15:19:30 -07:00
Родитель a0073be0d1
Коммит 16ee81776c
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -2823,7 +2823,7 @@ nsHTMLInputElement::AddedToRadioGroup(PRBool aNotify)
// For integrity purposes, we have to ensure that "checkedChanged" is // For integrity purposes, we have to ensure that "checkedChanged" is
// the same for this new element as for all the others in the group // the same for this new element as for all the others in the group
// //
PRBool checkedChanged = PR_FALSE; PRBool checkedChanged = GET_BOOLBIT(mBitField, BF_CHECKED_CHANGED);
nsCOMPtr<nsIRadioVisitor> visitor; nsCOMPtr<nsIRadioVisitor> visitor;
nsresult rv = NS_GetRadioGetCheckedChangedVisitor(&checkedChanged, this, nsresult rv = NS_GetRadioGetCheckedChangedVisitor(&checkedChanged, this,
getter_AddRefs(visitor)); getter_AddRefs(visitor));

Просмотреть файл

@ -112,6 +112,7 @@ _TEST_FILES = test_bug589.html \
test_bug408231.html \ test_bug408231.html \
test_bug417760.html \ test_bug417760.html \
file_bug417760.png \ file_bug417760.png \
test_bug418756.html \
test_bug421640.html \ test_bug421640.html \
test_bug424698.html \ test_bug424698.html \
test_bug428135.xhtml \ test_bug428135.xhtml \